Skip to content

Commit

Permalink
allow queries on text field type
Browse files Browse the repository at this point in the history
  • Loading branch information
ywelsch committed Apr 27, 2022
1 parent 0d40083 commit b7dd421
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -453,7 +453,10 @@ public TextFieldMapper build(MapperBuilderContext context) {
}
}

public static final TypeParser PARSER = new TypeParser((n, c) -> new Builder(n, c.indexVersionCreated(), c.getIndexAnalyzers()));
private static final Version MINIMUM_COMPATIBILITY_VERSION = Version.fromString("5.0.0");

public static final TypeParser PARSER = new TypeParser((n, c) -> new Builder(n, c.indexVersionCreated(), c.getIndexAnalyzers()),
MINIMUM_COMPATIBILITY_VERSION);

private static class PhraseWrappedAnalyzer extends AnalyzerWrapper {

Expand Down

0 comments on commit b7dd421

Please sign in to comment.