Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getDocumentCount (0.25 seconds)

  1. src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientRebuildTest.java

        }
    
        // ==========================================================================
        // getDocumentCount and getAliasCount edge cases
        // ==========================================================================
    
        @Test
        public void test_getDocumentCount_returnsNegativeOneOnError() {
            // The real getDocumentCount returns -1 on error; our test double tracks this
            testClient.documentCountError = true;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 28.6K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

         * Gets the document count of an index.
         *
         * @param indexName the name of the index
         * @return the number of documents in the index, or -1 if the count could not be retrieved
         */
        public long getDocumentCount(final String indexName) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 138.6K bytes
    - Click Count (1)
Back to Top