Base Filters
You can add lucene base filters to the search. This will be appended to the elasticsearch filter and will not appear within the summary
response. Useful for restricting content to particular users
const response = await request.execute(
{
hits: {
size: 10,
},
},
[
{
bool: {
must: [
{
term: {
country: 'GB',
},
},
],
must_not: [
{
term: {
status: 'not_published',
},
},
],
},
},
{
term: {
facet1: 'test',
},
},
],
); // optional second argument with an array of lucene clauses