cpoerschke commented on code in PR #2382:
URL: https://github.com/apache/solr/pull/2382#discussion_r1662962160


##########
solr/modules/monitor/src/java/org/apache/solr/monitor/search/QueryMatchType.java:
##########
@@ -0,0 +1,45 @@
+/*
+ *
+ *  * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  * contributor license agreements.  See the NOTICE file distributed with
+ *  * this work for additional information regarding copyright ownership.
+ *  * The ASF licenses this file to You under the Apache License, Version 2.0
+ *  * (the "License"); you may not use this file except in compliance with
+ *  * the License.  You may obtain a copy of the License at
+ *  *
+ *  *     http://www.apache.org/licenses/LICENSE-2.0
+ *  *
+ *  * Unless required by applicable law or agreed to in writing, software
+ *  * distributed under the License is distributed on an "AS IS" BASIS,
+ *  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  * See the License for the specific language governing permissions and
+ *  * limitations under the License.
+ *
+ */
+
+package org.apache.solr.monitor.search;
+
+public enum QueryMatchType {

Review Comment:
   > ... matches many documents and expects the query matches to be bucketed 
per requested document. This is currently part of the original monitor API 
although it's arguable whether it is in scope for this initial solr 
integration. ...
   
   Hmm, yes, that's an interesting question. I think my thoughts on this would 
be something along these lines:
   * Is matching multiple documents at the same time a common use case?
   * If it's not in scope for the initial integration then it could be added 
later potentially.
   * Single document makes for a simpler request and response interface from 
the user's perspective and from the code perspective too e.g. no need to check 
if there's zero documents in the batch or duplicates in the batch.
   * Multiple documents, or the potential for multiple documents, reduces 
familiarity with i.e. similarity to existing functionality i.e. it would be 
somewhat akin to supporting more than one `q` parameter in a search. And if 
(say) _two_ documents are supplied, does it (from the user's point of view) 
mean to match against _either of them_ or does it mean to match against _both 
of them_?
   * Nested documents -- I don't know much about them yet actually -- might 
they provide a way (beyond the initial integration here) to support 
multiple-documents logic via a single document?
     * 
https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-nested-documents.html



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to