lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markharw00d <markharw...@yahoo.co.uk>
Subject SpanQuery doesn't implement extractTerms
Date Tue, 28 Mar 2006 21:15:01 GMT
Is there any particular reason why SpanQuery introduced
   public Collection getTerms()
when we have:
    public void extractTerms(Set terms)
in Query?

I am changing the highlighter to make use of extractTerms and can either 
add this to SpanQuery:

  public void extractTerms(Set terms) {
      terms.addAll(getTerms());
  }

or (perhaps more riskily) consider removing getTerms() completely from 
SpanQueries and replace with extractTerms.

Thoughts?



		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
http://uk.security.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message