Interface SearchLifeCyclePlugin


  • public interface SearchLifeCyclePlugin
    Plugins can implement this to add logic to a search life cycle. A plugin must set in the plugins properties file a line that is: com.funnelback.plugin.SearchLifeCyclePlugin=name.of.class.from.Plugin. All methods will be called under the context of the the search UI
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void postDatafetch​(SearchTransaction transaction)
      Runs just after the hook_post_datafetch.groovy hook which is just after the response object is populated based on the raw XML return, but before other response elements are built.
      default void postProcess​(SearchTransaction transaction)
      Runs just after the hook_post_process.groovy hook.
      default void preDatafetch​(SearchTransaction transaction)
      Runs just after the hook_pre_datafetch.groovy hook and after all of the input processing is complete, but just before the query is submitted.
      default void preExtraSearchExecution​(SearchTransaction transaction)
      Runs just after the search life cycle section extraSearchesInputProcessor which adds configured extra searches from ui.modern.extra_searches to the main search transaction.
      default void preProcess​(SearchTransaction transaction)
      Runs just after the hook_pre_process.groovy hook and before any input processing occurs.
    • Method Detail

      • preProcess

        default void preProcess​(SearchTransaction transaction)
        Runs just after the hook_pre_process.groovy hook and before any input processing occurs. Manipulation of the query and addition or modification of most question attributes can be made at this point.
        Parameters:
        transaction -
      • preDatafetch

        default void preDatafetch​(SearchTransaction transaction)
        Runs just after the hook_pre_datafetch.groovy hook and after all of the input processing is complete, but just before the query is submitted. This hook can be used to manipulate any additional data model elements that are populated by the input processing. This is most commonly used for modifying faceted navigation.
        Parameters:
        transaction -
      • postDatafetch

        default void postDatafetch​(SearchTransaction transaction)
        Runs just after the hook_post_datafetch.groovy hook which is just after the response object is populated based on the raw XML return, but before other response elements are built. This is most commonly used to modify underlying data before the faceted navigation is built.
        Parameters:
        transaction -
      • postProcess

        default void postProcess​(SearchTransaction transaction)
        Runs just after the hook_post_process.groovy hook. This is used to modify the final data model prior to rendering of the search results.
        Parameters:
        transaction -
      • preExtraSearchExecution

        default void preExtraSearchExecution​(SearchTransaction transaction)
        Runs just after the search life cycle section extraSearchesInputProcessor which adds configured extra searches from ui.modern.extra_searches to the main search transaction. This will run on all search transactions just before extra searches are executed. This hook can be used for adding or removing extra searches that would be executed under the given transaction. This hook does not need to be used for editing the SearchQuestion of the extra searches since that can be done with the other hooks.
        Parameters:
        transaction -