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

Deepak Mishra updated SOLR-5554:
--------------------------------

          Description: 
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)
          Environment: Solr 4.6
    Affects Version/s: 4.6
              Summary: Ordering Issue with Collapse while using sort field min 
max  (was: Ordering Issue with )

> Ordering Issue with Collapse while using sort field 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
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

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

Reply via email to