The output for the Solr “parsedquery” response element for
DisjunctionMaxQuery has an extra set of parentheses which are at a minimum
annoying, but also misleading since technically they should indicate a
nested BooleanQuery, which is not the case.
For example:
<str name="parsedquery">
(+DisjunctionMaxQuery((id:test | features:test | name:test)))/no_coord
</str>
I think that should be:
(+DisjunctionMaxQuery(id:test | features:test | name:test))/no_coord
The fix would be in QueryParsing.toString to add a special case for DMQ.
Before:
} else {
out.append(query.getClass().getSimpleName()
+ '(' + query.toString() + ')');
writeBoost = false;
}
Insert:
} else if (query instanceof DisjunctionMaxQuery ) {
out.append(query.getClass().getSimpleName() + query.toString());
writeBoost = false;
-- Jack Krupansky
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]