ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

One Search, Multiple Channels

July 18, 2014 6:39pm

Subscribe [3]
  • #1 / Jul 18, 2014 6:39pm

    highimpactinc

    4 posts

    I’d like to have a user enter one search term, and return results from two different channels, in a controlled fashion. (meaning, results from one channel first, then a second channel after) I see the ability to search multiple channels simultaneously using the pipe character.

    Maybe I’m not reading the docs correctly, but how does one control the order in which things are returned in the search results?

    Really, what i’d like is two “results” sections, with fine control over which channel of results each one is serving, but the multi-channel search is all I can figure out.

  • #2 / Jul 19, 2014 8:20am

    Boyink!

    5011 posts

    Not sure you can do this with the native EE search - since the channels are specified on the search tag rather than the search result tag EE doesn’t offer this level of control. Pretty much any time you pipe together multiple channels EE aggregates those and considers it one big channel - so entries would be intermingled based on other sort options and you aren’t able to “group by” channel.

  • #3 / Jul 20, 2014 9:52am

    rt30000

    125 posts

    I have used Solspace Super Search on several sites and its incredibly flexible. Perhaps you could run two searches/tags (each channel search independently) and tailor to your needs? Not sure it’s possible but just a thought.

  • #4 / Jul 21, 2014 1:39pm

    highimpactinc

    4 posts

    Not sure you can do this with the native EE search - since the channels are specified on the search tag rather than the search result tag EE doesn’t offer this level of control. Pretty much any time you pipe together multiple channels EE aggregates those and considers it one big channel - so entries would be intermingled based on other sort options and you aren’t able to “group by” channel.

    Can you control the sort options? Basically, I could add a hidden sort field to both, so that one group always sorts first.

  • #5 / Jul 21, 2014 1:52pm

    highimpactinc

    4 posts

    I have used Solspace Super Search on several sites and its incredibly flexible. Perhaps you could run two searches/tags (each channel search independently) and tailor to your needs? Not sure it’s possible but just a thought.

    Unfortunately, the goal is to show results from both channels, one of which is more important, with one search entry.

    I’ll check in to the Solspace Super Search option.

  • #6 / Jul 21, 2014 1:54pm

    highimpactinc

    4 posts

    Maybe, I can use the date field to my advantage. The “special” primary channel has no use for dates, and the secondary channel will have automatic dates assigned frequently. Maybe I can manipulate the primary dates to ridiculous things (like far in the future/past depending on default sort results). Hmm.

  • #7 / Sep 05, 2014 4:58pm

    highimpactinc

    4 posts

    FYI, I went with Solspace SuperSearch, and I won’t look back. The plug in is easy to use, and does everything I need. 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases