# I need to use the Suggester when I enable the DLS

**URL:** <https://discuss.elastic.co/t/i-need-to-use-the-suggester-when-i-enable-the-dls/345263>\
**Category:** Elasticsearch\
**Created:** [October 18, 2023, 9:18am UTC](https://discuss.elastic.co/t/i-need-to-use-the-suggester-when-i-enable-the-dls/345263 "2023-10-18T09:18:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjp.jamalian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjp.jamalian/32/126626_2.png) [@sjp.jamalian](https://discuss.elastic.co/u/sjp.jamalian)\
**Post date:** [October 18, 2023, 9:18am UTC](https://discuss.elastic.co/t/i-need-to-use-the-suggester-when-i-enable-the-dls/345263/1 "2023-10-18T09:18:32Z")

</div>

Hello,  
When I enable the security and want to use the Suggester, I get this error:

```auto
org.elasticsearch.ElasticsearchException: Elasticsearch exception [type=security_exception, reason=Suggest isn't supported if document level security is enabled]

```

How to do the Suggester when I enable the security?  
Thank you.

---

<div class="post-metadata">

**Author:** ![ChristineW\_Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christinew_elastic/32/126664_2.png) [@ChristineW\_Elastic](https://discuss.elastic.co/u/ChristineW_Elastic)\
**Post date:** [October 18, 2023, 4:12pm UTC](https://discuss.elastic.co/t/i-need-to-use-the-suggester-when-i-enable-the-dls/345263/2 "2023-10-18T16:12:43Z")

</div>

Hi @sjp.jamalian, thanks for reaching out to Elastic Security! I believe your question is better directed at #Elasticsearch

---

<div class="post-metadata">

**Author:** ![sjp.jamalian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjp.jamalian/32/126626_2.png) [@sjp.jamalian](https://discuss.elastic.co/u/sjp.jamalian)\
**Post date:** [October 25, 2023, 11:48am UTC](https://discuss.elastic.co/t/i-need-to-use-the-suggester-when-i-enable-the-dls/345263/3 "2023-10-25T11:48:09Z")

</div>

Does anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [October 26, 2023, 6:12am UTC](https://discuss.elastic.co/t/i-need-to-use-the-suggester-when-i-enable-the-dls/345263/4 "2023-10-26T06:12:43Z")

</div>

It's not possible to use suggesters alongside DLS.

- [Security limitations | Elasticsearch Guide [8.7] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/security-limitations.html#field-document-limitations)

---

<div class="post-metadata">

**Author:** ![sjp.jamalian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjp.jamalian/32/126626_2.png) [@sjp.jamalian](https://discuss.elastic.co/u/sjp.jamalian)\
**Post date:** [October 26, 2023, 6:34am UTC](https://discuss.elastic.co/t/i-need-to-use-the-suggester-when-i-enable-the-dls/345263/5 "2023-10-26T06:34:42Z")

</div>

Thank you for your response,

What is your recommendation to use suggestion when we enable the security?

---

<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 23, 2023, 6:34am UTC](https://discuss.elastic.co/t/i-need-to-use-the-suggester-when-i-enable-the-dls/345263/6 "2023-11-23T06:34:57Z")

</div>

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