Query DSL: flt_field does not allow to set min_similarity and prefix_length, closes #744.

This commit is contained in:
kimchy 2011-03-03 04:17:02 +02:00
parent 78c6f951a3
commit 2909060af8
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,10 @@ public class FuzzyLikeThisFieldQueryParser extends AbstractIndexComponent implem
boost = parser.floatValue();
} else if ("ignore_tf".equals(currentFieldName) || "ignoreTF".equals(currentFieldName)) {
ignoreTF = parser.booleanValue();
} else if ("min_similarity".equals(currentFieldName) || "minSimilarity".equals(currentFieldName)) {
minSimilarity = parser.floatValue();
} else if ("prefix_length".equals(currentFieldName) || "prefixLength".equals(currentFieldName)) {
prefixLength = parser.intValue();
}
}
}