# ElasticSearch \_suggest endpoint

**URL:** <https://discuss.elastic.co/t/elasticsearch--suggest-endpoint/59478>\
**Category:** Elasticsearch\
**Created:** [August 31, 2016, 11:23pm UTC](https://discuss.elastic.co/t/elasticsearch--suggest-endpoint/59478 "2016-08-31T23:23:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seminda](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@seminda](https://discuss.elastic.co/u/seminda)\
**Post date:** [August 31, 2016, 11:23pm UTC](https://discuss.elastic.co/t/elasticsearch--suggest-endpoint/59478/1 "2016-08-31T23:23:52Z")

</div>

I need to add a filter to suggest query. Is there a way to do that?

Sample query is

```
{
"suggest" : {
	"text" : "sem",
	"Body.Container.Text" : {
		"phrase" : {
			"field" : "Body.Container.Text.Raw",
			"analyzer" : "standard",
			"direct_generator" : [{
					"field" : "Body.Container.Text.Raw",
					"suggest_mode" : "always"
				}
			]
		}
	},
	"Metadata.Name" : {
		"phrase" : {
			"field" : "Metadata.Name.Raw",
			"analyzer" : "standard",
			"direct_generator" : [{
					"field" : "Metadata.Name.Raw",
					"suggest_mode" : "always"
				}
			]
		}
	},
	"Metadata.Description" : {
		"phrase" : {
			"field" : "Metadata.Description.Raw",
			"analyzer" : "standard",
			"direct_generator" : [{
					"field" : "Metadata.Description.Raw",
					"suggest_mode" : "always"
				}
			]
		}
	}
}

```

}

---

<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 5, 2017, 10:23pm UTC](https://discuss.elastic.co/t/elasticsearch--suggest-endpoint/59478/2 "2017-07-05T22:23:27Z")

</div>


