Hey, right now the completion suggester only works per index, but not per type. There is some work going on to add a context around a suggester, which would allow for cases like that, see https://github.com/elasticsearch/elasticsearch/pull/4044
hope this helps. --Alex On Tue, Feb 4, 2014 at 11:11 PM, Avinash Mohan <avilanc...@gmail.com> wrote: > Hi, > > Is it possible to do a suggestion completion on a type. im able to do it > on an index . > > POST /data/_suggest > { > "data" : { > "text" : "tr", > "completion" : { > "field" : "sattributes", > "size":50 > } > } > } > > when i do on a type > > POST /data/suggestion/_suggest > { > "data" : { > "text" : "tr", > "completion" : { > "field" : "sattributes", > "size":50 > } > } > } > > "suggestion" is the type > > i don't get any results. I need to do suggestion on two different types > articles and books. Do i need to create separate indexes to make them work > or is there a way in elasticsearch to accomplish this. In case if i have to > search on my index "data" is there way to get 50 results for type "article" > and 50 results for type "book". > > Any help is highly appreciated. > > - Avinash > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/9b68f9f2-e566-414c-908c-4403ce0a2bcb%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-rvbBoB7srYBbP9ktp0We2tSu36%2BA%2BmwtCDv_9z4fyEA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.