Package org.nuxeo.ecm.core.search
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 Summary
Modifier and TypeMethodDescriptionboolean
Waits for completion of indexing activity for testing purpose only.Internal: Gets a given search client.indexDocuments
(BulkIndexingRequest request) Internal: index documents.void
refresh
(SearchIndex index) Refreshes an index so newly indexed documents are searchable.reindexDocuments
(String repository, String nxql) Internal: reindex documents of the given repository according to the given NXQL query.reindexRepository
(String repository) Internal: reindex the repository
-
Method Details
-
indexDocuments
Internal: index documents. -
reindexRepository
Internal: reindex the repository- Returns:
- the bulk command id in charge of reindexing
-
reindexDocuments
Internal: reindex documents of the given repository according to the given NXQL query.- Returns:
- the bulk command id in charge of reindexing
-
refresh
Refreshes an index so newly indexed documents are searchable. -
getClient
Internal: Gets a given search client. -
await
Waits for completion of indexing activity for testing purpose only.- Parameters:
duration
- the duration to wait- Returns:
true
if all indexing processing completed orfalse
if one or more has not finished after the timeout- Throws:
InterruptedException
-