Completion Suggester with Partial Word Suggestions

I have an index which (among others) contains the following fields:

  • title
  • authors
  • suggest

I'm copying the title and the authors fields into suggest with copy_to.
Now I've noticed that I do not get suggestions when I type in the last name
of an author - which makes sense because the completion suggester is a
prefix suggester. However, I'd like to extend it to also work with last
names in this example.

As I see it, there are two options:

  1. Index Stephenie Meyer as both Stephenie Meyer and just Meyer in
    the suggest field.
  2. Not use a suggester but instead use a search for completion, as
    described here
    http://blog.qbox.io/multi-field-partial-word-autocomplete-in-elasticsearch-using-ngrams
    .

It seems to me that the first option is preferable since it makes use of
FSTs and is therefore much faster. However, how can I make Elasticsearch
copy the title and authors field into suggest accordingly? Or is this
only possible by manually creating the suggest field myself (instead of
using an Elasticsearch feature like copy_to)?

--
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/b441ea9b-8217-478b-88c9-9fd633c49e1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.