Remove support for fuzzy_min_sim in query_string query
Replaced by fuzziness, consistent with other queries.
This commit is contained in:
parent
77511643ee
commit
69881d5e92
|
@ -19,7 +19,6 @@
|
|||
|
||||
package org.elasticsearch.index.query;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.ParsingException;
|
||||
import org.elasticsearch.common.Strings;
|
||||
import org.elasticsearch.common.unit.Fuzziness;
|
||||
|
@ -35,8 +34,6 @@ import java.util.Map;
|
|||
*/
|
||||
public class QueryStringQueryParser implements QueryParser {
|
||||
|
||||
private static final ParseField FUZZINESS = Fuzziness.FIELD.withDeprecation("fuzzy_min_sim");
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{QueryStringQueryBuilder.NAME, Strings.toCamelCase(QueryStringQueryBuilder.NAME)};
|
||||
|
@ -134,7 +131,7 @@ public class QueryStringQueryParser implements QueryParser {
|
|||
fuzzyRewrite = parser.textOrNull();
|
||||
} else if ("phrase_slop".equals(currentFieldName) || "phraseSlop".equals(currentFieldName)) {
|
||||
phraseSlop = parser.intValue();
|
||||
} else if (parseContext.parseFieldMatcher().match(currentFieldName, FUZZINESS)) {
|
||||
} else if (parseContext.parseFieldMatcher().match(currentFieldName, Fuzziness.FIELD)) {
|
||||
fuzziness = Fuzziness.parse(parser);
|
||||
} else if ("boost".equals(currentFieldName)) {
|
||||
boost = parser.floatValue();
|
||||
|
|
Loading…
Reference in New Issue