filtered more_like_this doesn't parse correctly, closes #326.
This commit is contained in:
parent
2259ef671b
commit
de71a1ce99
|
@ -115,10 +115,6 @@ public class FuzzyLikeThisQueryParser extends AbstractIndexComponent implements
|
|||
query.setBoost(boost);
|
||||
query.setIgnoreTF(ignoreTF);
|
||||
|
||||
// move to the next end object, to close the field name
|
||||
token = parser.nextToken();
|
||||
assert token == XContentParser.Token.END_OBJECT;
|
||||
|
||||
return query;
|
||||
}
|
||||
}
|
|
@ -107,10 +107,6 @@ public class MoreLikeThisQueryParser extends AbstractIndexComponent implements X
|
|||
throw new QueryParsingException(index, "more_like_this requires 'fields' to be specified");
|
||||
}
|
||||
|
||||
// move to the next end object, to close the field name
|
||||
token = parser.nextToken();
|
||||
assert token == XContentParser.Token.END_OBJECT;
|
||||
|
||||
mltQuery.setAnalyzer(parseContext.mapperService().searchAnalyzer());
|
||||
return mltQuery;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue