Update context-suggest.asciidoc

"context" -> "contexts" in completion suggester docs
This commit is contained in:
Clinton Gormley 2016-01-20 15:41:56 +01:00
parent 88bb79fd82
commit d9c0b94d28
1 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ PUT place/shops/1
...
"suggest": {
"input": ["timmy's", "starbucks", "dunkin donuts"],
"context": {
"contexts": {
"place_type": ["cafe", "food"] <1>
}
}
@ -273,7 +273,7 @@ PUT place/shops/1
{
"suggest": {
"input": "timmy's",
"context": [
"contexts": [
"location": [
{
"lat": 43.6624803,
@ -305,7 +305,7 @@ POST place/_suggest
"completion" : {
"field" : "suggest",
"size": 10,
"context": {
"contexts": {
"location": {
"lat": 43.662,
"lon": -79.380