Skip to content

Grouped filters with OR? #21

@skttl

Description

@skttl

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions