hi David,
I want to sort the text fields ,so before sorting I want make fieldData= true , I have done it ,
like this
XContentBuilder jsonBuilder = XContentFactory.jsonBuilder()) {
final XContentBuilder builder = jsonBuilder
.startObject()
.startObject("your_type")
.startObject("properties")
.startObject("your_field")
.field("type", "text")
.field("fielddata", true)/setting fielddata/
.endObject()
.endObject()
.endObject()
.endObject();
But how to do this besides I am indexing using Logstash
yes I am using this in java , is there a possibility to use this put mapping stuff while indexing using logstash ,I mean I am using Logstash for indexing my ElasticSearch Data ,and I want to set the fieldData =true while indexing .
correct me if my problem statement is mis interpreting .
I am indexing my data into elastic search using logstash ,now I want to sort string fields ,but I am getting exceptions because I did't set the field data=true ,now I want to set this fieldData=true while indexing using logstash .
Note:I have done this using java but want to do this using Logstash
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.