Caa52 commented on a change in pull request #529:
URL: https://github.com/apache/solr/pull/529#discussion_r799607211



##########
File path: solr/core/src/java/org/apache/solr/search/facet/FacetRequest.java
##########
@@ -287,24 +288,23 @@ public static void createGraphField(FacetRequest.Domain 
domain, Map<String,Objec
        * Creates a Query that can be used to recompute the new "base" for this 
domain, relative to the
        * current base of the FacetContext.
        */
-      public Query createDomainQuery(FacetContext fcontext) throws IOException 
{
-        final SolrConstantScoreQuery fromQuery = new 
SolrConstantScoreQuery(fcontext.base.getTopFilter());
+      public Query createDomainQuery(FacetContext fcontext) {
+        final ConstantScoreQuery fromQuery = new 
ConstantScoreQuery(fcontext.base.makeQuery());

Review comment:
       Refactored it so `fromQuery` is not wrapped in a constant score query 
given we are using makeQuery which is a constant scoring query 👍




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to