lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <>
Subject Re: wildcards within a phrase query
Date Wed, 12 Oct 2005 20:59:35 GMT
On Mittwoch 12 Oktober 2005 17:18, Robert Watkins wrote:

> Does that sound reasonable -- and scalable -- to you?

I don't think you need to iterate at all, you can easily expand the terms 
of a query:

    QueryParser qp = new QueryParser("f", new StandardAnalyzer());
    Query q = qp.parse("e*");
    IndexReader ir ="/tmp/index");

This will expand e* to all of your indice's words that start with "e". Same 
for wildcard queries.

I'll leave the guessing about performance to others. Why not just give it a 
try when it's so easy?



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

View raw message