Indexing data with java api but the field not indexed


(Sunqi Sunny) #1

I indexed data with java api like:
response = client.prepareIndex(IndexName, TypeName).setSource(jsonBuilder().startObject() .field("age", face.getAge()) .field("gender", face.getGender()) .field("height",face.getHeight()) .field("fat",face.getFat()) .field("date", face.getDate()).endObject()) .get(); ret = response.isCreated();
and it works,I can see my data in Kibana,but I can not search any field because every field has a 'not indexed' tag.
what can I do


(zhang.yingbing) #2

you need config es mapping?


(system) #3