Close
dtSearch .NET Standard API 2023.02
IndexJob.StartingDocId Property

If non-zero, the first doc id to assign to documents in this index.

public int StartingDocId;

By default, the dtSearch indexer assigns each document a numerical id starting with 1 in each index. These ids are used in SearchFilters and in other places in the dtSearch Engine API to identify documents within an index.  

When an index is created, startingDocId can be used to specify that doc ids for the index should start with a value other than 1. This can be useful in situations where it is important that doc ids not change when indexes are merged.