Can’t delete documents from elastic index.
Trying this code, it’s didn’t work
string[] stringIds = categoryIds.Select(i => i.ToString()).ToArray();
var client = new ElasticClient(_uri);
await client.DeleteByQueryAsync<NomenclatureIndexModel>(d => d
.Index(CategorySearchIndex)
.Query(q => q
.Terms(ts => ts
.Field(f => f.Id)
.Terms(stringIds))));
What am I doing wrong
New contributor
SURZUS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.