You are here: com.dtsearch.engine Package > Interfaces > DataSource2 Class > DataSource2.getDocId Method
Close
dtSearch Engine API for Java
DataSource2.getDocId Method

Each time getNextDoc() is called, getDocId() will return the doc id of the last document indexed.

Syntax
Java
public int getDocId();

A doc id can be used to identify a document in a SearchFilter.

Copyright (c) 1998-2021 dtSearch Corp. All rights reserved.