# Autocomplete and fs-river

**URL:** <https://discuss.elastic.co/t/autocomplete-and-fs-river/11319>\
**Category:** Elasticsearch\
**Created:** [March 26, 2013, 2:18pm UTC](https://discuss.elastic.co/t/autocomplete-and-fs-river/11319 "2013-03-26T14:18:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yahia](https://avatars.discourse-cdn.com/v4/letter/y/d9b06d/32.png) [@yahia](https://discuss.elastic.co/u/yahia)\
**Post date:** [March 26, 2013, 2:18pm UTC](https://discuss.elastic.co/t/autocomplete-and-fs-river/11319/1 "2013-03-26T14:18:34Z")

</div>

hi all,

what is the best way to achieve autocomplete with elasticsearch,  
Note: my documents are indexed from fsriver...

I want when the user types a word into the search bar, for example "app",  
elasticsearch returns all possibilty that exist in the content of documents  
exp: application, applicate ...

--yahia

--  
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:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 26, 2013, 4:37pm UTC](https://discuss.elastic.co/t/autocomplete-and-fs-river/11319/2 "2013-03-26T16:37:55Z")

</div>

It's not related to FSRiver.

That said, you should think of using EdgeNgram analyzer. See: [Elastic — The Search AI Company | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/analysis/edgengram-tokenfilter.html)  
And ask for facets.

But, you should be aware of the memory usage in that case. Doing facets on fields like comments or files that have a hug number of different values could require lot of memory.

It really depends on what you want to display to your user: filename or word. For filename, you don't need to build facets.

Also have a look at: [http://jontai.me/blog/2013/02/adding-autocomplete-to-an-elasticsearch-search-application/](http://jontai.me/blog/2013/02/adding-autocomplete-to-an-elasticsearch-search-application/)

## HTH

David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 26 mars 2013 à 15:18, Ammar Yahia [yahia.ammar.info@gmail.com](mailto:yahia.ammar.info@gmail.com) a écrit :

> hi all,
> 
> what is the best way to achieve autocomplete with elasticsearch,  
> Note: my documents are indexed from fsriver...
> 
> I want when the user types a word into the search bar, for example "app", elasticsearch returns all possibilty that exist in the content of documents exp: application, applicate ...
> 
> --yahia
> 
> --  
> 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).

--  
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:** ![yahia](https://avatars.discourse-cdn.com/v4/letter/y/d9b06d/32.png) [@yahia](https://discuss.elastic.co/u/yahia)\
**Post date:** [March 27, 2013, 8:10am UTC](https://discuss.elastic.co/t/autocomplete-and-fs-river/11319/3 "2013-03-27T08:10:09Z")

</div>

I want the autocomplete on keywords that exist in the content of document  
(field content).  
but requires a lot of memory, so the best way to do this is to use  
EdgeNgram analyzer and facets is its?

--  
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:** ![yahia](https://avatars.discourse-cdn.com/v4/letter/y/d9b06d/32.png) [@yahia](https://discuss.elastic.co/u/yahia)\
**Post date:** [March 27, 2013, 8:39am UTC](https://discuss.elastic.co/t/autocomplete-and-fs-river/11319/4 "2013-03-27T08:39:23Z")

</div>

is there a way to make autocomplete only on headlines of documents ?

for exemple i have the following doc with the following content

1. my first paragraph  
some words ......

2. my second paragraph  
some words ......

if the user types "par", autocomplete is done only on the headlines of  
document and returns only "my first paragraph", "my second paragraph"

--  
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:44am UTC](https://discuss.elastic.co/t/autocomplete-and-fs-river/11319/5 "2017-07-06T02:44:13Z")

</div>


