Search code examples
solrsolr4

SOLR enum fieldType


I need to index a field called lang that will contain values such as en or ar
I need its type to be enum is there a way to do it in schema.xml file?
or I should simply use a normal text field?


Solution

  • There is an Enum support in solr - please take a look at this Working with enums