And if you want different analyzers for different fields, see PerFieldAnalyzerWrapper
-- Ian. On Fri, Mar 25, 2011 at 1:31 PM, David Causse <dcau...@spotter.com> wrote: > On Fri, Mar 25, 2011 at 12:59:44PM +0100, Amel Fraisse wrote: >> Hello, >> >> I would index the same document with 2 different Analyzer. >> So I have to create 2 different index. >> >> How can I do that ? > > Hi, > > within the same index you can have more than one indexed field. > Just add your two indexed fields in the same Document object. > > Regards. > > -- > David Causse > Spotter > http://www.spotter.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org