I have an index of photos and need to return completion suggestions based
on several of the fields:
The simplest way to do this of course would be to create one completion
suggester and simply feed the various inputs into it when indexing.
However, I need to receive up to 5 suggestions per field and I need to
return various different outputs depending on the input (they cannot simply
have a unified output)
When the user types "T" the suggestions should be something like the
Tags : [Tree, Tiger, Toner]
Place : [Tenerife, The London Eye, Torquay]
Country : [Taiwan, Tanzania]
Date : 
The date field simply stores tags for the month and year [January, 2014]
enabling suggestions to come back as January when a user types "jan" and
gives year suggestions when the user type "20" etc...
In order to achieve this I have set up a different completion suggester
with varying analyzers for each of the above fields, I then query all four
suggesters at once in a single request. Everything works perfectly.
However I am left wondering if there is a better way to achieve this
- Is there any way to achieve the above with a single completion
- Are there any concerns/watch outs when querying multiple suggesters in
this manner? Performance or otherwise.
Thanks in advance for any advice or suggestions.
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 firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/bd670fb7-303f-4719-821c-82b65fec86e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.