I'm using default mappings in ES that will set default type as "string" for message fields. But I need to set the type as "long" for particular dynamic fields.
In properties section of mapping file, I can insert manually those fields. But in my case, I have n-number of servers. thats so hard to update in mappings file.
@MrLee , I checked your suggested method. its working. But have one issue.
In my mappings file, I set all string should be "not_analyzed". But its not working. its comes as analyzed field.
If the value comes as "test_low" , its split into two string "test" and "low" . My intension is about to all string should be "not_analyzed" for particular document type. Is there any option to achieve ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.