And if you want different analyzers for different fields, see PerFieldAnalyzerWrapper
-- Ian. On Fri, Mar 25, 2011 at 1:31 PM, David Causse <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
