lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anze <dka...@gmail.com>
Subject Excluding terms in grouping results
Date Thu, 26 Dec 2013 20:22:09 GMT
Hello there,

The question is: how to group results by some field (text terms), but
exclude some term from being grouped by. For example there are few documents
with field 'tags':

1. tags: term1 term2 term3
2. tags: term2 term3 term4
3. tags: term1 term2 term4
3. tags: term2 term3 term4

And i want to group by 'tags', so there usually result would be 4 groups,
but, for example i need to exclude 'term4' as group, but still be able to
see documents where 'term4' is present. Is there a way to do this? I can't
use another field, cause there is a lot of these terms, and any term can be
excluded, or even two at once. Another example, may be it help, when i make
request to find ?q=tags:term4, i need group by tags, but exclude term4 to be
a group, as i already searching by this term.

Thank you for your time.



--
View this message in context: http://lucene.472066.n3.nabble.com/Excluding-terms-in-grouping-results-tp4108280.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message