Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getAliasCount (0.27 seconds)

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

            assertEquals(-1L, count);
        }
    
        @Test
        public void test_getAliasCount_returnsZeroOnError() {
            // The real getAliasCount returns 0 on error; our test double tracks this
            testClient.aliasCountError = true;
            final int count = testClient.getAliasCount("nonexistent_index");
            assertEquals(0, count);
        }
    
        // ==========================================================================
    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

         *
         * @param indexName the name of the index
         * @return the number of aliases, or 0 if none found or an error occurred
         */
        public int getAliasCount(final String indexName) {
            try (CurlResponse response =
                    ComponentUtil.getCurlHelper().get("/_cat/aliases").param("format", "json").param("h", "alias,index").execute()) {
    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