lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Bernstein <joels...@gmail.com>
Subject Re: Collapse and Expand behaviour on result with 1 document.
Date Tue, 31 Mar 2015 11:37:17 GMT
You should be able to use collapse/expand with one result.

Does the document in the main result set have group members that aren't
being expanded?



Joel Bernstein
http://joelsolr.blogspot.com/

On Tue, Mar 31, 2015 at 2:00 AM, Derek Poh <dpoh@globalsources.com> wrote:

> If I want to group the results (by a certain field) even if there is only
> 1 document, I should use the group parameter instead?
> The requirement is to group the result of product documents by their
> supplier id.
> "&group=true&group.field=P_SupplierId&group.limit=5"
>
> Is it true that the performance of collapse is better than group parameter
> on large data set, say 10-20 million documents?
>
> -Derek
>
>
> On 3/31/2015 10:03 AM, Joel Bernstein wrote:
>
>> The expanded section will only include groups that have expanded
>> documents.
>>
>> So, if the document that in the main result set has no documents to
>> expand,
>> then this is working as expected.
>>
>>
>>
>> Joel Bernstein
>> http://joelsolr.blogspot.com/
>>
>> On Mon, Mar 30, 2015 at 8:43 PM, Derek Poh <dpoh@globalsources.com>
>> wrote:
>>
>>  Hi
>>>
>>> I have a query which return 1 document.
>>> When I add the collapse and expand parameters to it,
>>> "&expand=true&expand.rows=5&fq={!collapse%20field=P_SupplierId}",
the
>>> expanded section is empty (<lst name="expanded"/>).
>>>
>>> Is this the behaviour of collapse and expand parameters on result which
>>> contain only 1 document?
>>>
>>> -Derek
>>>
>>>
>>>
>>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message