diff --git a/solr/core/src/java/org/apache/solr/search/MinHashQParserPlugin.java b/solr/core/src/java/org/apache/solr/search/MinHashQParserPlugin.java index 4567e254a5b..e63665bfdd6 100644 --- a/solr/core/src/java/org/apache/solr/search/MinHashQParserPlugin.java +++ b/solr/core/src/java/org/apache/solr/search/MinHashQParserPlugin.java @@ -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); diff --git a/solr/core/src/java/org/apache/solr/search/QParserPlugin.java b/solr/core/src/java/org/apache/solr/search/QParserPlugin.java index b20c3c87ac9..d602c7aab9f 100644 --- a/solr/core/src/java/org/apache/solr/search/QParserPlugin.java +++ b/solr/core/src/java/org/apache/solr/search/QParserPlugin.java @@ -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); }