-- Jack Krupansky
-Original Message-
From: Bill Chesky
Sent: Friday, August 03, 2012 5:35 PM
To: java-user@lucene.apache.org
Subject: RE: Analyzer on query question
Thanks for the help everybody. We're using 3.0.1 so I couldn't do exactly
what Simon and Jack suggested. Bu
Jack Krupansky [mailto:j...@basetechnology.com]
Sent: Friday, August 03, 2012 4:03 PM
To: java-user@lucene.apache.org
Subject: Re: Analyzer on query question
Simon gave sample code for analyzing a multi-term string.
Here's some pseudo-code (hasn't been compiled to check it) to analyze a
gt;BytesRef bytes = termAtt.getBytesRef();
>>return new Term(BytesRef.deepCopyOf(bytes));
>> } else
>>return null;
>> // TODO: Close the StringReader
>> // TODO: Handle terms that analyze into multiple terms (e.g., embedded
>> punctuation)
>> }
&
ew Term(BytesRef.deepCopyOf(bytes));
> } else
>return null;
> // TODO: Close the StringReader
> // TODO: Handle terms that analyze into multiple terms (e.g., embedded
> punctuation)
> }
>
> -- Jack Krupansky
>
> -Original Message----- From: Bill Chesky
> Sent
ll Chesky
Sent: Friday, August 03, 2012 2:55 PM
To: java-user@lucene.apache.org
Subject: RE: Analyzer on query question
Ian/Jack,
Ok, thanks for the help. I certainly don't want to take a cheap way out,
hence my original question about whether this is the right way to do this.
Jack, you
this I'd greatly appreciate it.
regards,
Bill
-Original Message-
From: Jack Krupansky [mailto:j...@basetechnology.com]
Sent: Friday, August 03, 2012 1:22 PM
To: java-user@lucene.apache.org
Subject: Re: Analyzer on query question
Bill, the re-parse of Query.toString will work pro
cause term analysis such as stemming)
becomes unnecessary and risky if you are not very careful or very lucky.
-- Jack Krupansky
-Original Message-
From: Ian Lea
Sent: Friday, August 03, 2012 1:12 PM
To: java-user@lucene.apache.org
Subject: Re: Analyzer on query question
Bill
; So I don't see the advantage to doing it this way over the original method.
> I just don't know if the original way I described is wrong or will give me
> bad results.
>
> thanks for the help,
>
> Bill
>
> -Original Message-
> From: Ian Lea [mailto:i
ier way to associate the correct analyzer with these
> types of queries?
>
> Bill
>
> -Original Message-
> From: Simon Willnauer [mailto:simon.willna...@gmail.com]
> Sent: Friday, August 03, 2012 3:43 AM
> To: java-user@lucene.apache.org; Bill Chesky
> Subject: R
rong to do it the way I described in my original email? Will it give me
incorrect results?
Bill
-Original Message-
From: Jack Krupansky [mailto:j...@basetechnology.com]
Sent: Friday, August 03, 2012 9:33 AM
To: java-user@lucene.apache.org
Subject: Re: Analyzer on query question
Bill,
ease.
We really do need a wiki page for Lucene term analysis.
-- Jack Krupansky
-Original Message-
From: Bill Chesky
Sent: Friday, August 03, 2012 9:19 AM
To: simon.willna...@gmail.com ; java-user@lucene.apache.org
Subject: RE: Analyzer on query question
Thanks Simon,
Unfortunately,
Term("title", "foo"));
> phraseQuery.add(new
> Term("title", "bar"));
>
> Is there really no easier way to associate the correct analyzer with these
> types of queries?
>
> Bill
>
>
types of queries?
Bill
-Original Message-
From: Simon Willnauer [mailto:simon.willna...@gmail.com]
Sent: Friday, August 03, 2012 3:43 AM
To: java-user@lucene.apache.org; Bill Chesky
Subject: Re: Analyzer on query question
On Thu, Aug 2, 2012 at 11:09 PM, Bill Chesky
wrote:
> Hi,
>
On Thu, Aug 2, 2012 at 11:09 PM, Bill Chesky
wrote:
> Hi,
>
> I understand that generally speaking you should use the same analyzer on
> querying as was used on indexing. In my code I am using the SnowballAnalyzer
> on index creation. However, on the query side I am building up a complex
> Bo
Hi,
I understand that generally speaking you should use the same analyzer on
querying as was used on indexing. In my code I am using the SnowballAnalyzer
on index creation. However, on the query side I am building up a complex
BooleanQuery from other BooleanQuerys and/or PhraseQuerys on sever
15 matches
Mail list logo