lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Taylor <paul_t...@fastmail.fm>
Subject Re: Unable to get wildcards to work
Date Fri, 04 May 2007 10:12:50 GMT
Thanks, youve sparked a thought Ive now realised I was calling the wrong 
method i had another method (simpleSearch) that used the Query parser to 
parse the search string which I should have been using

cheers Paul

Koji Sekiguchi wrote:
> 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
>
>
>


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