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

Support archive

Low Search other channel fields

_rsan 3 Apr 2013 16:40 question, complete

You know how the exp_channel_data table has columns for ALL channel fields, and any given entry will have all these empty field_id_X columns in there for fields that aren't associated with that channel? Say I built a custom add-on that made use of these empty columns and stored some data in there. Now say I wanted to search through these fields as well as the ones explicitly added to that channel's field group.

Is there any way using hooks (or other methods) to force Low Search to search among those channel fields that are not that channel's field group?

Replies

  1. Low 3 Apr 2013 16:52

    Hmm, I take it you'd need keyword matching, right? (I think the search:field params already are channel field group independent)

    Then those fields should be given weight in the collection settings. You could either create a custom field that is in the actual field group, collects data from other fields and returns that as its indexable data. This uses the search index API: http://gotolow.com/addons/low-search/...

    Or you'd need to change the weight-settings yourself, but there aren't any hooks in place for that right now. But suggest away!