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

Support archive

Searching Relationship Fields

jwmatlock 25 Jul 2016 13:31 question, complete

Trying to do a search on the value of a Relationships field. Is this possible? I'm using exp:low_search:url to pass the keyword I want searched in the url. The results page should only contain results for entries where the Relationships field value of the parent Title matches the keyword. Is this possible?

Replies

  1. Low 25 Jul 2016 13:46

    The native Relationships field doesn't return searchable data. The native search module also won't search them.

    EE2 has this add-on that will add the related title to the search index, tho: https://devot-ee.com/add-ons/low-sear...

  2. jwmatlock 25 Jul 2016 14:54

    Unfortunately I am on EE3. Is this something that could be developed for EE3? I know you didn't make the original, but wondering what that would look like. Paid for development of course.

  3. Low 25 Jul 2016 15:32

    Sure. Email me with what you'd need and I'll send you a quote. http://gotolow.com/contact

  4. Erich Boileau 22 May 2019 07:53

    Hello!

    Wondering if there is a solution to this now for EE5? It would be really nice if at least the entry title of related entries were indexed.

    I've added the relationship channel fields to the collection, but they don't seem to show up.

    Thanks!

  5. Low 22 May 2019 10:45

    There's no native way in LS to add related titles to the index. By design, still, as it opens the proverbial can of worms.

  6. Erich Boileau 23 May 2019 01:34

    Just out of curiosity, when I select a relationship field to be indexed in an LS collection, what data _is_ being indexed?

  7. Low 23 May 2019 06:23

    Whatever is stored in the field_id_X column of the channel_data table (or EE4 equivalent) where X is that field's ID. Which is empty for relationship fields.