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

Support archive

Searching authors or members and related channels

Ryan 21 Mar 2012 00:30 question, complete

Hi Low,

Great add-on. I have no problem searching text, but there are two critical things I also need to search that presently don't show up (or...I'm just not reading your docs correctly).

1) I need to search on an entry's author.
2) I also need to search an entry's related data

Let me explain...

I have a website that has a bunch of quotes (e.g., Ben Franklin quotes) and right now if I type in "Ben Franklin" I don't get any results, since "Ben Franklin" isn't in any quote's text; however, there are about 30 quotes *by* Ben Franklin.

Also, let's say Ben Franklin penned a quote in his Autobiography. I have a channel called "Sources" that is related to the "Quotes" channel via a Playa single select field. I'd like to be able to search for "Autobiography" and pull (a) quotes that have this word in the text *and* (b) quotes that have this word in the source. However, my custom Playa field doesn't appear in the list of searchable fields.

Is it possible to do either of the above?

Replies

  1. Low 21 Mar 2012 09:31

    Hi Ryan,

    It's currently not possible to use a keyword search that searches the entry's author -- it will only search custom fields. You can filter by author if you generate a list of authors and add that to your search form. Another option might be (just thought of this) to create a custom fieldtype just for the purpose of adding author data to the search index. I might give that a quick look myself.

    As for related data -- I've thought about this often. Adding searchable fields of the child entry to the index of the parent entry opens up a can of wiggly things. It's not possible now, and I need to do proper testing before this can actually be added to the add-on. What you can do, because you're using Playa, is search for the related entry's title. As long as your Playa field itself is searchable, the related data it will store in the search index is the entry title of the selected entries.