HoustonPutman commented on code in PR #3930:
URL: https://github.com/apache/solr/pull/3930#discussion_r2604052835
##########
solr/core/src/java/org/apache/solr/schema/DoublePointField.java:
##########
@@ -178,4 +179,18 @@ public IndexableField createField(SchemaField field,
Object value) {
protected StoredField getStoredField(SchemaField sf, Object value) {
return new StoredField(sf.getName(), (Double) this.toNativeType(value));
}
+
+ /**
+ * Override the default existence behavior, so that the non-docValued/norms
implementation matches
+ * NaN values for double and float fields. The [* TO *] query for those
fields does not match
+ * 'NaN' values, so they must be matched separately.
+ *
+ * <p>For doubles and floats the query behavior is equivalent to
field:[-Infinity TO NaN] since
+ * NaN has a value greater than +Infinity
+ */
+ @Override
+ public Query getSpecializedExistenceQuery(QParser parser, SchemaField field)
{
+ return new ConstantScoreQuery(
Review Comment:
Agreed. Removed.
--
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]