Include a relationships fields in search criteria
Hi, I am currently creating an employee directory using ExpressionEngine and Low Search. I am wondering how I can include fields from related channel entries in a search.
I have a person channel ("person"), and a department channel ("department"). A person entry has a relationship with the department, if I type in a department name, how would I go about searching all "people" that are part of that department?
Thank you!
Replies
Low 22 Aug 2013 07:57
That's currently not possible with Low Search. The relationship filter accepts entry ids only, so you could generate a drop-down with departments and filter persons by department like that.
If you want to use a keyword search for departments, consider using Playa (which stores the related entry's title and thus makes it searchable) or use this approach to have a dedicated field for the related data used for searching.