Docs: Update nested-filter.asciidoc

Fix whitespace to standardize on spaces for indents on both code examples for readability.

Closes #6568
This commit is contained in:
Xiao Yu 2014-06-19 13:52:02 -04:00 committed by Clinton Gormley
parent aa1dbc0778
commit 4f417aa774
1 changed files with 28 additions and 28 deletions

View File

@ -46,33 +46,33 @@ This is useful when a `nested` filter is used in a facet where nested is enabled
--------------------------------------------------
{
"query" : {
"nested" : {
"path" : "offers",
"query" : {
"match" : {
"offers.color" : "blue"
}
}
}
},
"facets" : {
"size" : {
"terms" : {
"field" : "offers.size"
},
"facet_filter" : {
"nested" : {
"path" : "offers",
"query" : {
"match" : {
"offers.color" : "blue"
}
},
"join" : false
}
},
"nested" : "offers"
}
}
"nested" : {
"path" : "offers",
"query" : {
"match" : {
"offers.color" : "blue"
}
}
}
},
"facets" : {
"size" : {
"terms" : {
"field" : "offers.size"
},
"facet_filter" : {
"nested" : {
"path" : "offers",
"query" : {
"match" : {
"offers.color" : "blue"
}
},
"join" : false
}
},
"nested" : "offers"
}
}
}'
--------------------------------------------------