# Approx. search Suggestions

**URL:** <https://discuss.elastic.co/t/approx-search-suggestions/11845>\
**Category:** Elasticsearch\
**Created:** [May 7, 2013, 7:27am UTC](https://discuss.elastic.co/t/approx-search-suggestions/11845 "2013-05-07T07:27:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [May 7, 2013, 7:27am UTC](https://discuss.elastic.co/t/approx-search-suggestions/11845/1 "2013-05-07T07:27:36Z")

</div>

Hi,

I am trying to use elastic search for approx matches where there is spell  
correction or order of words is wrong it is able to suggest things.

I have tittles to index.  
example

1. the beautiful book
2. the beuatiful book
3. the book beautiful
4. the bookbeautiful  
When I search for title "the beautiful book".

The order is 1 3 2 4 but the order I want is 1 2 3 4  
The analyzer definition I am using is

> <https://gist.github.com/arjitgupta/5530830>

Please suggest correct the analyzer definition or query.

--  
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:** ![Randall\_McRee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/randall_mcree/32/47177_2.png) [@Randall\_McRee](https://discuss.elastic.co/u/Randall_McRee)\
**Post date:** [May 7, 2013, 6:21pm UTC](https://discuss.elastic.co/t/approx-search-suggestions/11845/2 "2013-05-07T18:21:24Z")

</div>

Arjit, your question is something like this:

There is a building on fire. Show me how to put out the fire using this  
glass of water.

First, what makes you believe that a query that achieves an order of  
1,2,3,4 would be in any way useful for anything else, ever?? In other  
words, you have a huge problem and four data points.

Seriously, look at using an ngram index for this sort of task. But you will  
need to educate yourself on what an n-gram is and how to use them  
effectively. There are lots of resources at your fingertips. I think you  
want to bring a fire-truck to the fire, not a glass of water.

On Tue, May 7, 2013 at 12:27 AM, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) wrote:

> Hi,
> 
> I am trying to use Elasticsearch for approx matches where there is spell  
> correction or order of words is wrong it is able to suggest things.
> 
> I have tittles to index.  
> example
> 
> 1. the beautiful book
> 2. the beuatiful book
> 3. the book beautiful
> 4. the bookbeautiful  
> When I search for title "the beautiful book".
> 
> The order is 1 3 2 4 but the order I want is 1 2 3 4  
> The analyzer definition I am using is
> 
> [Analyzer used to approx search and query · GitHub](https://gist.github.com/arjitgupta/5530830)
> 
> Please suggest correct the analyzer definition or query.
> 
> --  
> 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:** ![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:37am UTC](https://discuss.elastic.co/t/approx-search-suggestions/11845/3 "2017-07-06T02:37:53Z")

</div>


