Jupiter.Market.Elastic.Titles.Services.ElasticIndexService
This service uses the NEST client library to interact with Elasticsearch Cloud. It handles index lifecycle management, bulk operations, and maintains synchronization between PostgreSQL and the
!:xref:Elastic.TitlesIndex.
See also: Architecture Overview
Methods
Jupiter.Market.Elastic.Titles.Services.ElasticIndexService.InitAsync
No summary available.
This method configures the NEST client with:Cloud connection pool using CloudId and API key authenticationDefault index name from settingsDebug mode for detailed loggingCustom field name inference (camelCase)Default mapping for SemaphoreLimit type
See also: Configuration Guide
UpsertIndex
Upserts (inserts or updates) a title document in the !:xref:Elastic.TitlesIndex.
This method uses Elasticsearch's index API which creates a new document if it doesn't exist, or updates the existing document if it does. The document ID is the title's GUID.
See also: Data Model
Parameters:
- title: The object to index.
Returns: A indicating the result of the operation.
DeleteFromIndex
Deletes a title document from the !:xref:Elastic.TitlesIndex.
This method silently handles exceptions to prevent failures when deleting non-existent documents. Used to clean up stale documents when titles are removed from
!:xref:Table.Title.
Parameters:
- titleId: The unique identifier of the title to delete.