Skip to content

Commit 2c35bfc

Browse files
committed
Fix posting format for CompletionFieldMapper
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
1 parent 5871134 commit 2c35bfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/index/mapper/CompletionFieldMapper.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import org.apache.lucene.document.FieldType;
3636
import org.apache.lucene.index.IndexOptions;
3737
import org.apache.lucene.index.Term;
38-
import org.apache.lucene.search.suggest.document.Completion912PostingsFormat;
38+
import org.apache.lucene.search.suggest.document.Completion101PostingsFormat;
3939
import org.apache.lucene.search.suggest.document.CompletionAnalyzer;
4040
import org.apache.lucene.search.suggest.document.CompletionQuery;
4141
import org.apache.lucene.search.suggest.document.FuzzyCompletionQuery;
@@ -330,7 +330,7 @@ public ContextMappings getContextMappings() {
330330
*/
331331
public static synchronized PostingsFormat postingsFormat() {
332332
if (postingsFormat == null) {
333-
postingsFormat = new Completion912PostingsFormat();
333+
postingsFormat = new Completion101PostingsFormat();
334334
}
335335
return postingsFormat;
336336
}

0 commit comments

Comments
 (0)