Hi all - I have been trying to save documents in elastic search and one of
the fields in my schema is of type "completion."
In this article http://www.elasticsearch.org/blog/you-complete-me/, I see
the json request to save the document. I am using Java client and I am
unable to find a right Java API which I can use to save the data for the
"completion" type field. Can you pl point me to the right java API?
Just to summary, pl let me know the java counter part for how I can index
the part below in blue.
curl -X PUT localhost:9200/hotels/hotel/3 -d '
{
"name" : "Courtyard by Marriot Munich City",
"city" : "Munich",
"name_suggest" : {
"input" : [
"Courtyard by Marriot Munich City",
"Marriot Munich City"
],
"output": "Hotel Marriot",
"weight": 15,
"payload": { "hotel_id": 3}
}
}'
-Amit.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.