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
you need config es mapping?