lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Noll <>
Subject Re: Q: Highlighter + Search symbols "*, ?, ~"
Date Mon, 20 Nov 2006 22:13:31 GMT
Stephan Spat wrote:
> It is necessary to give a "native" query to the QueryScorer (only 
> Boolean operators). Therefore I just took the an IndexWriter object and 
> used its public method rewrite(query).

How efficient is this for huge wildcard queries?  e.g. "a*"

At the moment we highlight our terms by using for instance, 
WildcardQuery#getEnum(IndexReader), and only storing the strings which 
it returns, whereas I would assume Query#rewrite(IndexReader) would take 
up much more memory.

Range queries are another one... try querying for a range from a to zzzz 
and see what happens. :-)


Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia    Ph: +61 2 9280 0699
Web:                               Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

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

View raw message