I created an index for an attachment using elasticsearch2.3.3 and Nest 2.3.2.My indexing is given below. I am searching for singular words with plurals in the document.Read that snowball stemmer will do this type of conversion. But no records were returned on search.Is there any extra plugin/words collection need to be added to the application to make it work. Can anyone help.
{
"mydocs":{
"aliases":{
},
"mappings":{
"indexdocument":{
"properties":{
"docLocation":{
"type":"string",
"index":"not_analyzed",
"store":true
},
"documentType":{
"type":"string",
"store":true
},
"file":{
"type":"attachment",
"fields":{
"content":{
"type":"string"
},
"author":{
"type":"string"
},
"title":{
"type":"string",
"term_vector":"with_positions_offsets",
"analyzer":"full"
},
"name":{
"type":"string"
},
"date":{
"type":"date",
"format":"strict_date_optional_time||epoch_millis"
},
"keywords":{
"type":"string"
},
"content_type":{
"type":"string"
},
"content_length":{
"type":"integer"
},
"language":{
"type":"string"
}
}
},
"id":{
"type":"double",
"store":true
},
"lastModifiedDate":{
"type":"date",
"store":true,
"format":"strict_date_optional_time||epoch_millis"
},
"title":{
"type":"string",
"store":true,
"term_vector":"with_positions_offsets"
}
}
}
},
"settings":{
"index":{
"creation_date":"1466180794989",
"analysis":{
"filter":{
"nGram":{
"min_gram":"2",
"side":"front",
"type":"edge_ngram",
"max_gram":"20"
}
},
"analyzer":{
"partial":{
"filter":[
"standard",
"asciifolding",
"lowercase",
"snowball"
],
"type":"custom",
"tokenizer":"nGram"
},
"full":{
"filter":[
"standard",
"asciifolding",
"lowercase",
"snowball",
"nGram"
],
"type":"custom",
"tokenizer":"standard"
}
}
},
"number_of_shards":"5",
"number_of_replicas":"1",
"uuid":"tc-yTpbIQGeGDMOOMspf_g",
"version":{
"created":"2030399"
}
}
},
"warmers":{
}
}
}
I tried stemmer_override also. But no luck. Am I doing anything incorrrect