I'm trying to parse this query to NEST but no luck.
{
"query" : {
"filtered" : {
"filter" : {
"and": [
{
"nested" : {
"path" : "skills",
"filter" : {
"bool" : {
"must" : [
{
"term" : {"skills.id" : 343}
},
{
"range" : {"skills.level" : {"gt" : 3}}
}
]
}
}
}
},
{
"nested" : {
"path" : "jobs",
"filter" : {
"bool" : {
"must" : [
{
"term" : {"jobs.jobid" : 621}
}
]
}
}
}
}
]
}
}
}
}
Anyone experience with it. Please help me to translate that query use FilterDescriptor.
Thanks in advanced!