# Is it possible to restrict phrase suggester to returning existing "phrases" only?

**URL:** https://discuss.elastic.co/t/is-it-possible-to-restrict-phrase-suggester-to-returning-existing-phrases-only/14211
**Category:** Elasticsearch
**Created:** [November 1, 2013, 3:50am UTC](https://discuss.elastic.co/t/is-it-possible-to-restrict-phrase-suggester-to-returning-existing-phrases-only/14211 "2013-11-01T03:50:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![roytmana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roytmana/32/44855_2.png) [@roytmana](https://discuss.elastic.co/u/roytmana)
#### Post date: [November 1, 2013, 3:50am UTC](https://discuss.elastic.co/t/is-it-possible-to-restrict-phrase-suggester-to-returning-existing-phrases-only/14211/1 "2013-11-01T03:50:23Z")

</div>

Hello,

I have been evaluating phrase suggester and I have couple of questions:

1. When executing a query, is it possible to restrict phrase suggester to  
returning word combinations (order does not matter) that only exist in the  
index?

2. When executing a query, is it possible to restrict suggestions to those  
matching a filter. I do not want to show suggestions which when used as  
part of the original query will return nothing. So ideally I would like to  
supply suggester with the same filter as the query uses (minus actual  
search text)

Thank you,  
Alex

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![roytmana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roytmana/32/44855_2.png) [@roytmana](https://discuss.elastic.co/u/roytmana)
#### Post date: [November 1, 2013, 4:27pm UTC](https://discuss.elastic.co/t/is-it-possible-to-restrict-phrase-suggester-to-returning-existing-phrases-only/14211/2 "2013-11-01T16:27:51Z")

</div>

Bump 🙂

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:09am UTC](https://discuss.elastic.co/t/is-it-possible-to-restrict-phrase-suggester-to-returning-existing-phrases-only/14211/3 "2017-07-06T02:09:18Z")

</div>


