Hi Trejkaz,
I am using the Standard Analyzer for my indexing. Can you provide an
example with which I can use the BooleanQuery to add both the fields in the
same forms and yet the documents are searched?
I would be really grateful if you can provide example for parsing the text
as well which is p
On Mon, Jul 23, 2012 at 10:16 PM, Deepak Shakya wrote:
> Hey Jack,
>
> Can you let me know how should I do that? I am using the Lucene 3.6 version
> and I dont see any parse() method for StandardAnalyzer.
In your case, presumably at indexing time you should be using a
PerFieldAnalyzerWrapper with
ssage- From: Deepak Shakya
>> Sent: Sunday, July 22, 2012 9:35 PM
>> To: java-user@lucene.apache.org
>> Subject: Re: QueryParser and BooleanQuery
>>
>>
>> I tried changing the case to lower case, but still the BooleanQuery doesn't
>> return any documents.
>
Sunday, July 22, 2012 9:35 PM
> To: java-user@lucene.apache.org
> Subject: Re: QueryParser and BooleanQuery
>
>
> I tried changing the case to lower case, but still the BooleanQuery doesn't
> return any documents.
>
> I see that the text "/blank" is converte
-Original Message-
From: Deepak Shakya
Sent: Sunday, July 22, 2012 9:35 PM
To: java-user@lucene.apache.org
Subject: Re: QueryParser and BooleanQuery
I tried changing the case to lower case, but still the BooleanQuery doesn't
return any documents.
I see that the text "
I tried changing the case to lower case, but still the BooleanQuery doesn't
return any documents.
I see that the text "/blank" is converted to "blank" in the QueryParser.
But in BooleanQuery it remains the same. When I remove the forward slash
sign from the input string, I get the matched document
The query parser/analyzer is lower-casing the query terms automatically. You
have to do the same with with terms for BooleanQuery - Term("cs-method",
"GET") should be "Term("cs-method", "get")".
StandardAnalyzer is doing the lower-casing.
-- Jack Krupansky
-Original Message-
From: De