Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. test-site/app/Global.java

                ComponentsUtil.contentTypeName = "test";
                ComponentsUtil.suggester = Suggester.builder().build(ComponentsUtil.runner.client(), "test");
                ComponentsUtil.suggester.createIndexIfNothing();
            } catch (Exception e) {
                Logger.error("Failed to create components.", e);
            }
        }
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Sat Feb 23 14:02:03 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  2. 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: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 8.9K 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: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 14.6K 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);
            }
        }
    
        public Suggester suggester() {
            return suggester;
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18K 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: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
Back to top