Fix typos in query dsl docs.

When passing the example json snippets through the query parser while working
on #14249 some of the examples could not be parsed. This PR fixes those
examples.

Relates to #14249
This commit is contained in:
Isabel Drost-Fromm 2015-11-17 13:40:10 +01:00
parent d6a756fbe2
commit 7698ab7bfc
4 changed files with 10 additions and 11 deletions

View File

@ -51,7 +51,7 @@ final `_score` for each document.
},
"filter": {
"term" : { "tag" : "tech" }
}
},
"must_not" : {
"range" : {
"age" : { "from" : 10, "to" : 20 }

View File

@ -188,10 +188,10 @@ values separately.
"filter" : {
"geo_bounding_box" : {
"pin.location" : {
"top" : -74.1,
"left" : 40.73,
"bottom" : -71.12,
"right" : 40.01
"top" : 40.73,
"left" : -74.1,
"bottom" : 40.01,
"right" : -71.12
}
}
}

View File

@ -9,7 +9,7 @@ an example:
--------------------------------------------------
{
"has_child" : {
"type" : "blog_tag",
"child_type" : "blog_tag",
"query" : {
"term" : {
"tag" : "something"
@ -34,8 +34,8 @@ inside the `has_child` query:
--------------------------------------------------
{
"has_child" : {
"type" : "blog_tag",
"score_mode" : "sum",
"child_type" : "blog_tag",
"score_mode" : "min",
"query" : {
"term" : {
"tag" : "something"
@ -56,8 +56,8 @@ a match:
--------------------------------------------------
{
"has_child" : {
"type" : "blog_tag",
"score_mode" : "sum",
"child_type" : "blog_tag",
"score_mode" : "min",
"min_children": 2, <1>
"max_children": 10, <1>
"query" : {

View File

@ -73,7 +73,6 @@ present in the index, the syntax is similar to <<docs-termvectors-artificial-doc
},
"tweet": "You got no idea what I'd... what I'd give to be invisible."
}
}
},
{
"_index" : "marvel",