# Singular-Plural search with minimal\_english stemmer

**URL:** <https://discuss.elastic.co/t/singular-plural-search-with-minimal-english-stemmer/10091>\
**Category:** Elasticsearch\
**Created:** [December 17, 2012, 10:43am UTC](https://discuss.elastic.co/t/singular-plural-search-with-minimal-english-stemmer/10091 "2012-12-17T10:43:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Himadri](https://avatars.discourse-cdn.com/v4/letter/h/e9a140/32.png) [@Himadri](https://discuss.elastic.co/u/Himadri)\
**Post date:** [December 17, 2012, 10:43am UTC](https://discuss.elastic.co/t/singular-plural-search-with-minimal-english-stemmer/10091/1 "2012-12-17T10:43:32Z")

</div>

We have used minimal\_english stemmer filter in our mapping. This is to ensure that only singular and plural are searchable and not similar words. eg. Test and Tests should be searchable on entering the term - Test - but Tester/Testers/Testing should not be.  
On trying to search, multi\_field attribute types are searchable but keyword attribute types are not, when we use the RESTful API :

curl -X GET "[http://10.113.124.136:9400/libtester/\_search?pretty=true](http://10.113.124.136:9400/libtester/_search?pretty=true)" -d '{  
"query" : {  
"query\_string" : {  
"query" : " DescriptionDescription " ,  
"fields" : ["abc"]  
}  
}  
}'

Mappings are as shown below :

"properties": {  
"abc" : {  
"type": "multi\_field",  
"fields":{  
"c\_asset\_id": { "type": "string", "index": "analyzed", "include\_in\_all": true, "analyzer": "basic\_english" },  
"untouched": { "type": "string", "index": "analyzed", "include\_in\_all": false, "analyzer": "string\_lowercase" }  
}  
},  
"xyz": {  
"type": "nested",  
"properties": {  
"c\_viewpoint": {  
"type": "multi\_field",  
"fields": {  
"c\_viewpoint": { "type": "string", "index": "analyzed", "include\_in\_all": true, "analyzer": "basic\_english" },  
"untouched": { "type": "string", "index": "analyzed", "include\_in\_all": false, "analyzer": "string\_lowercase" }  
}  
}  
}  
}, ...  
}

Is this to do with the mapping of nested types - xyz, that they are not searchable from the same API that multi\_field types are?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:59am UTC](https://discuss.elastic.co/t/singular-plural-search-with-minimal-english-stemmer/10091/2 "2017-07-06T02:59:39Z")

</div>

Closed on July 6, 2017, 2:59am UTC


