I wouldn't :). Here's the problem. Say you do this successfully at index time. How do you then search reasonably? There's often not near enough information to know what the search language is, there's little or no context.
If the number of languages is limited, people often index into separate language-specific fields, say title_fr and title_en and use edismax to automatically distribute queries against all the fields. Others index "families" of languages in separate fields using things like the folding filters for Western languages, another field for, say, CJK languages and another for Middle Eastern languages etc. FWIW, Erick On Wed, Sep 11, 2013 at 6:55 AM, maephisto <my_sky...@yahoo.com> wrote: > Let's take the following type definition and schema (borrowed from Rafal > Kuc's Solr 4 cookbook) : > <fieldType name="text" class="solr.TextField" positionIncrementGap="100"> > <analyzer> > <tokenizer class="solr.WhitespaceTokenizerFactory"/> > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="solr.SnowballPorterFilterFactory" language="English"/> > </analyzer> > </fieldType> > > and schema: > > <field name="id" type="string" indexed="true" stored="true" > required="true" /> > <field name="title" type="text" indexed="true" stored="true" /> > > The above analizer will apply SnowballPorterFilter english language filter. > But would it be possible to change the language to french during indexing > for some documents. is this possible? If not, what would be the best > solution for having the same analizer but with different languages, which > languange being determined at index time ? > > Thanks! > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Dynamic-analizer-settings-change-tp4089274.html > Sent from the Solr - User mailing list archive at Nabble.com. >