Interface SearchIndexingService

All Known Implementing Classes:
SearchServiceImpl

public interface SearchIndexingService
Search Indexing Service. This service is for internal usage since indexing is done automatically.
Since:
2025.0
  • Method Details

    • indexDocuments

      BulkIndexingResponse indexDocuments(BulkIndexingRequest request)
      Internal: index documents.
    • reindexRepository

      String reindexRepository(String repository)
      Internal: reindex the repository
      Returns:
      the bulk command id in charge of reindexing
    • reindexDocuments

      String reindexDocuments(String repository, String nxql)
      Internal: reindex documents of the given repository according to the given NXQL query.
      Returns:
      the bulk command id in charge of reindexing
    • refresh

      void refresh(SearchIndex index)
      Refreshes an index so newly indexed documents are searchable.
    • getClient

      SearchClient getClient(String clientName)
      Internal: Gets a given search client.
    • await

      boolean await(Duration duration) throws InterruptedException
      Waits for completion of indexing activity for testing purpose only.
      Parameters:
      duration - the duration to wait
      Returns:
      true if all indexing processing completed or false if one or more has not finished after the timeout
      Throws:
      InterruptedException