Re: Unable to get wildcards to work

2007-05-04 Thread Paul Taylor
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 follow

Re: Unable to get wildcards to work

2007-05-04 Thread Koji Sekiguchi
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 -