このコンテンツは選択した言語では利用できません。
5.2.2. Result Size
Some use cases require information about the total number of matching documents. Consider the following examples:
Retrieving all matching documents is costly in terms of resources. The Lucene-based Query API retrieves all matching documents regardless of pagination parameters. Since it is costly to retrieve all the matching documents, the Lucene-based Query API can retrieve the total number of matching documents regardless of the pagination parameters. All matching elements are retrieved without triggering any object loads.
Example 5.8. Determining the Result Size of a Query
The number of results is an approximation if the index is not correctly synchronized with the database. An ansychronous cluster is an example of this scenario.