Skip to content

Commit 1f56a45

Browse files
dimaipkdambekalns
authored andcommitted
TASK: Add queryFilter example for "logical or"
1 parent 608379b commit 1f56a45

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,18 @@ prototype(Acme.Blog:SingleTag) < prototype(TYPO3.Neos:Template) {
255255
}
256256
```
257257

258+
#### Making OR queries
259+
260+
There's no OR operator provided in this package, so we would need to use custom ElasticSearch query filter for that:
261+
262+
```
263+
....queryFilter('bool', {should: [
264+
{term: {tags: tagNode.identifier}},
265+
{term: {places: tagNode.identifier}},
266+
{term: {projects: tagNode.identifier}}
267+
]})
268+
```
269+
258270
## Aggregations
259271

260272
Aggregation is an easy way to aggregate your node data in different ways. Elasticsearch provides a couple of different types of

0 commit comments

Comments
 (0)