You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Houston Putman (Jira)" <ji...@apache.org> on 2020/01/21 22:27:00 UTC

[jira] [Resolved] (SOLR-11437) double open ended range queries should be optimized to DocValuesFieldExistsQuery or NormsFieldExistsQuery

     [ https://issues.apache.org/jira/browse/SOLR-11437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Houston Putman resolved SOLR-11437.
-----------------------------------
    Resolution: Duplicate

Note that double and float fields do not use NormsFieldExistsQueries or DocValuesFieldExistsQuery for {{[* TO *]}} queries. This is because those query implementations will match documents with {{NaN}} values, and [* TO *] should not match {{NaN}} values.

> double open ended range queries should be optimized to DocValuesFieldExistsQuery or NormsFieldExistsQuery
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-11437
>                 URL: https://issues.apache.org/jira/browse/SOLR-11437
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Chris M. Hostetter
>            Priority: Major
>
> DocValuesFieldExistsQuery & NormsFieldExistsQuery are efficient ways to determine if a doc has a value in a given field (assuming the field has docValues or norms respectively)
> Since Solr's schema knows if/when these properties are true for a given field, we should be able to optimize some of the {{field:[* TO *]}} usecases to use these queries under the covers -- notably in {{FieldType.getRangeQuery}} and subclasses that override it, but there may be other cases where they could come in handy as well



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org