Close
dtSearch Engine API for Java
IndexJob.setStartingDocId Method

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

Syntax
Java
public void setStartingDocId(int v);

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.