# Using snowball analyzer to handle plural/singular forms

**URL:** https://discuss.elastic.co/t/using-snowball-analyzer-to-handle-plural-singular-forms/87452
**Category:** Elasticsearch
**Created:** [May 29, 2017, 12:53pm UTC](https://discuss.elastic.co/t/using-snowball-analyzer-to-handle-plural-singular-forms/87452 "2017-05-29T12:53:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![enp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/enp/32/3825_2.png) [@enp](https://discuss.elastic.co/u/enp)
#### Post date: [May 29, 2017, 12:53pm UTC](https://discuss.elastic.co/t/using-snowball-analyzer-to-handle-plural-singular-forms/87452/1 "2017-05-29T12:53:23Z")

</div>

Hi,

Tried to use snowball analyzer to handle plural/singular forms while searching:

```
PUT locations
{
  "mappings": {
    "place": {
      "properties": {
        "name": { "type": "text", "analyzer": "snowball" }
      }
    }
  }
}

POST locations/place/1 
{ "name": "restaurant"}

GET locations/_search?q=restaurant
{
  "took": 1,
  "timed_out": false,
  "_shards": {
    "total": 5,
    "successful": 5,
    "failed": 0
  },
  "hits": {
    "total": 1,
    "max_score": 0.2876821,
    "hits": [
      {
        "_index": "locations",
        "_type": "place",
        "_id": "1",
        "_score": 0.2876821,
        "_source": {
          "type": "restaurant"
        }
      }
    ]
  }
}

GET locations/_search?q=restaurants
{
  "took": 1,
  "timed_out": false,
  "_shards": {
    "total": 5,
    "successful": 5,
    "failed": 0
  },
  "hits": {
    "total": 0,
    "max_score": null,
    "hits": []
  }
}

```

So it is not possible to find any by search phrase with 'restaurants'. Why and how to fix this?

---

<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: [June 26, 2017, 12:53pm UTC](https://discuss.elastic.co/t/using-snowball-analyzer-to-handle-plural-singular-forms/87452/2 "2017-06-26T12:53:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
