I have the following object in my index:
{
"user" : {
"info" : {
"fname" : "John",
"lname" : "Stark"
},
"settings" : {
"hide_menu" : true,
"time_offset" : 3
}
},
"views" : [
]
}
And I'd like to create a filter to find all the users whose first name is
John and have time_offset=3
So I need to build a must filter, but the problem is that these 2 fields
are nested on different hierarchies: user.info and user.settings
How can I make a must filter (AND) with both of them?
On Sunday, April 26, 2015 at 6:32:53 PM UTC+3, Edi Buslovich wrote:
Hello,
I have the following object in my index:
{
"user" : {
"info" : {
"fname" : "John",
"lname" : "Stark"
},
"settings" : {
"hide_menu" : true,
"time_offset" : 3
}
},
"views" : [
]
}
And I'd like to create a filter to find all the users whose first name is
John and have time_offset=3
So I need to build a must filter, but the problem is that these 2 fields
are nested on different hierarchies: user.info and user.settings
How can I make a must filter (AND) with both of them?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.