[
https://issues.apache.org/jira/browse/SOLR-5554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13847571#comment-13847571
]
Joel Bernstein commented on SOLR-5554:
--------------------------------------
I was not able to reproduce the NPE with this test:
{code}
params = new ModifiableSolrParams();
params.add("q", "*:*");
params.add("fq", "{!collapse field=group_s nullPolicy=expand min=test_tf}");
params.add("defType", "edismax");
params.add("bf", "field(test_ti)");
params.add("fl","score,id");
params.add("facet","true");
params.add("facet.field", "{!ex=g2}group_s");
params.add("fq", "{!tag=g2}group_s:group2");
params.add("fq", "{!tag=t2}term_s:YYYY");
assertQ(req(params), "*[count(//doc)=1]",
"//result/doc[1]/float[@name='id'][.='6.0']"
);
{code}
Can you change the log level to FINE and attach the entire stack trace?
> 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]