You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lucene: AnalyzerChooser no longer takes the text when choosing an analyzer (#2994)
This removes the option for having `AnalyzerChooser` pick the analyzer
based on the contents of the query.
This moves it so that the `FDBDirectoryManager` creates one
`LuceneAnalyzerWrapper`, and preserves it for the transaction.
Eventually this will allow `FDBDirectoryWrapper` to have the writer be
lazy but final, but I didn't bring that change into here, isolating this
to the breaking change.
This Resolves#2993
Copy file name to clipboardExpand all lines: fdb-record-layer-lucene/src/main/java/com/apple/foundationdb/record/lucene/EmailCjkSynonymAnalyzerFactory.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ public AnalyzerChooser getIndexAnalyzerChooser(@Nonnull Index index) {
Copy file name to clipboardExpand all lines: fdb-record-layer-lucene/src/main/java/com/apple/foundationdb/record/lucene/LuceneAnalyzerCombinationProvider.java
+20-30Lines changed: 20 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,6 @@
24
24
25
25
importjavax.annotation.Nonnull;
26
26
importjavax.annotation.Nullable;
27
-
importjava.util.Collections;
28
-
importjava.util.List;
29
27
importjava.util.Map;
30
28
importjava.util.SortedMap;
31
29
importjava.util.TreeMap;
@@ -37,47 +35,39 @@
37
35
* The default analyzer chooser is used for all fields of one Lucene index except the fields which has overrides in the analyzer chooser per field mapping.
Copy file name to clipboardExpand all lines: fdb-record-layer-lucene/src/main/java/com/apple/foundationdb/record/lucene/LuceneAnalyzerRegistryImpl.java
Copy file name to clipboardExpand all lines: fdb-record-layer-lucene/src/main/java/com/apple/foundationdb/record/lucene/LuceneAutoCompleteAnalyzerFactory.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,6 @@ public LuceneAnalyzerType getType() {
Copy file name to clipboardExpand all lines: fdb-record-layer-lucene/src/main/java/com/apple/foundationdb/record/lucene/LuceneAutoCompleteQueryClause.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -122,12 +122,12 @@ public BoundQuery bind(@Nonnull FDBRecordStoreBase<?> store, @Nonnull Index inde
0 commit comments