Nested Fields : Does inclusion and exclusion works?


(dewadkar) #1

For Nested Fields is inclusion and exclusion going to work?

eg. Works with normal field gives result json with only doc_title
field

{
"fields": [
"doc_title"
],
"query": {
"match_all": {}
}
}

eg. Is below Query works with new relese or will come with new?

{
"fields": [
"doc_nested_field.doc_field1.doc_field2"
],
"query": {
"match_all": {}
}
}


(Shay Banon) #2

You mean getting back a field within an object? Yes it will work.

On Thu, Jan 19, 2012 at 3:01 PM, DD dewadkar@gmail.com wrote:

For Nested Fields is inclusion and exclusion going to work?

eg. Works with normal field gives result json with only doc_title
field

{
"fields": [
"doc_title"
],
"query": {
"match_all": {}
}
}

eg. Is below Query works with new relese or will come with new?

{
"fields": [
"doc_nested_field.doc_field1.doc_field2"
],
"query": {
"match_all": {}
}
}


(system) #3