Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for createNextIndex (0.07 seconds)

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

            // Create next index - this is the main method we're testing
            suggester.createNextIndex();
            Thread.sleep(50);
    
            // Verify that createNextIndex completed without exceptions
            // The update alias should now point to the new index
            final String updateAlias = suggester.getIndex() + ".update";
    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

    ---
    
    ## Key Components
    
    ### 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 #shutdown()}: Shuts down the thread pool.</li>
     *   <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>
    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

                return 0;
            }
    
            final SuggestHelper suggestHelper = ComponentUtil.getSuggestHelper();
    
            logger.info("Creating new suggest index.");
            suggestHelper.suggester().createNextIndex();
    
            logger.info("Storing all bad words.");
            suggestHelper.storeAllBadWords(true);
    
            logger.info("Storing all elevate words.");
            suggestHelper.storeAllElevateWords(true);
    
    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

            SuggestResponse response2 = suggester.suggest().setSuggestDetail(true).execute().getResponse();
            assertEquals(2, response2.getNum());
    
            suggester.createNextIndex();
            SuggestItem[] items2 = getItemSet2();
            suggester.indexer().index(items2);
            suggester.refresh();
    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