HoustonPutman commented on code in PR #2632:
URL: https://github.com/apache/solr/pull/2632#discussion_r1932707839


##########
solr/core/src/java/org/apache/solr/schema/CurrencyFieldType.java:
##########
@@ -387,7 +386,7 @@ private Query getRangeQueryInternal(
         (p1 != null) ? p1.getCurrencyCode() : (p2 != null) ? 
p2.getCurrencyCode() : defaultCurrency;
 
     // ValueSourceRangeFilter doesn't check exists(), so we have to
-    final Query docsWithValues = new 
DocValuesFieldExistsQuery(getAmountField(field).getName());
+    final Query docsWithValues = 
getAmountField(field).getType().getExistenceQuery(parser, field);

Review Comment:
   Just debugged this, stupid error. Should be passing the amountField into the 
method instead of the currencyField.



-- 
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