Skip to content

Conversation

@rvaidya
Copy link

@rvaidya rvaidya commented Jun 5, 2024

Currently, there is no way to update existing records in ElasticSearch when calling ElasticRepository.indexRecords in bingo. This leads to lots of duplicate documents being inserted.

This uses the IndigoRecord internalID field as the ID field for the document, so that existing documents can be updated.

@rvaidya rvaidya changed the title use IndigoRecord.internalID as the document ID for index updates in bingo-elastic Pull IndigoRecord attribute as the document ID for index updates in bingo-elastic Jun 5, 2024
@rvaidya
Copy link
Author

rvaidya commented Jun 5, 2024

Made the attribute used for document id configurable - can either provide your own mapper from IndigoRecord to document id (if you want to pull from custom objects), or use IndigoRecord.internalID

Also provide optional implementation for auto flushing index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant