On Mon, May 1, 2017 at 3:55 PM, Serkan Mulayim <[EMAIL PROTECTED]> wrote:

Autosuggestion functionality will need tuning, just like search results.  In
fact, autosuggestion is really a specialized form of search application.  It
could be implemented with a separate index or separate fields.

Say that we only wanted to offer suggestions derived from the `title` field.
Split each title into an array of words.  Then for each word, index starting
at some letter, say the third.  For the title `hello world`, you'd get the
following tokens:

    hello -> hel hell hello
    world -> wor worl world

Then at search time, perform a search query with every keystroke.

    h -> (no result)
    he -> (no result)
    hel -> "hello world"

Once you've got basic functionality running, experiment with minimum token
length, adding Soundex/Metaphone, performing character normalization, etc.

Marvin Humphrey
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB