Flowpack.ElasticSearch.ContentRepositoryAdaptor
Flowpack.ElasticSearch.ContentRepositoryAdaptor copied to clipboard
FEATURE: Add Node-Type Filter
Create a method which allows to create a nodetype filter to include and exclude specific nodetypes
Simplified example:
public function getVehiclePages(NodeInterface $siteNode)
{
$filter = [
'Foo.Bar:Document.Vehicle',
'Foo.Bar:Document.Motorcyle',
'!Neos.Neos:Document' // this nodetype will be excluded
];
$queryBuilder = new ElasticSearchQueryBuilder();
$queryBuilder->query($siteNode);
$queryBuilder->nodeTypeFilter(implode(',', $filter));
// [...]
}
@Sebobo @daniellienert can you review this PR?