You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Debra <de...@netvision.net.il> on 2007/07/25 23:33:28 UTC
Return only one result per results group
Is there a way to receive only one result for each group of search results
depending on a specified group field.
Example:
Searching a list of articles with author as the group field would return
articles that match the query but will return only one article per author
even if the author has more then one article matching the query.
Thank you
--
View this message in context: http://www.nabble.com/Return-only-one-result-per-results-group-tf4148109.html#a11800407
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Return only one result per results group
Posted by Debra <de...@netvision.net.il>.
Thank you, I'll take a look.
Pieter Berkel wrote:
>
> Debra,
>
> It sounds like what you are trying to do is implemented in a new feature
> known as "Field collapsing" (see
> https://issues.apache.org/jira/browse/SOLR-236 for more info).
> Unfortunately
> it isn't quite mature enough to be included in the main distribution so in
> order to try it out you'll probably need to obtain the latest solr source
> code from svn trunk, apply the patch " SOLR-236-FieldCollapsing.patch"
> from
> the above URL and compile it yourself.
>
> If you do choose to do this, you might find some information on this wiki
> page helpful:
> http://wiki.apache.org/solr/HowToContribute
>
> cheers,
> Piete
>
>
>
> On 26/07/07, Debra <devoraf@netvision.net.il > wrote:
>>
>>
>> Is there a way to receive only one result for each group of search
>> results
>>
>> depending on a specified group field.
>>
>> Example:
>> Searching a list of articles with author as the group field would return
>> articles that match the query but will return only one article per author
>> even if the author has more then one article matching the query.
>>
>> Thank you
>> --
>> View this message in context:
>> http://www.nabble.com/Return-only-one-result-per-results-group-tf4148109.html#a11800407
>>
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Return-only-one-result-per-results-group-tf4148109.html#a11815089
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Return only one result per results group
Posted by Pieter Berkel <pi...@gmail.com>.
Debra,
It sounds like what you are trying to do is implemented in a new feature
known as "Field collapsing" (see
https://issues.apache.org/jira/browse/SOLR-236 for more info). Unfortunately
it isn't quite mature enough to be included in the main distribution so in
order to try it out you'll probably need to obtain the latest solr source
code from svn trunk, apply the patch " SOLR-236-FieldCollapsing.patch" from
the above URL and compile it yourself.
If you do choose to do this, you might find some information on this wiki
page helpful:
http://wiki.apache.org/solr/HowToContribute
cheers,
Piete
On 26/07/07, Debra <devoraf@netvision.net.il > wrote:
>
>
> Is there a way to receive only one result for each group of search results
>
> depending on a specified group field.
>
> Example:
> Searching a list of articles with author as the group field would return
> articles that match the query but will return only one article per author
> even if the author has more then one article matching the query.
>
> Thank you
> --
> View this message in context: http://www.nabble.com/Return-only-one-result-per-results-group-tf4148109.html#a11800407
>
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>