Autocomplete search


(Obe La) #1

Hi Everyone,

I'm building a search autocomplete for my website.I use Ngram tokenizer but it not exact.
Example, I have a input : "The quick brown fox jumps over the lazy dog", i wan analyze this input:

  1. Th, The, The q, The qu ,..., The quick brown fox jumps over the lazy dog
  2. qu, qui, quic, quick, quick b, quick br ,...,quick brown fox jumps over the lazy dog
    ....
    n. la, laz, lazy, ... , lazy dog

I need help.
Thanks.


(Nik Everett) #2

Use Edge ngram or the completion suggester. Watch out for edge ngram
because it can make many large tokens. It doesn't create as many tokens as
ngram (yay) but it still creates an awful lot of them compared to the
"normal" tokenizers.


(system) #3