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: Using '*' wildcard in phrase searches
Date Mon, 05 Jul 2004 11:16:03 GMT
On Jul 5, 2004, at 5:06 AM, Albert Vila wrote:
> I wanna use the * in the middle of a phrase search like "java j2*". 
> Anyone knows how can i achieve that?

This is not possible with QueryParser, currently.

But through the API, you could (and it would take a little bit of code 
- see Lucene's test cases for more details) use a PhrasePrefixQuery to 
do this - it boils down to you manually expanding all the terms for 
j2*.

	Erik


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


Mime
View raw message