[ 
https://issues.apache.org/jira/browse/SOLR-14073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17058807#comment-17058807
 ] 

Joel Bernstein commented on SOLR-14073:
---------------------------------------

You can control the order of multiple collapses with the "cost" parameter. The 
cost parameter should be set to above 100 in all cases, but lower cost 
collapses will come before higher cost collapses:
{code:java}
fq={!collapse cost=200 field=a}&fq={!collapse cost=300 field=b}  {code}

> Fix segment look ahead NPE in CollapsingQParserPlugin
> -----------------------------------------------------
>
>                 Key: SOLR-14073
>                 URL: https://issues.apache.org/jira/browse/SOLR-14073
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Joel Bernstein
>            Assignee: Joel Bernstein
>            Priority: Major
>             Fix For: 8.5
>
>         Attachments: SOLR-14073.patch, SOLR-14073.patch, SOLR-14073.patch
>
>
> The CollapsingQParserPlugin has a bug that if every segment is not visited 
> during the collect it throws an NPE. This causes the CollapsingQParserPlugin 
> to not work when used with any feature that short circuits the segments 
> during the collect. This includes using the CollapsingQParserPlugin twice in 
> the same query and the time limiting collector.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to