lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koji Sekiguchi <k...@r.email.ne.jp>
Subject Re: Unable to get wildcards to work
Date Fri, 04 May 2007 09:51:15 GMT
Hi Pail,

Try WildcardQuery instead of TermQuery as follows:

           //Search on column columnId for value searchstring
           WildcardQuery query = new WildcardQuery(new 
Term(String.valueOf(columnId),searchstring));

Thank you,

Koji


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