Auto suggestions


(arien) #1

Hi all;
This is more of a logical doubt than considering it as a technical
problem.I want to implement auto suggestion using values extracted
from Elastic search index for query string...if is there any possible
way in which i can implement this feature then please suggest.
Thanks;
Arien


(vinhphu1711) #2

Generally speaking, there're some basic steps you can follow:

  1. From the original documents, extract all the "phrases" that you want to
    be suggested words for user when they type query. For example: title can be
    a good candidate. You might also want to extract all entity names,
    questions...
  2. Put all the "phrases" into 1 special field (or maybe more than one), and
    define that field as "not_analyzed" or "keyword".
  3. Use facet regex query to get suggested items, given some characters user
    has types.

LTVP

On Tue, Sep 27, 2011 at 12:22 AM, arien ajaypadvi@gmail.com wrote:

Hi all;
This is more of a logical doubt than considering it as a technical
problem.I want to implement auto suggestion using values extracted
from Elastic search index for query string...if is there any possible
way in which i can implement this feature then please suggest.
Thanks;
Arien

--
Le Truong Vinh Phu


(Karussell) #3

(edge)ngram instead of facet regex should be faster.

On 27 Sep., 05:07, Le Truong Vinh Phu le.truong.vinh....@gmail.com
wrote:

Generally speaking, there're some basic steps you can follow:

  1. From the original documents, extract all the "phrases" that you want to
    be suggested words for user when they type query. For example: title can be
    a good candidate. You might also want to extract all entity names,
    questions...
  2. Put all the "phrases" into 1 special field (or maybe more than one), and
    define that field as "not_analyzed" or "keyword".
  3. Use facet regex query to get suggested items, given some characters user
    has types.

LTVP

On Tue, Sep 27, 2011 at 12:22 AM, arien ajaypa...@gmail.com wrote:

Hi all;
This is more of a logical doubt than considering it as a technical
problem.I want to implement auto suggestion using values extracted
from Elastic search index for query string...if is there any possible
way in which i can implement this feature then please suggest.
Thanks;
Arien

--
Le Truong Vinh Phu


(system) #4