Hey, you could simply index an 'all' color field value for every document, and then use that for your suggestions?
--Alex On Mon, Aug 4, 2014 at 10:50 AM, Tihomir Lichev <[email protected]> wrote: > Hi, Is there a way to tell the context suggester to display results for > all the categories ? > I know that for the category suggester query I must provide context/s > Sort of: > > { > "suggest" : { > "text" : "m", > "completion" : { > "field" : "suggest_field", > "size": 10, > "context": { > "color": "*" > } > } > } > } > > This should work like simple completion suggester no matter what "color" > each document has. > So I should be able to find suggestions, and filter them (by "color") only > when needed. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/e6a44204-207e-42bc-8bf0-bc60e0869496%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/e6a44204-207e-42bc-8bf0-bc60e0869496%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8_q_k_CBgmq7C0ir2A1KfZMA%2BiNYGYrieV_aL4_JgW-w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
