Closed
Description
Currently, the bool query is not a valid Javassctipt (still valid JSON though...) since indicating two must clauses uses the same field name for a JSON object. The old way should still be supported, but, we should also allow for something like this:
Currently, the bool query is not a valid Javassctipt (still valid JSON though...) since indicating two must clauses uses the same field name for a JSON object. The old way should still be supported, but, we should also allow for something like this:
{
bool : {
must : [
{
queryString : {
defaultField : "content",
query : "test1"
}
},
{
queryString : {
defaultField : "content",
query : "test4"
}
}
],
mustNot: {
queryString : {
defaultField : "content",
query : "test2"
}
},
should: {
queryString : {
defaultField : "content",
query : "test3"
}
}
}
}