You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2020/05/15 01:59:00 UTC
[jira] [Created] (SOLR-14487) collapse parser treats a zero field
value as non-existent
David Smiley created SOLR-14487:
-----------------------------------
Summary: collapse parser treats a zero field value as non-existent
Key: SOLR-14487
URL: https://issues.apache.org/jira/browse/SOLR-14487
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Reporter: David Smiley
When collapsing on an integer field (maybe others too?), a zero value is considered the same as the document having no value.
I found this when trying to write a test [solr/core/src/test/org/apache/solr/search/TestCollapseQParserPlugin.java|https://github.com/apache/lucene-solr/pull/1517/files#diff-641a4dc7b08b4730c071153e28ad9d62] method "testMinExactHitsDisabledByCollapse" but was able to work around it using nullPolicy=expand. It's clearly not a general fix but only helped for that particular query/circumstance.
--
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