From: Chris T. <chr...@gm...> - 2014-11-12 23:28:14
|
Hello, I’ve attached a small patch for your consideration to allow specification of the minimumNumberShouldMatch for BooleanQuery(s) in XMLToQuery. The feature is not available in the classic Lucene query syntax. It is made available in the Solr eDisMax query parser. The feature allows to cut-off needless disjunctive searches. It used like: > let $min := if (count($terms) le 3) then $terms else (count($terms) + 1) idiv 2 > let $query := > <bool min="{$min}">{ > for $term in $terms > return > <term>{$term}</term> > }</bool> Thank you, Chris |