How does elasticsearch stores field mappings for every lucene index?


(Kumaran R) #1

while update documents, elasticsearch knows which field is analyzed, not_analyzed, numeric. How does it store this information for every index? within every index? any pointers to elasticsearch source code ?

During update and search, this field information is used for applying keywordanalyzer for not_analyzed fields and range query for numeric


(Alexander Reelsen) #2

Hey,

this is stored per index per type in the mapping - which in turn is part of the cluster state

--Alex


(Kumaran R) #3

Hi Alex

Thank you. Your input helped me a lot.


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.