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