# Search Suggestions and Contexts

**URL:** <https://discuss.elastic.co/t/search-suggestions-and-contexts/83769>\
**Category:** Elasticsearch\
**Created:** [April 26, 2017, 8:28pm UTC](https://discuss.elastic.co/t/search-suggestions-and-contexts/83769 "2017-04-26T20:28:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kennf](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@Kennf](https://discuss.elastic.co/u/Kennf)\
**Post date:** [April 26, 2017, 8:28pm UTC](https://discuss.elastic.co/t/search-suggestions-and-contexts/83769/1 "2017-04-26T20:28:46Z")

</div>

I'm attempting to filter search suggestions by multiple conditions. For example, as a user types, we'd say "Here are suggestions that meet both criteria X AND criteria Y". My understanding is that the way to do that is with contexts and categories as defined here: [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/suggester-context.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/suggester-context.html)

However, I also found this Github issue saying that these contexts were changed in 5.x to be OR'd together when they had previously been AND'd: [https://github.com/elastic/elasticsearch/issues/21291](https://github.com/elastic/elasticsearch/issues/21291)

Does this mean this goal is impossible in Elasticsearch? The Github issue is from November, and it seems like this is a big loss/change in functionality.

---

<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:** [May 24, 2017, 8:34pm UTC](https://discuss.elastic.co/t/search-suggestions-and-contexts/83769/2 "2017-05-24T20:34:27Z")

</div>

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