SearchEngine with suggestion

Hello,

I'm quite lost in Elasticsearch (and maybe Lucene...).
For the moment I'm trying to do a simple auto suggestion system for a
search engine.

My documents contain many "sentences" fields (around 4). What I would
like is to return result only concerning the word token found.
For the moment I'm playing with nGram and EdgeNGram, the result I expect
is good, but I just want the concerning word, not the whole field.

For example:

mydocument:
field1: "thank you for your answer, it will help me"
field2: "this is only an example content"

my entry is : "answ", I just want to get "answer"
...

Is there a way to do this...?

Thanks !

--
Erwan

Erwan,

(also no expert here) but I think it's quite normal that the whole field is
returned. Have you considered maybe having a "common search terms" index,
with one-word-per-field, updated from data taken from other indices? That
would appear to make more sense.

  • Lee

On 27 September 2011 15:22, Erwan Loaëc erwan.loaec@cgin.fr wrote:

Hello,

I'm quite lost in Elasticsearch (and maybe Lucene...).
For the moment I'm trying to do a simple auto suggestion system for a
search engine.

My documents contain many "sentences" fields (around 4). What I would like
is to return result only concerning the word token found.
For the moment I'm playing with nGram and EdgeNGram, the result I expect is
good, but I just want the concerning word, not the whole field.

For example:

mydocument:
field1: "thank you for your answer, it will help me"
field2: "this is only an example content"

my entry is : "answ", I just want to get "answer"
...

Is there a way to do this...?

Thanks !

--
Erwan