[
https://issues.apache.org/jira/browse/SOLR-5554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13847559#comment-13847559
]
Joel Bernstein commented on SOLR-5554:
--------------------------------------
I was able to reproduce the ordering issue. It was due to the sort="" param.
The code was expecting sort to be left off the request instead of an empty sort
criteria sent. I'll resolve this as part of SOLR-5416 and add a test for this.
In the meantime if you leave out sort parameter when it's empty it will solve
the ordering issues.
I'm checking on the null pointer issue now.
> Ordering Issue when Collapsing using min max
> --------------------------------------------
>
> Key: SOLR-5554
> URL: https://issues.apache.org/jira/browse/SOLR-5554
> Project: Solr
> Issue Type: Sub-task
> Components: search
> Affects Versions: 4.6
> Environment: Solr 4.6
> Reporter: Deepak Mishra
> Fix For: 4.6, 5.0
>
> Attachments: Error On Query4, Query1.txt, Query2.txt, Query3.txt,
> Query4.txt, Query5.txt
>
>
> We faced the ordering issue without passing any sorting parameter and same
> filters in both queries.
> Query1
> fq=
> {!collapse field=company_id}
> Query2
> fq=
> {!collapse field=comany_id min=price}
> Query3
> For debugging Query2, we added score field in
> fl=score,offering_id,company_id...
> That actually solved the document order issue
> Query4
> But when we passed selective exclude in facet field of Query3, it give
> document in correct order but with NullPointerException in error and no facet
> (not the one in SOLR-5416).
> facet.field=
> {!ex="samsung"}
> brand
> fq=
> {!tag="samsung"}
> (brand:"samsung")
> The error is
> NullPointerException at
> org.apache.solr.search.CollapsingQParserPlugin$FloatValueCollapse.collapse(CollapsingQParserPlugin.java:852)
> Query5
> Removing score from fl in Query 4 removes the error
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]