# Phrase Suggestion based in Query

**URL:** <https://discuss.elastic.co/t/phrase-suggestion-based-in-query/151498>\
**Category:** Elasticsearch\
**Created:** [October 8, 2018, 5:31pm UTC](https://discuss.elastic.co/t/phrase-suggestion-based-in-query/151498 "2018-10-08T17:31:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomTom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomtom/32/3676_2.png) [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Post date:** [October 8, 2018, 5:31pm UTC](https://discuss.elastic.co/t/phrase-suggestion-based-in-query/151498/1 "2018-10-08T17:31:47Z")

</div>

Currently I had a property in my mapping that restricts data by accounts, each document has this property stating which account it belongs to.

Is it possible to use phrase suggestion only to return document-based suggestions for a particular account?  
The reason is privacy.

---

<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:** [November 5, 2018, 5:31pm UTC](https://discuss.elastic.co/t/phrase-suggestion-based-in-query/151498/2 "2018-11-05T17:31:47Z")

</div>

Closed on November 5, 2018, 5:31pm UTC

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