You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Chris M. Hostetter (Jira)" <ji...@apache.org> on 2021/01/26 02:13:00 UTC

[jira] [Updated] (SOLR-14330) Return docs with null value in expand for field when collapse has nullPolicy=collapse

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

Chris M. Hostetter updated SOLR-14330:
--------------------------------------
    Attachment: SOLR-14330.patch
      Assignee: Chris M. Hostetter
        Status: Open  (was: Open)

Attaching a strawman patch with some tests.

The patch introduces an {{expand.nullGroup=true|false}} option to control if/when this behavior happens, and works with both nullPolicy=collapse and nullPolicy=expand (although obviously it only creates a single group for null docs in the {{expanded}} section).  It should also work fine with {{expand.field}} and {{expand.q}} type situations, but there's nocommits to actually test that.

wanted to put the patch out before getting too deep into new tests incase people have concerns about the semantics/behavior/UX and wanted to discuss if it should behave or be implemented differently.

> Return docs with null value in expand for field when collapse has nullPolicy=collapse
> -------------------------------------------------------------------------------------
>
>                 Key: SOLR-14330
>                 URL: https://issues.apache.org/jira/browse/SOLR-14330
>             Project: Solr
>          Issue Type: Wish
>            Reporter: Munendra S N
>            Assignee: Chris M. Hostetter
>            Priority: Major
>         Attachments: SOLR-14330.patch
>
>
> When documents doesn't contain value for field then, with collapse either those documents could be either ignored(default), collapsed(one document is chosen) or expanded(all are returned). This is controlled by {{nullPolicy}}
> When {{nullPolicy}} is {{collapse}}, it would be nice to return all documents with {{null}} value in expand block if {{expand=true}}
> Also, when used with {{expand.field}}, even then we should return such documents



--
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