Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for switchIndex (0.06 seconds)

  1. src/test/java/org/codelibs/fess/suggest/SuggesterRefactoringTest.java

            assertNotNull("Should have search alias", aliasResponse.getAliases());
    
            // Call switchIndex - should return early without error since they're already the same
            suggester.switchIndex();
    
            // Verify indices still exist and are functional
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  2. CLAUDE.md

    ### Suggester (Main Entry Point)
    Location: `src/main/java/org/codelibs/fess/suggest/Suggester.java`
    
    Main operations: `suggest()`, `popularWords()`, `indexer()`, `createIndexIfNothing()`, `createNextIndex()`, `switchIndex()`, `removeDisableIndices()`
    
    ### SuggestIndexer (Indexing Engine)
    Location: `src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java`
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Thu Mar 12 03:39:53 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/SuggesterIndexLifecycleTest.java

    import org.junit.rules.TestName;
    import org.opensearch.action.admin.indices.get.GetIndexResponse;
    
    /**
     * Tests for Suggester index lifecycle operations including edge cases.
     * Covers: createIndexIfNothing, createNextIndex, switchIndex, removeDisableIndices
     */
    public class SuggesterIndexLifecycleTest {
        static OpenSearchRunner runner;
    
        @Rule
        public final TestName testName = new TestName();
    
        @BeforeClass
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/suggest/Suggester.java

     *   <li>{@link #createIndexIfNothing()}: Creates a new index if no index exists.</li>
     *   <li>{@link #createNextIndex()}: Creates a new index and replaces the current update alias with the new index.</li>
     *   <li>{@link #switchIndex()}: Switches the search alias to the current update index.</li>
     *   <li>{@link #removeDisableIndices()}: Removes disabled indices.</li>
     *   <li>{@link #indexer()}: Creates a new SuggestIndexer for indexing suggestions.</li>
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 21.6K bytes
    - Click Count (3)
  5. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

                    }
                    exitCode.set(1);
                }
            }
    
            logger.info("Replacing new suggest index.");
            suggestHelper.suggester().switchIndex();
    
            logger.info("Removing old indices.");
            suggestHelper.suggester().removeDisableIndices();
    
            return exitCode.get();
        }
    
        private int purge(final LocalDateTime time) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            assertEquals("検索 エンジン", response.getWords().get(0));
    
            response2 = suggester.suggest().setSuggestDetail(true).execute().getResponse();
            assertEquals(2, response2.getNum());
    
            suggester.switchIndex();
    
            response = suggester.suggest().setQuery("kensaku").setSuggestDetail(true).execute().getResponse();
            assertEquals(0, response.getNum());
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 37.1K bytes
    - Click Count (0)
Back to Top