SOLR-12879 - registered MinHashQParserPlugin to QParserPlugin as min_hash

This commit is contained in:
Tommaso Teofili 2018-10-23 09:12:46 +02:00
parent 9df96d2530
commit 2e757f6c25
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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);
}