I found the problem here. I had changed some method params and was
inadvertently creating the fields I was having issues with as StringFields,
which the analyzer fails silently against.
From: , Scott Bauer mailto:bauer.sc...@mayo.edu>>
Date: Friday, August 7, 2015 at 1:56 PM
To: "java-user@luce
://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Ganesh [mailto:emailg...@yahoo.co.in]
> Sent: Monday, November 30, 2009 6:39 AM
> To: java-user@lucene.apache.org
> Subject: Re: PerFieldAnalyzerWrapper
>
> One small correction...
>
> My default An
One small correction...
My default Analyzer is snowball analyzer and it is being used for all fields
(not KeywordAnalyzer) even though few fields should use different analyzer.
PerFieldAnalyzerWrapper is not considering the analyzer set for different
fields.
This is consistently reproducing
ROTECTED]>
To: java-user@lucene.apache.org
Sent: Saturday, July 29, 2006 4:04:23 PM
Subject: Re: PerFieldAnalyzerWrapper use? Analyzer's not being used as
expected
Hey Erik,
Will do. May I ask why? Out of curiousity.
Thanks,
Michael
Erik Hatcher wrote:
I think you should use
Or simpler:
wr = new IndexWriter(indexDir, aWrapper, !IndexReader.indexExists(indexDir));
- Original Message
From: Michael J. Prichard <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Sunday, July 30, 2006 1:35:29 PM
Subject: Re: PerFieldAnalyzerWrapper use? Analyzer
Instead of catching the
IOException, you may want to use !IndexReader.indexExists(...) in place of that
boolean param to IndexWriter ctor.
Otis
- Original Message
From: Michael J. Prichard <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Saturday, July 29, 2006 4:04:2
.apache.org
Sent: Saturday, July 29, 2006 4:04:23 PM
Subject: Re: PerFieldAnalyzerWrapper use? Analyzer's not being
used as expected
Hey Erik,
Will do. May I ask why? Out of curiousity.
Thanks,
Michael
Erik Hatcher wrote:
I think you should use a new instance of each analyze
IndexWriter ctor.
Otis
- Original Message
From: Michael J. Prichard <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Saturday, July 29, 2006 4:04:23 PM
Subject: Re: PerFieldAnalyzerWrapper use? Analyzer's not being used as
expected
Hey Erik,
Will do. May I ask w
Hey Erik,
Will do. May I ask why? Out of curiousity.
Thanks,
Michael
Erik Hatcher wrote:
I think you should use a new instance of each analyzer for each
field, not reuse instances. Other than that, your usage is fine.
Erik
On Jul 29, 2006, at 3:49 PM, Michael J. Prichard wrote:
I think you should use a new instance of each analyzer for each
field, not reuse instances. Other than that, your usage is fine.
Erik
On Jul 29, 2006, at 3:49 PM, Michael J. Prichard wrote:
So I have the following code...
// let's get our SynonymAnalyzer
SynonymAnalyzer synAnalyze
Oh my...disregard this question. It works...I was instantiating my
IndexWriter before setting up my Analyzers!! Dangit...I feel a little
dumb. I just switched the order and put the instantiated indexwriter
last...it works.
Thanks,
Michael
P.S. I feel somewhat silly!
Michael J. Prichard w
11 matches
Mail list logo