Spellcheck and completion suggester or what?


(Bernd Fehling-2) #1

Hi group, I have a special problem which I'm trying to solve.
I need search suggestions while typing text into a search box.
I tried different settings and options with ES, including term suggester,
completion suggester and so on, but no success.

What I'm looking for is if I type in a search and I have already typed
"dan" that I get suggestions like:
{

  • responseHeader:
    {
    • status: 0,
    • QTime: 11
      },
  • spellcheck:
    {
    • suggestions:
      [

      [
      - "dan",
      -
      {
      - numFound: 9,
      - startOffset: 0,
      - endOffset: 3,
      - suggestion:
      [
      - "dana",
      - "danach",
      - "danckert",
      - "dando",
      - "danger",
      - "dangos",
      - "danguolÄ—",
      - "daniel",
      - "danish"
      ]
      }
      ]
      ]
      }

}

So just the suggestions in alphabetical order from the index.
The above example is from SOLR but I need this feature for ES.
Any idea how to achive this?

Regards, Bernd

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3cd3b917-7680-416c-b92e-e0ee0a91a601%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2