assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.currentName();
token = parser.nextToken();
assert token == XContentParser.Token.START_OBJECT;
MoreLikeThisQuery mltQuery = new MoreLikeThisQuery();
<BUG>mltQuery.setSimilarity(parseContext.searchSimilarity());
String currentFieldName = null;</BUG>
while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT) {
if (token == XContentParser.Token.FIELD_NAME) {
currentFieldName = parser.currentName();

assert token == XContentParser.Token.FIELD_NAME;
String fieldName = parser.currentName();
token = parser.nextToken();
assert token == XContentParser.Token.START_OBJECT;
MoreLikeThisQuery mltQuery = new MoreLikeThisQuery();
mltQuery.setSimilarity(parseContext.searchSimilarity());
Analyzer analyzer = null;
String currentFieldName = null;
while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT) {
if (token == XContentParser.Token.FIELD_NAME) {
currentFieldName = parser.currentName();
