ravendb
Version:
RavenDB client for Node.js
19 lines • 741 B
JavaScript
import { EtlConfiguration } from "../EtlConfiguration.js";
export class ElasticSearchEtlConfiguration extends EtlConfiguration {
elasticIndexes;
etlType = "ElasticSearch";
serialize(conventions) {
const result = super.serialize(conventions);
result.EtlType = this.etlType;
result.ElasticIndexes = this.elasticIndexes ? this.elasticIndexes.map(this.serializeSearchIndex) : null;
return result;
}
serializeSearchIndex(searchIndex) {
return {
IndexName: searchIndex.indexName,
DocumentIdProperty: searchIndex.documentIdProperty,
InsertOnlyMode: searchIndex.insertOnlyMode
};
}
}
//# sourceMappingURL=ElasticSearchEtlConfiguration.js.map