lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: Subset match query?
Date Wed, 03 Oct 2007 20:45:35 GMT
Oops, too quick to reply...  coord() won't quite do it, since it does  
terms matched in doc versus terms in query.

On Oct 3, 2007, at 2:20 PM, Kyle Maxwell wrote:

> I'm indexing a dataset with lots of short fields.  I have  
> determined that it
> would be useful to highly boost matches where every term in this  
> field is
> represented in the query. i.e.:
> Query: lucene field matches
> Field: lucene field
> but not
> Field: lucene has a field ...
> Field: lucene field foo...
> I'm finding this to be very difficult to implement.  I believe that  
> I could
> write a query to count the term matches in a field, but I'm not  
> sure how, in
> a subclass of query, it would be possible to efficiently count the  
> total
> number of terms in the field.  Any advice would be welcome!
> -Kyle

Grant Ingersoll

Lucene Boot Camp Training:
ApacheCon Atlanta, Nov. 12, 2007.  Sign up now!  http://

Lucene Helpful Hints:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message