lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <>
Subject Re: Query.extractTerms - a poor introspection API?
Date Thu, 06 Apr 2006 14:04:50 GMT

On Apr 6, 2006, at 2:52 AM, mark harwood wrote:
> Maybe we should have as a standard part of Query:
>   //immediate child queries only
>   Query [] getNestedQueries();
> and...
>   //immediate terms only
>   Term [] getTerms();

FWIW:   In KinoSearch, I have extract_terms set up to return either a  
Term, or in the case of PhraseQuery, a reference to an array of  
Terms.  When the Highlighter sees the arrayref, it knows to winnow  
down the positions that the term appears at, using the same logic as  
PhraseScorer.  This is what allows KinoSearch's Highlighter to handle  
phrases properly. 

Marvin Humphrey
Rectangular Research

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

View raw message