All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Filter Based on Relationship Field Titles Within 2 Collections?

Stoyan Vasilev 6 May 2016 03:37 question, complete

Hey,

We are using Low Search with a filter dropdown which points to the Title of a parent relationship field (a channel with People/members based on Zoo Visitor). The search is based on 2 collections, but the relationship filter requires a child field parameter... which means that when the user makes a relationship selection the search only searches within the collection/channel which the relationship filter field is from.

Is there a way to make the search show results from two collections (instead of one)?

See attached code screenshot.

Replies

  1. Low 6 May 2016 08:15

    I'm afraid that's not possible at the moment. All parameters are cumulative, so filtering by (Collection A) OR (Collection B AND Child = X) is not possible.

    I can't really see how, in LS's setup, this can be done, other than a custom filter.

  2. Stoyan Vasilev 6 May 2016 23:58

    I see. It would be (Collection A AND Child X) OR (Collection B AND Child X) in the same search (the user is only selecting the child, LS searches in all collections by default... But I assume this still cannot be done (without a custom filter)?

    Thanks!

  3. Low 7 May 2016 07:14

    If the relationship field is the same for both collections (ie. they share a field group), then that's possible. If the fields are different, then combining them with OR is not possible without a custom solution.