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:
parent
d6a756fbe2
commit
7698ab7bfc
|
@ -51,7 +51,7 @@ final `_score` for each document.
|
|||
},
|
||||
"filter": {
|
||||
"term" : { "tag" : "tech" }
|
||||
}
|
||||
},
|
||||
"must_not" : {
|
||||
"range" : {
|
||||
"age" : { "from" : 10, "to" : 20 }
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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" : {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue