[ https://issues.apache.org/jira/browse/SOLR-14859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17200114#comment-17200114 ]
ASF subversion and git services commented on SOLR-14859: -------------------------------------------------------- Commit 52156bb99faed2a8e3ee8c379c6d8df2c81cf5c5 in lucene-solr's branch refs/heads/branch_8x from Jason Gerlowski [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=52156bb ] SOLR-14859: Set fieldType defaults for DateRangeField AbstractSpatialPrefixTreeFieldType (and its children) create index fields based on a prototype with options frozen in PrefixTreeStrategy, regardless of options specified in the schema. This works fine most of the time, but causes problems when QParsers or other query optimization logic makes decisions based on these options (which are potentially out of sync with the underlying index data). Most commonly this causes issues with "exists" (e.g. [* TO *]) queries. This commit enforces fieldType defaults that line up with the 'hardcoded' FieldType used by PrefixTreeStrategy. Options on either the fieldType or the field itself which contradict these defaults will result in exceptions at schema load/modification time. > [* TO *] queries on DateRange fields miss results > ------------------------------------------------- > > Key: SOLR-14859 > URL: https://issues.apache.org/jira/browse/SOLR-14859 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Components: query parsers > Affects Versions: 8.5 > Reporter: Jason Gerlowski > Assignee: Jason Gerlowski > Priority: Major > Attachments: SOLR-14859.patch, SOLR-14859.patch, SOLR-14859.patch, > SOLR-14859.patch, SOLR-14859.patch, SOLR-14859.patch, query-debug.png, > reproduce.sh, schema.png > > > "exists" queries ({{[* TO *]}}) on DateRange fields return 0 results > regardless of docs in the index with values in that field. > The issue appears to be that the query is converted into a > {{NormsFieldExistsQuery}}, even though DateRangeField uses omitNorms=true by > default. Probably introduced by SOLR-11746's changes to these optimizable > range queries. > I've attached a script to reproduce the issue (tested on Solr 8.6.2) and > screenshots showing showing schema and query-parsing info for the > reproduction. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org