Phrase match with wildcards e.g. search for st*

2002-10-10 Thread Eoin O'Toole
I would like the phrase search for st* to return matches which expand the wildcard... but it doesn't seem to work. right now I can get search for stuff and search for stars to return hits, but search for st* doesn't. Any ideas on how to implement this functionality? Thanks, Eoin -- To

Re: Phrase match with wildcards e.g. search for st*

2002-10-10 Thread Ype Kingma
Eoin, Get the cvs version and have a look at: org/apache/lucene/search/PhrasePrefixQuery.java It sais: /** * PhrasePrefixQuery is a generalized version of PhraseQuery, with an added * method {@link #add(Term[])}. * To use this class, to search for the phrase Microsoft app* first use *