Description
On the solr-user mailing list, Torsten Krah pointed out that with Trie numeric fields, query syntax such as foo_d:* has been functionality equivilent to foo_d:[* TO *] and asked why this was not also supported for Point based numeric fields.
The fact that this type of syntax works (for indexed="true" Trie fields) appears to have been an (untested, undocumented) fluke of Trie fields given that they use indexed terms for the (encoded) numeric terms and inherit the default implementation of FieldType.getPrefixQuery which produces a prefix query against the "" (empty string) term.
(Note that this syntax has aparently never worked for Trie fields with indexed="false" docValues="true" )
In general, we should assess the behavior users attempt a prefix/wildcard syntax query against numeric fields, as currently the behavior is largely non-sensical: prefix/wildcard syntax frequently match no docs w/o any sort of error, and the aformentioned numeric_field:* behaves inconsistently between points/trie fields and between indexed/docValued trie fields.
Attachments
Attachments
Issue Links
- causes
-
SOLR-14859 [* TO *] queries on DateRange fields miss results
- Closed
- contains
-
SOLR-11437 double open ended range queries should be optimized to DocValuesFieldExistsQuery or NormsFieldExistsQuery
- Resolved
- is related to
-
SOLR-14199 Enforce omitNorms for PointFields
- Open