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

Search SourceHandler

Valhalla

Well-known member
#1
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:
load_class_search_data
search_source_create

(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).

Thanks,
 

Valhalla

Well-known member
#2
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.