I want to avoid adding duplicate documents into an ES type. Let's say I use the title and userID fields. The document ID would be different, however, for new inserts. But I want to ensure that no duplicate records matching the userID and title fields are inserted through the bulk insert process.
I realize that existing documents could be updated, but as I understand it, this does a delete/insert and doesn't free up the once-used space.
In SQL Server, I used a TVP that took in a DataTable and did the checking and inserting.
How can this be done using NEST and ElasticSearch?