Thanks

What I'd really like to do is to exclude an entire group if a certain field is 
set to true in any of the documents that make up that group. I can't do it at 
index time because some of my users have certain documents hidden from them. So 
they shouldn't see the flag as set, while others would.

I can do it in post processing, but that will mess up sorting and pagination.


Thanks again
steve

On Jan 24, 2011, at 11:39 AM, Stefan Matheis wrote:

> Steve,
> 
> and what exactly do you expect? You can work on the Group itself with
> http://wiki.apache.org/solr/FieldCollapsing#Request_Parameters in a limited
> way, but of course it's "just" a normal Solr-Result, group by some Values,
> nothing really special.
> 
> "Can't be referenced in the query" - what do you want to do there?
> 
> Regards
> Stefan
> 
> On Mon, Jan 24, 2011 at 4:27 PM, Steve Fuchs <st...@aps.org> wrote:
> 
>> Hi Thanks for the response.
>> 
>> I didn't explain myself well, I am using the field collapsing and things
>> are working as that page describes.
>> 
>> I think my problem is that as well as field collapsing works, solr is still
>> just returning a list of documents. There don't seem to be any operations I
>> can do on collapsed groups as a whole. They are more of a display thing that
>> can't be referenced in the query. Same thing with facets? Am I right in
>> this?
>> 
>> steve
>> 
>> 
>> 
>> thansk again
>> steve
>> 
>> On Jan 22, 2011, at 12:53 AM, Otis Gospodnetic wrote:
>> 
>>> Steve,
>>> 
>>> Does http://wiki.apache.org/solr/FieldCollapsing do what you need?
>>> 
>>> Otis
>>> ----
>>> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
>>> Lucene ecosystem search :: http://search-lucene.com/
>>> 
>>> 
>>> 
>>> ----- Original Message ----
>>>> From: Steve Fuchs <st...@aps.org>
>>>> To: solr-user@lucene.apache.org
>>>> Sent: Fri, January 21, 2011 3:05:32 PM
>>>> Subject: searching based on grouping result
>>>> 
>>>> Hello All,
>>>> 
>>>> MY index documents represent a set of papers each with an  author id and
>> the id
>>>> of the referee that reviewed the paper.
>>>> 
>>>> I also end  up with a field in each document that tells me whether the
>> referee
>>>> still has the  paper, but has not graded it. THis can be a boolean.
>>>> 
>>>> In my final result I  want to collapse the result by referee number and
>> omit
>>>> any referee that has this  boolean true, it doesn't matter how many
>> documents
>>>> they have with the field set  to false.
>>>> 
>>>> Is there a way to set my query to honor the results of the  grouping (or
>> of a
>>>> facet?) as in q:  -referee_number.open_flag:*
>>>> 
>>>> ?
>>>> 
>>>> 
>>>> Thanks in advance.
>>>> 
>>>> steve
>>> 
>> 
>> 

Reply via email to