Interface SearchClientFactory<C extends SearchClient>

All Superinterfaces:
Component, Extensible, TimestampedService
All Known Implementing Classes:
OpenSearchSearchClientFactory, RepositorySearchClientFactory

public interface SearchClientFactory<C extends SearchClient> extends Component
Factory allowing to retrieve a SearchClient.
Since:
2025.0
  • Method Details

    • getApplicationStartedOrder

      default int getApplicationStartedOrder()
      Description copied from interface: Component
      The component notification order for Component.start(ComponentContext).

      Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.

      Specified by:
      getApplicationStartedOrder in interface Component
      Returns:
      the order, 1000 by default
    • getSearchClient

      C getSearchClient(String name)
      Returns:
      the SearchClient with the given name