lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anshum <ansh...@gmail.com>
Subject Re: distinct field values
Date Tue, 14 Oct 2008 07:54:52 GMT
Hi,

You could try changing (or extending) TopFieldDocCollector and do your
processing there (that is what I tried... and it worked fine). But that
would mean changing lucene code a little bit.

--
Anshum Gupta
Naukri Labs!
http://ai-cafe.blogspot.com

The facts expressed here belong to everybody, the opinions to me. The
distinction is yours to draw............


On Tue, Oct 14, 2008 at 12:53 PM, Akanksha Baid <baid@cs.wisc.edu> wrote:

> I have indexed multiple documents - each of them have 3 fields ( id, tag ,
> text). Is there an easy way to determine the set of tags for a given query
> without iterating through all the hits?
> For example if I have 100 documents in my index and my set of tag = {A, B,
> C}. Query Q on the text field returns 15 docs with tag A , 10 with tag B and
> none with tag C (total of 25 hits). Is there a way to determine that the set
> of tags for query Q = {A, B} without iterating through all 25 hits.
>
> Any ideas?
>
> Thanks!
> Akanksha
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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