question about collapse.type = adjacent

View: New views
3 Messages — Rating Filter:   Alert me  

question about collapse.type = adjacent

by michael8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I would like to confirm if 'adjacent' in collapse.type means the documents (with the same collapse field value) are considered adjacent *after* the 'sort' param from the query has been applied, or *before*?  I would think it would be *after* since collapse feature primarily is meant for presentation use.

Thanks,
Michael

Re: question about collapse.type = adjacent

by Martijn v Groningen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Micheal,

Field collapsing is basicly done in two steps. The first step is to
get the uncollapsed sorted (whether it is score or a field value)
documents and the second step is to apply the collapse algorithm on
the uncollapsed documents. So yes, when specifying
collapse.type=adjacent the documents can get collapsed after the sort
has been applied, but this also the case when not specifying
collapse.type=adjacent
I hope this answers your question.

Cheers,

Martijn

2009/11/2 michael8 <michael@...>:

>
> Hi,
>
> I would like to confirm if 'adjacent' in collapse.type means the documents
> (with the same collapse field value) are considered adjacent *after* the
> 'sort' param from the query has been applied, or *before*?  I would think it
> would be *after* since collapse feature primarily is meant for presentation
> use.
>
> Thanks,
> Michael
> --
> View this message in context: http://old.nabble.com/question-about-collapse.type-%3D-adjacent-tp26157114p26157114.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



--
Met vriendelijke groet,

Martijn van Groningen

Re: question about collapse.type = adjacent

by michael8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Martijn,

This clarifies it all for me.  Thanks a lot!

Michael

Martijn v Groningen wrote:
Hi Micheal,

Field collapsing is basicly done in two steps. The first step is to
get the uncollapsed sorted (whether it is score or a field value)
documents and the second step is to apply the collapse algorithm on
the uncollapsed documents. So yes, when specifying
collapse.type=adjacent the documents can get collapsed after the sort
has been applied, but this also the case when not specifying
collapse.type=adjacent
I hope this answers your question.

Cheers,

Martijn

2009/11/2 michael8 <michael@saracatech.com>:
>
> Hi,
>
> I would like to confirm if 'adjacent' in collapse.type means the documents
> (with the same collapse field value) are considered adjacent *after* the
> 'sort' param from the query has been applied, or *before*?  I would think it
> would be *after* since collapse feature primarily is meant for presentation
> use.
>
> Thanks,
> Michael
> --
> View this message in context: http://old.nabble.com/question-about-collapse.type-%3D-adjacent-tp26157114p26157114.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



--
Met vriendelijke groet,

Martijn van Groningen