-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Currently many of the query items are assumed to be at the root level and do not support placement nestings ( e.g. query.bool.must[].term or query.bool.must[].bool.should[]
Add methods for fluency ( or possibly separate objects ) which can allow for more precise placement of query operators, without resorting to code like the following:
var q = search.getQuery();
param q.bool = {};
param q.bool.filter = {};
param q.bool.filter.bool.must = [];
arrayAppend( q.bool.filter.bool.must, {
"wildcard" : {
"#arguments.field#" : {
"value" : arguments.query
}
}
} );
Copilot
Metadata
Metadata
Assignees
Labels
No labels