Hi,
We are using lucene 1.4.3, we indexed a string
Company picnic is great!
by IndexWriter created with StandardAnalyzer, into
a field called "all". I also confirmed StandardAnalyzer
processed my input string as tokens:
company
picnic
great
as I expected.
But when I try to create Query by Qu
Here is a list of special characters that must be excaped in a query.
+ - && || ! ( ) { } [ ] ^ " ~ * ? : \
Query q = QueryParser.parse("great\!", "all", new StandardAnalyzer());
On 6/9/05, Zhang, Lisheng <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We are using lucene 1.4.3, we indexed a string
>
>
Hi Richard,
Thanks very much! That works.
Lisheng
-Original Message-
From: Richard Krenek [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 3:18 PM
To: java-user@lucene.apache.org
Subject: Re: Lucene 1.4.3 QueryParser cannot parse "great!" ?
Here is a list of special
IL PROTECTED]
> Sent: Thursday, June 09, 2005 3:18 PM
> To: java-user@lucene.apache.org
> Subject: Re: Lucene 1.4.3 QueryParser cannot parse "great!" ?
>
>
> Here is a list of special characters that must be excaped in a query.
>
> + - && || ! ( ) { }
Hi Chris,
Thanks very much, that also works well!
Lisheng
-Original Message-
From: Chris Lamprecht [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 6:03 PM
To: java-user@lucene.apache.org
Subject: Re: Lucene 1.4.3 QueryParser cannot parse "great!" ?
See QueryParser.es
gards, Lisheng
-Original Message-
From: Richard Krenek [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 3:18 PM
To: java-user@lucene.apache.org
Subject: Re: Lucene 1.4.3 QueryParser cannot parse "great!" ?
Here is a list of special ch
rsday, June 09, 2005 3:18 PM
> To: java-user@lucene.apache.org
> Subject: Re: Lucene 1.4.3 QueryParser cannot parse "great!" ?
>
>
> Here is a list of special characters that must be excaped in a query.
>
> + - && || ! ( ) { } [ ] ^ " ~ * ? : \
>
>