Page tree
Skip to end of metadata
Go to start of metadata

The NumDocs  field expression returns the total number of documents in the index. 

This count includes documents that have been updated/deleted but not yet reclaimed from permanent storage.




    • ALIAS - Field name for the resulting value.
    NUMDOCS() as
    QueryRequest request = new QueryRequest("*:*)");
    request.addField(new NumDocs().as(""));
    // ... (Perform Search)



    • No labels