# Is it possible to use a custom suggester?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-use-a-custom-suggester/135925>\
**Category:** Elasticsearch\
**Created:** [June 14, 2018, 1:23pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-a-custom-suggester/135925 "2018-06-14T13:23:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyhind](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@andyhind](https://discuss.elastic.co/u/andyhind)\
**Post date:** [June 14, 2018, 1:23pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-a-custom-suggester/135925/1 "2018-06-14T13:23:05Z")

</div>

Hi

I have a custom lucene suggester; an implementation of org.apache.lucene.search.suggest.Lookup. Is it possible to wire this up in Elastic Search?  
In SOLR, I can create a lookup factory and add this to the configuration.

Regards

Andy

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [June 22, 2018, 1:31pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-a-custom-suggester/135925/2 "2018-06-22T13:31:09Z")

</div>

Hi,

in theory it should be possible to write your own suggester as a plugin. I found this somewhat old PR that adds the ability to add a custom suggester ([https://github.com/elastic/elasticsearch/issues/3089](https://github.com/elastic/elasticsearch/issues/3089)), however I'm pretty sure this is not documented very well and might not work at the moment because of changes in the way Plugins need to register some of the classes that might be needed. I will do some digging.

---

<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 20, 2018, 1:31pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-a-custom-suggester/135925/3 "2018-07-20T13:31:09Z")

</div>

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