• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Search SourceHandler


Well-known member
Is it possible to extend a search handler, specifically the one used for ES? I am interested in the "insertIntoIndex" method.

There doesn't seem to be a way to extend here with existing code events:

(What happens if there are multiple "search_source_create"?)

I wish to take advantage of insertIntoIndex when it's used either by (1) postSave in the DataWriter, or (2) when rebuilding content (which is why I dont want to extend postSave).



Well-known member
I have used the load_class_search_data event to listen for the class 'XenForo_Search_DataHandler_Post' and extend the insertIntoIndex method there as needed.