How to use extension hooks
Hi Low,
I'm needing to get my hands dirty and modify the indexing for a few entries. I'm new to EE hooks - how would I implement a function using the low_search_update_index hook?
Thanks,
Stuart
Hi Low,
I'm needing to get my hands dirty and modify the indexing for a few entries. I'm new to EE hooks - how would I implement a function using the low_search_update_index hook?
Thanks,
Stuart
Replies
Low 19 Feb 2013 19:12
What exactly do you need to do?
Stuart Whitehead 19 Feb 2013 19:47
Thanks for the quick reply -
I'm implementing a live search.
As an example, I have an entry field named 'property_bedrooms' which contains a numerical value. If the user types '2 bedrooms', no results will be found as the keyword 'bedrooms' is not in the data.
I'm looking to modify the index to reflect this - the index would be a concatenation of the data and the keyword 'bedrooms'. It's a simple explanation but I hope that makes my intent clear.
Low 19 Feb 2013 20:35
I'm not sure if modifying the index would be the way to go for this.
For example, using search:property_bedrooms field for exact matching of that field would probably be a better option. Or add a hidden field to your entries for adding keywords to make entries more findable.