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

Search SourceHandler

Discussion in 'XenForo Development Discussions' started by Valhalla, Apr 1, 2015.

  1. Valhalla

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

  2. Valhalla

    Valhalla 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.

Share This Page