lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Query Term Collector (was: Re: New highlighter package available)
Date Sat, 04 Oct 2003 09:47:05 GMT
With regards to Korfut's TermCollector proposition:
I do not like the new requirement for all query classes to implement getTerms(). This is effectively
what they are currently
required to do in the query.rewrite() method - express their high-level logic in primitive

I beleive the getTerms() implementation should make use of this existing feature of all query
objects (as I have done in, and not create a new set of requirements for all query classes
- lets not add complexity where its
not needed.
So, I think the real question is should there be a home for a getTerms() function that operates
on primitive (rewritten) queries?

We can move some of the logic in to somewhere core if the consensus
is that 
this is a generally useful feature (though I have yet to think of one outside of highlighting)

Incidentally, it may be of interest to note that I am busy packaging up a getTopTerms() feature
that analyses the contents 
of query result sets and returns the "significant" terms and phrases found in the result set
based on their relative frequency
compared to that of the corpus. 
Its quite effective and of use in query expansion and highlighting. 
This may be of interest to those proposing query.getTerms() changes.


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

View raw message