Skip to content

Commit

Permalink
Upgrade to new lucene snapshot 9.7.0-snapshot-41cd1f7a88c (#96741)
Browse files Browse the repository at this point in the history
Notable changes:

* more efficient backwards reads in NIOFSDirectory
* faster merging when using soft deletes
* workaround security manager when using vector API
  • Loading branch information
romseygeek committed Jun 12, 2023
1 parent 5a623ee commit d927d1a
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 74 deletions.
2 changes: 1 addition & 1 deletion build-tools-internal/version.properties
@@ -1,5 +1,5 @@
elasticsearch = 8.9.0
lucene = 9.7.0-snapshot-24df30cca69
lucene = 9.7.0-snapshot-41cd1f7a88c

bundled_jdk_vendor = openjdk
bundled_jdk = 20.0.1+9@b4887098932d415489976708ad6d1a4b
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog/96741.yaml
@@ -0,0 +1,5 @@
pr: 96741
summary: Upgrade to new lucene snapshot 9.7.0-snapshot-a8602d6ef88
area: Search
type: upgrade
issues: []
144 changes: 72 additions & 72 deletions gradle/verification-metadata.xml

Large diffs are not rendered by default.

Expand Up @@ -137,6 +137,7 @@ protected Map<String, Class<?>> getTokenFilters() {
filters.put("germanstem", GermanStemTokenFilterFactory.class);
// this filter is not exposed and should only be used internally
filters.put("fixedshingle", Void.class);
filters.put("word2vecsynonym", Void.class); // not exposed
return filters;
}

Expand Down
Expand Up @@ -21,6 +21,7 @@
import org.apache.lucene.search.similarities.Similarity;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.QueryBuilder;
import org.apache.lucene.util.TermAndBoost;
import org.elasticsearch.TransportVersion;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.io.stream.StreamInput;
Expand Down
Expand Up @@ -28,6 +28,7 @@
import org.apache.lucene.search.MultiTermQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.util.QueryBuilder;
import org.apache.lucene.util.TermAndBoost;
import org.apache.lucene.util.graph.GraphTokenStreamFiniteStrings;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.common.io.stream.StreamInput;
Expand Down
Expand Up @@ -18,6 +18,7 @@
import org.apache.lucene.search.Query;
import org.apache.lucene.search.TermQuery;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.TermAndBoost;
import org.elasticsearch.common.lucene.search.Queries;
import org.elasticsearch.index.mapper.MappedFieldType;
import org.elasticsearch.index.query.AbstractQueryBuilder;
Expand Down
Expand Up @@ -195,7 +195,9 @@ public abstract class AnalysisFactoryTestCase extends ESTestCase {
entry("spanishpluralstem", Void.class),
// LUCENE-10352
entry("daitchmokotoffsoundex", Void.class),
entry("persianstem", Void.class)
entry("persianstem", Void.class),
// not exposed
entry("word2vecsynonym", Void.class)
);

static final Map<String, Class<?>> KNOWN_CHARFILTERS = Map.of(
Expand Down

0 comments on commit d927d1a

Please sign in to comment.