I’m curious

Relationship Searching - EE4 / MSM

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).
1 person has
this question
+1
Reply
  • Low (Official Rep) September 26, 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.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited

  • I’m still curious!
    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?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited

  • Low (Official Rep) September 27, 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.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited