RE: Automatic Prefix Query

2011-09-27 Thread Michael Szediwy
Thanks a lot ... It works! :-) Cheers Michael -Original Message- From: Uwe Schindler [mailto:u...@thetaphi.de] Sent: Montag, 26. September 2011 17:33 To: java-user@lucene.apache.org Subject: RE: Automatic Prefix Query One thing to mention: > You can subclass QueryParser and overr

RE: Automatic Prefix Query

2011-09-26 Thread Uwe Schindler
One thing to mention: > You can subclass QueryParser and override newFieldQuery to produce a > PrefixQuery instead of TermQuery - that's all. Here a simple example with an > anonymous inner class: > > qp = new QueryParser(...) { > @Override > protected Query newTermQuery(Term term) { > re

RE: Automatic Prefix Query

2011-09-26 Thread Uwe Schindler
--Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Monday, September 26, 2011 5:16 PM > To: java-user@lucene.apache.org > Subject: Re: Automatic Prefix Query > > You could break the input stream up and construct a BooleanQuery from a > seri

Re: Automatic Prefix Query

2011-09-26 Thread Erick Erickson
You could break the input stream up and construct a BooleanQuery from a series of PrefixQuerys, but there's nothing automatic that I know of. Best Erick On Mon, Sep 26, 2011 at 5:30 AM, Michael Szediwy wrote: > Hi, > > is it possible to convert a query like "un lis" to "un* lis*" > automatically

Automatic Prefix Query

2011-09-26 Thread Michael Szediwy
Hi, is it possible to convert a query like "un lis" to "un* lis*" automatically using lucene API? Thanks in advance for your answer. Cheers Michael - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For addition