lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject [13/50] [abbrv] lucene-solr:jira/http2_benchmark: SOLR-12879 - registered MinHashQParserPlugin to QParserPlugin as min_hash
Date Wed, 31 Oct 2018 05:06:59 GMT
SOLR-12879 - registered MinHashQParserPlugin to QParserPlugin as min_hash


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/2e757f6c
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/2e757f6c
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/2e757f6c

Branch: refs/heads/jira/http2_benchmark
Commit: 2e757f6c257687ab713f88b6a07cf4a355e4cf66
Parents: 9df96d2
Author: Tommaso Teofili <teofili@adobe.com>
Authored: Tue Oct 23 09:12:46 2018 +0200
Committer: Tommaso Teofili <teofili@adobe.com>
Committed: Tue Oct 23 09:12:46 2018 +0200

----------------------------------------------------------------------
 .../src/java/org/apache/solr/search/MinHashQParserPlugin.java     | 3 +++
 solr/core/src/java/org/apache/solr/search/QParserPlugin.java      | 1 +
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/2e757f6c/solr/core/src/java/org/apache/solr/search/MinHashQParserPlugin.java
----------------------------------------------------------------------
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 4567e25..e63665b 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);

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/2e757f6c/solr/core/src/java/org/apache/solr/search/QParserPlugin.java
----------------------------------------------------------------------
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 b20c3c8..d602c7a 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);
   }


Mime
View raw message