lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: regex expressions within phrase queries
Date Fri, 15 Feb 2008 06:47:17 GMT

: I was wondering if anyone has a more efficient method for achieving this.
: Would changing QueryParser.jj and developing a custom PhraseQuery class be a
: good idea?  Any comments would be appreciated.

extending QueryParser and overriding the getPhraseQuery function to return 
your own SpanNearQueries composted of SpanRegexQueries shouldn't be any 
more efficient then modifying the QueryParser grammer.  either way it's 
going to be calling some method you write that returns a SpanNearQuery.



-Hoss


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


Mime
View raw message