Skip to content

Commit 424941b

Browse files
committed
Query DSL: flt_field does not allow to set min_similarity and prefix_length, closes elastic#744.
1 parent 8b510fb commit 424941b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/FuzzyLikeThisFieldQueryParser.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ public class FuzzyLikeThisFieldQueryParser extends AbstractIndexComponent implem
9494
boost = parser.floatValue();
9595
} else if ("ignore_tf".equals(currentFieldName) || "ignoreTF".equals(currentFieldName)) {
9696
ignoreTF = parser.booleanValue();
97+
} else if ("min_similarity".equals(currentFieldName) || "minSimilarity".equals(currentFieldName)) {
98+
minSimilarity = parser.floatValue();
99+
} else if ("prefix_length".equals(currentFieldName) || "prefixLength".equals(currentFieldName)) {
100+
prefixLength = parser.intValue();
97101
}
98102
}
99103
}

0 commit comments

Comments
 (0)