filtered more_like_this doesn't parse correctly, closes #326.

This commit is contained in:
kimchy 2010-08-18 14:36:34 +03:00
parent 2259ef671b
commit de71a1ce99
2 changed files with 0 additions and 8 deletions

View File

@ -115,10 +115,6 @@ public class FuzzyLikeThisQueryParser extends AbstractIndexComponent implements
query.setBoost(boost); query.setBoost(boost);
query.setIgnoreTF(ignoreTF); 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; return query;
} }
} }

View File

@ -107,10 +107,6 @@ public class MoreLikeThisQueryParser extends AbstractIndexComponent implements X
throw new QueryParsingException(index, "more_like_this requires 'fields' to be specified"); 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()); mltQuery.setAnalyzer(parseContext.mapperService().searchAnalyzer());
return mltQuery; return mltQuery;
} }