Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for createIndexIfNothing (0.07 sec)

  1. src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java

            } catch (IndexNotFoundException ignore) {
    
            }
            runner.refresh();
            suggester = Suggester.builder().build(runner.client(), "SuggesterTest");
            suggester.createIndexIfNothing();
        }
    
        @Test
        public void test_Read() throws Exception {
            String indexName = "test-index";
            Client client = runner.client();
            SuggestSettings settings = suggester.settings();
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/Suggester.java

     *   <li>{@link #refresh()}: Refreshes the suggestion indices.</li>
     *   <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>
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 20.7K bytes
    - Viewed (3)
  3. src/test/java/org/codelibs/fess/helper/SuggestHelperTest.java

            public MockSuggestSettings settings() {
                return settings;
            }
    
            public void refresh() {
                // Mock implementation
            }
    
            public void createIndexIfNothing() {
                // Mock implementation
            }
    
            public String getIndex() {
                return "fess.suggest";
            }
    
            public long getAllWordsNum() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 16K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

                    } catch (final SuggestSettingsException e) {
                        logger.warn("Failed to add {}", field, e);
                    }
                }));
                suggester.createIndexIfNothing();
            } catch (final Exception e) {
                logger.warn("Failed to initialize Suggester.", e);
            }
        }
    
        /**
         * Gets the suggester instance.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            runner.admin().indices().prepareDelete("_all").execute().actionGet();
            runner.refresh();
            suggester = Suggester.builder().build(runner.client(), "SuggesterTest");
            suggester.createIndexIfNothing();
        }
    
        @Test
        public void test_indexAndSuggest() throws Exception {
            SuggestItem[] items = getItemSet1();
            suggester.indexer().index(items);
            suggester.refresh();
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 37.2K bytes
    - Viewed (0)
Back to top