Why don't you store each "file" in a single document, add a field for each "line" and use a PerFieldAnalyzerWrapper?
Francisco A. Lozano On Thu, Feb 9, 2012 at 13:01, Vinaya Kumar Thimmappa <vthimma...@ariba.com> wrote: > Hello All, > > I have a requirement of using different analyzer per document. How can > we do this? > > My analyzer would be locale specific. > > I have a file with 10 lines, each with different language. Document > would be one line and I want analyzer to be changed based on the locale > of the line. Is this possible to do ? > > Thanks > Vinaya > > > --------------------------------------------------------------------- > 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