Migrating from Elastic NEST v7 to .NET Elastic Client v8: Index alias search

zoey_L
Fri, 21 Nov 2025 00:17:42 +0000
Elasticsearch

while migrating .net package from NEST to Elastic.Clients.Elasticsearch. Observed one issue of double search indexes if they have the same alias.

We have a time rollover index created once a week. every week, there will be a new index created with new date. (new index is in hot phase and old index moves to cold phase staying for a week). but both index will have the same alias name.

When used the NEST package, the query always hit the latest index and return the proper count and aggregation buckets.
after migrating to the new ES .net package, the same query returns double count. (old + new)
Confirming it by manually deleting old index, the query returns correct match count).

Any suggestions for this issue?

5 posts - 2 participants