lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <j...@basetechnology.com>
Subject Re: Is Analyzer used when calling IndexWriter.addIndexesNoOptimize()?
Date Wed, 05 Dec 2012 14:24:58 GMT
These are operations on indexes, so analysis is no longer relevant. Analysis 
is performed BEFORE data is placed in an index. You still need to perform 
analysis for queries though.

You can use different analyzers as long as they are compatible - if they 
produce the same results, but if they don't produce the same token stream at 
both the token and character/byte level, your queries may fail.

Rule #1 with Lucene and Solr - always be prepared to completely reindex your 
data, precisely because ideas about analysis evolve over time.

-- Jack Krupansky

-----Original Message----- 
From: Earl Hood
Sent: Wednesday, December 05, 2012 2:33 AM
To: java-user@lucene.apache.org
Subject: Is Analyzer used when calling IndexWriter.addIndexesNoOptimize()?

Lucene version: 3.0.3

Does IndexWriter use the analyzer when adding indexes via
addIndexesNoOptimize()?

What about for optimize()?

I am examining some existing code and trying to determine
what effects there may be when combining multiple indexes
into a single index, but each index may have had different
analyzers used.

Thanks,

--ewh

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message