Keyword searching a relationship field
I have two channel (property channel & Buildings channel )
In the property channel, I have a relationship field, linking to the Building Channel.
In the building channel, I have a Grid field, saving the address , (street no, street name )
Is it possible for keyword search to perform, if I search the "street name", and it returns me the "Property" on that street I searched?
Please point me a light regarding this.
Thanks!
Replies
Low 6 May 2014 18:23
I'm afraid that's not possible out of the box with Low Search. The Relationship filter only takes entry IDs as parameter values. And the Keyword filter will only return entries with keywords that belong to that specific entry; the content of related entries aren't part of that.
This (3rd party) add-on will enable keyword search for related entries' titles: http://devot-ee.com/add-ons/low-searc... but that's about it, as far as I know.
SamuelKwong 7 May 2014 03:37
Great, that add-on was helpful, I can even tweak it to index other "grid-relationship-grid" fields.
Thanks slots, but I wonder, why shouldn't this be implemented in the main module..
Low 7 May 2014 06:00
Indexing keywords from related fields is a possibly endless action. Which fields should be indexed? Which indexes should be updated when which entry is edited? What about reverse relationships? And relationships within relationships? Etc, etc.
The default behaviour of LS just deals with child/parent IDs, just like the native category="" parameter. Any further functionality should be considered custom filtering, for which LS can be a platform.
That's why it's not in LS' core.