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
http://lucene.grantingersoll.com

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

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to