Hi.
In these cases Occurrence are a list/array of values
Occurrence:
- value 1
- value 2
and you’re asking for pages where it contains “John”.
Then the results are the pages where it exists and, without any special filter to each value in Occurence you’ll see all the values in that page.
To do the wanted filter you need to “destroy” the array (using the command FLATTEN, and only then filter by each Occurrence.
Try this
TABLE Occ AS Occurrence
FROM “Reviews/00 Days”
FLATTEN Occurrence AS Occ
WHERE contains(Occ, "John")
SORT file.day DESC