I have already created an index and I daily add some records and use in a site for searching.
Now, I have created another index and in that I used Data types as I have used in my previous index.
but I am not getting any results.
Here is the mapping for my index:
{ "euipo" : { "mappings" : { "text_type" : { "properties" : { "applicant_date" : { "type" : "integer" }, "applicant_name" : { "type" : "completion", "analyzer" : "simple", "preserve_separators" : true, "preserve_position_increments" : true, "max_input_length" : 50 }, "application_date" : { "type" : "long" }, "application_number" : { "type" : "completion", "analyzer" : "simple", "preserve_separators" : true, "preserve_position_increments" : true, "max_input_length" : 50 }, "class_number" : { "type" : "completion", "analyzer" : "simple", "preserve_separators" : true, "preserve_position_increments" : true, "max_input_length" : 50 }, "did" : { "type" : "long" }, "id" : { "type" : "text" }, "mark_text" : { "type" : "completion", "analyzer" : "simple", "preserve_separators" : true, "preserve_position_increments" : true, "max_input_length" : 50 } } } } } }
there is the screen shot of the query I used :
1.