Interface TurSearchEngineInstanceManager


public interface TurSearchEngineInstanceManager
Interface for managing search engine instances. Implementations handle the initialization and lifecycle of search engine connections.
Since:
2025.4.4
Author:
Alexandre Oliveira
  • Method Details

    • initInstance

      Optional<Object> initInstance(String siteName, Locale locale)
      Initializes a search engine instance for the given site and locale.
      Parameters:
      siteName - the name of the semantic navigation site
      locale - the locale for the search
      Returns:
      Optional containing the search engine instance if successful, empty otherwise
    • getSearchEngineUrl

      Optional<URL> getSearchEngineUrl(String siteName, Locale locale)
      Gets the search engine URL for a given site and locale.
      Parameters:
      siteName - the name of the semantic navigation site
      locale - the locale for the search
      Returns:
      Optional containing the URL if found, empty otherwise
    • getEngineType

      String getEngineType()
      Gets the type of search engine this manager handles.
      Returns:
      the search engine type (e.g., "solr", "elasticsearch")