P&T Matrix Support
I'm not fully understanding adding matrix support to low-search. I've added a third_party_search_index() function to ft.matrix.php and it never seems to get called.
Do you have any example code for how to add support to for searching custom third party fields?
Thanks!
Replies
Low 18 Jul 2011 22:40
Actually, Matrix doesn't really need extra code to be compatible with Low Search. It's compatible with EE's native search as well as Low Search as is.
Matrix currently saves its searchable data in the exp_channel_data table, which in turn is used by Low Search to build the index. No extra code needed.
But adding the method to the fieldtype class should work. For example, I just added this code to the Matrix_ft class in ft.matrix.php:
...and it gets called just fine. Just for the record, it is called when an entry is saved or when you build a collection index.