I am using a php library of elasticsearch to index and find documents in my website. This is the code for creating the index:
curl -XPUT 'http://localhost:9200/test/' -d '
{
"index": {
"numberOfShards": 1,
"numberOfReplicas": 1
}
}'
I then use curl XPUT to add documents to the index and XGET to query the index. This works well except for the fact that singulars and plurals of query words are not matched across the index while returning results. For example, when I search for "discussions", the matches for "discussion" are not returned and vice versa. Why is this so? I thought this is taken care of by default in elasticsearch. Is there anything that we have to mention explicitly for it to match the singular/plural forms?