Approx. search Suggestions

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

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.
For more options, visit https://groups.google.com/groups/opt_out.

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 wrote:

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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.