I have a javascript application with java backend. The application that submit json queries (not the hole object just the query part) tose queries are stored into database. I want to take those small queries and parse them as QueryQbuilder objects to put all of them together.
The kid of queries that I have are like this:
Query example 1
{ "bool": { "should": [ { "term": { "Country Code": "BRA" } }, { "term": { "Country Code": "ARG" } } ] } }
Query example 2
{ "term": { "id": "3585" } }
Query example 3
{
"range": {
"age": {
"gte": 10,
"lte": 20,
"boost": 2.0
}
}
}
Is there any way to parse the subqueries into QueryBuilder object?