mirror of https://github.com/apache/lucene.git
SOLR-12879 - registered MinHashQParserPlugin to QParserPlugin as min_hash
This commit is contained in:
parent
9df96d2530
commit
2e757f6c25
|
@ -24,6 +24,9 @@ import org.apache.solr.request.SolrQueryRequest;
|
|||
* {@link QParserPlugin} based on {@link MinHashQParser}.
|
||||
*/
|
||||
public class MinHashQParserPlugin extends QParserPlugin {
|
||||
|
||||
public static final String NAME = "min_hash";
|
||||
|
||||
@Override
|
||||
public QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req) {
|
||||
return new MinHashQParser(qstr, localParams, params, req);
|
||||
|
|
|
@ -84,6 +84,7 @@ public abstract class QParserPlugin implements NamedListInitializedPlugin, SolrI
|
|||
map.put(PayloadScoreQParserPlugin.NAME, new PayloadScoreQParserPlugin());
|
||||
map.put(PayloadCheckQParserPlugin.NAME, new PayloadCheckQParserPlugin());
|
||||
map.put(BoolQParserPlugin.NAME, new BoolQParserPlugin());
|
||||
map.put(MinHashQParserPlugin.NAME, new MinHashQParserPlugin());
|
||||
|
||||
standardPlugins = Collections.unmodifiableMap(map);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue