Merge remote-tracking branch 'origin/GP-6146_ElasticSearch_8_19_7' into

Ghidra_12.0 (Closes #8611)
This commit is contained in:
ghidra1
2025-12-02 15:41:12 -05:00
5 changed files with 18 additions and 11 deletions

View File

@@ -77,8 +77,8 @@ details.
## Version
The current BSim plug-in was tested with Elasticsearch version `8.8.1`. A change to the
Elasticsearch scripting interface, starting with version `7.15`, makes the BSim plug-in incompatible
The current BSim plug-in was tested with Elasticsearch version `8.19.7`. A change to the
Elasticsearch scripting interface, starting with version `8.16`, makes the BSim plug-in incompatible
with previous versions, but the lsh plug-in jars may work without change across later Elasticsearch
versions.
@@ -93,7 +93,7 @@ elasticsearch/plugin-descriptor.properties
The file format is fairly simple: edit the line
```
elasticsearch.version=8.8.1
elasticsearch.version=8.19.7
```
The plugin may work with other nearby versions, but proceed at your own risk.

View File

@@ -92,8 +92,8 @@ task elasticPluginZip(type: Zip) {
destinationDirectory = file("build/data")
}
// Currently targeting elasticsearch-8.8.1 which by default runs with java 20
compileElasticPluginJava.options.release = 20
// Currently targeting elasticsearch-8.19.7 which by default runs with java 25
compileElasticPluginJava.options.release = 21
compileElasticPluginJava.dependsOn copyGenericTask
compileElasticPluginJava.dependsOn copyUtilityTask

View File

@@ -2,5 +2,5 @@ description=Feature Vector Plugin
version=1.0
name=lsh
classname=org.elasticsearch.plugin.analysis.lsh.AnalysisLSHPlugin
java.version=1.11
elasticsearch.version=8.8.1
java.version=1.21
elasticsearch.version=8.19.7

View File

@@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -73,6 +73,11 @@ public class VectorCompareScriptFactory implements ScoreScript.Factory {
return false;
}
@Override
public boolean needs_termStats() {
return false;
}
private static int scanForFeatures(byte[] buffer, int offset) throws IOException {
int i = 0;
while (i < FEATURES_NAME.length()) {

View File

@@ -5,9 +5,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -39,6 +39,8 @@ public abstract class ScoreScript {
public interface LeafFactory {
boolean needs_score();
boolean needs_termStats();
ScoreScript newInstance(DocReader reader) throws IOException;
}