Re: Changing analyzer in an indexwriter

2015-04-21 Thread Michael McCandless
Thanks, I'll fix MIGRATE.txt to mention this. Mike McCandless http://blog.mikemccandless.com On Mon, Apr 20, 2015 at 9:08 AM, Anna Elisabetta Ziri wrote: > Thank you everyone! Could I suggest that this change should be mentioned in > the migration guide? In our case it requires a complete rein

Re: Changing analyzer in an indexwriter

2015-04-20 Thread Anna Elisabetta Ziri
Thank you everyone! Could I suggest that this change should be mentioned in the migration guide? In our case it requires a complete reindex and code change (in search too) so maybe others are in the same situation. Thank you again for the prompt help, Lisa Il giorno lun 20 apr 2015 alle ore 10:4

Re: Changing analyzer in an indexwriter

2015-04-20 Thread Michael McCandless
See the discussion on https://issues.apache.org/jira/browse/LUCENE-6212 about this? It's best to isolate different languages into different fields... Mike McCandless http://blog.mikemccandless.com On Sun, Apr 19, 2015 at 8:37 AM, Ahmet Arslan wrote: > Hi Lisa, > > I think AnalyzerWrapper > ht

Re: Changing analyzer in an indexwriter

2015-04-19 Thread Ahmet Arslan
Hi Lisa, I think AnalyzerWrapper https://lucene.apache.org/core/4_0_0/core/org/apache/lucene/analysis/AnalyzerWrapper.html Ahmet On Sunday, April 19, 2015 1:37 PM, Lisa Ziri wrote: Hi, I'm upgrading to lucene 5.1.0 from lucene 4. In our index we have documents in different languages which are

Changing analyzer in an indexwriter

2015-04-19 Thread Lisa Ziri
Hi, I'm upgrading to lucene 5.1.0 from lucene 4. In our index we have documents in different languages which are analyzed with the correct analyzer. We used the method addDocument of IndexWriter giving the correct analyzer for every different document. Now I see that I can define the analyzer used