# Role of the analyzer in the completion suggester

**URL:** https://discuss.elastic.co/t/role-of-the-analyzer-in-the-completion-suggester/21734
**Category:** Elasticsearch
**Created:** [January 20, 2015, 4:41pm UTC](https://discuss.elastic.co/t/role-of-the-analyzer-in-the-completion-suggester/21734 "2015-01-20T16:41:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![micpalmia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/micpalmia/32/541_2.png) [@micpalmia](https://discuss.elastic.co/u/micpalmia)
#### Post date: [January 20, 2015, 4:41pm UTC](https://discuss.elastic.co/t/role-of-the-analyzer-in-the-completion-suggester/21734/1 "2015-01-20T16:41:56Z")

</div>

The completion suggester is based on a field that has to be mapped with  
type _completion._  
This has by default index- and search-analyzer set to _simple_, but a  
different analyzer can be freely set.

After the indexing process, the input text is stored in a finite state  
transducer, and suggestions are only returned on prefixes matching the  
provided text.

_What I'm struggling to understand is the role of the analyzer in this  
whole process_. Is the analyzer only used to process the input string to  
extract the string that will actually be stored in the FST? Is the search  
analyzer only used to process the search text and extract the actual path  
to be followed to traverse the finite state machine?

Thank you in advance,  
Michele

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5d6f0a42-0bf8-4c7b-b6a4-076d00f2df2f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5d6f0a42-0bf8-4c7b-b6a4-076d00f2df2f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:37am UTC](https://discuss.elastic.co/t/role-of-the-analyzer-in-the-completion-suggester/21734/2 "2017-07-06T00:37:44Z")

</div>


