Each field type specifies a single analyzer (although query, index, and multi-term are separate analyzers). If you want to have multiple analyzers for a given field type, then you need to have a separate field type for each.

If you expect to have that fine control over field type issues, then I would suggest that "schemaless" is not an appropriate choice. Maybe you simply wish to add field types dynamically. There is an open Jira for adding that feature to Solr:

SOLR-5098 - Add REST support for adding field types to the schema
https://issues.apache.org/jira/browse/SOLR-5098

That said, maybe you could provide a couple of examples of exactly what you want to do.

-- Jack Krupansky

-----Original Message----- From: Ankit Jain
Sent: Friday, August 29, 2014 8:16 AM
To: solr-user@lucene.apache.org
Subject: Specify Analyzer per field

Hi All,

I would like to use schema less feature of Solr and also want to specify
the analyzer of each field at runtime(specify analyzer at the time of
adding new field into solr).

Also, I want to use the different analyzer for same field type.

--
Thanks,
Ankit Jain

Reply via email to