lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Query.rewrite - help me to understand it
Date Mon, 17 Dec 2007 15:08:57 GMT

On Dec 17, 2007, at 5:14 AM, qvall wrote:
> So does it mean that if I my query doesn't support prefix or wild-char
> queries then I don't need to use rewrite() for highlighting?

As long as the terms you want highlighted are extractable from the  
Query instance, all is fine.

However, it wouldn't hurt to always rewrite.  Primitive queries short  
circuit the rewriting anyway, so its not as though you're burning  
much unnecessary time/IO in the rewrite call.

	Erik


---------------------------------------------------------------------
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