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

Support archive

Relationship Searching - EE4 / MSM

Gavin Lawrie 25 Sep 2018 23:27 question, complete

Is it possible to get a Low Search index to include information for a channel entry that comes from the description field in an entry in a channel in different MSM site within the same EE installation, where the two are linked by a 1:1 relationship field?

i.e. - If I search for a term or phrase that appears in a description field of the related channel entry (i.e. the stuff on the other MSM site), Search returns the ID of the entry holding that relationship on the local site.

Sorry if not explained very well, but hopefully you get the rough idea.

Running on EE4 (latest).

Replies

  1. Low 26 Sep 2018 07:40

    No, by design, the relationship fields do not contain any data of the child entry inside the parent entry (or vice versa), for basically the 'can of worms' reason.

    Imagine that the child entry also has a relationship field, what happens then? If you need to index child data with a parent, you'd need to create a custom extension for LS to make that happen.

  2. Gavin Lawrie 26 Sep 2018 16:32

    Hi - thanks for the clarification. Makes sense.

    I have a sub-set of products listed on one of two MSM sites, and the complete set listed on the other. The subset listing contains minimal data (basically the SKU, stock level and the price) and pulls the rich item data for the product based on a relationship link to the other MSM site. Which is good (no duplication of data across the two sites) but makes it hard to search for product information on second site...

    Is there a way to allow Low Search on the second site to access / search the collection that holds the product data on the other MSM site? Am thinking if I could include the relevant collection from the other site, I could weed out results of the search and only display the ones that relate to products not on the 2nd MSM site.

    Is this possible?

  3. Low 27 Sep 2018 07:12

    Well, you can use the site="" parameter so the Results tag will display entries from multiple sites, like the native channel:entries tag; thus searching across multiple collections from multiple sites.