I need to create a Search Suggester on text and return an object with bunch
of fields.
The object contains the following fields:
userId, name, x,y,z,a,b,c
Search needs to be done only on 2 fields - Name & Text.
I also need to return the Object(with fields) if the docId is explicitly
requested.
curl -XGET 'http://localhost:9200/twitter/tweet/1'
Question : Should everything in the Object (that needs to be returned) go
in the payload only *(Option 2) *or payload+regular fields (Option 1) ?
*Option 1: *
json = {
"suggest" : {
"input": ["US"],
"output": "US",
-
"payload" : {* *"userId" : "OID123", "name" : "US", "text" :
"California", ... < list of fields>*
-
}}* }
*Option 2: *
json = {
"userId" : "OID123", "name" : "US", "text" : "California", ... <
list of fields>
"suggest" : {
"input": ["abc"],
"output": "abc",
-
"payload" : {* *"userId" : "OID123", "name" : "US", "text" :
"California", ... < list of fields>*
-
}}* }
--
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/ca263ca6-b22f-4a60-bfef-a68c6c39d4a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.