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.

Reply via email to