-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Will it be possible to do groups of filters with OR or maybe have multiple fields in a filter?
In my Full Text Search package, I search for the search terms in a list of fields (typically nodename, meta title, meta description and full text search). I only expect the terms to be present in some of the fields.
Heres an example of the Lucene query it generates:
(
(nodeName:"my search"^2 OR nodeName_en:"my search"^2 OR __fullText:"my search"^2 OR __fullText_en:"my search"^2)
OR
((nodeName:my^1 OR nodeName_en:my^1 OR __fullText:my^1 OR __fullText_en:my^1) OR (nodeName:search^1 OR nodeName_en:search^1 OR __fullText:search^1 OR __fullText_en:search^1))
)
AND ((__VariesByCulture:y AND __Published_en:y) OR (__VariesByCulture:n AND __Published:y))
AND __IndexType:content
AND -(templateID:0)
The first group has the search terms.
The second group checks if the page is published in the current culture, or is invariant.
Metadata
Metadata
Assignees
Labels
No labels