Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for createIndexIfNothing (0.14 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 Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. 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);
            }
        }
    
        public Suggester suggester() {
            return suggester;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/Suggester.java

            return client.admin().indices().prepareRefresh().execute().actionGet(suggestSettings.getIndexTimeout());
        }
    
        public void shutdown() {
            threadPool.shutdownNow();
        }
    
        public boolean createIndexIfNothing() {
            try {
                boolean created = false;
                final IndicesExistsResponse response =
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. 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 Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
Back to top