Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for prepareRefresh (0.34 sec)

  1. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

                        .setRetryOnConflict(5).execute().actionGet(getIndexTimeout());
                client.admin().indices().prepareRefresh().setIndices(settingsIndexName).execute().actionGet(getIndicesTimeout());
            } catch (final Exception e) {
                throw new SuggestSettingsException("Failed to update suggestSettings.", e);
            }
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/settings/ArraySettings.java

                client.prepareUpdate().setIndex(actualIndex).setId(id).setDocAsUpsert(true).setDoc(builder).execute()
                        .actionGet(settings.getIndexTimeout());
                client.admin().indices().prepareRefresh().setIndices(actualIndex).execute().actionGet(settings.getIndicesTimeout());
            } catch (final Exception e) {
                throw new SuggestSettingsException("Failed to add to array.", e);
            }
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/Suggester.java

            return new PopularWordsRequestBuilder(client).setIndex(getSearchAlias(index));
        }
    
        public RefreshResponse refresh() {
            return client.admin().indices().prepareRefresh().execute().actionGet(suggestSettings.getIndexTimeout());
        }
    
        public void shutdown() {
            threadPool.shutdownNow();
        }
    
        public boolean createIndexIfNothing() {
            try {
    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/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

                            numberOfSuggestDocs += res.getNumberOfSuggestDocs();
                            numberOfInputDocs += res.getNumberOfInputDocs();
                            client.admin().indices().prepareRefresh(index).execute().actionGet(settings.getIndicesTimeout());
                            docs.clear();
    
                            waitController.run();
                        }
                    }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

                        scrollId = response.getScrollId();
                    }
                } finally {
                    SuggestUtil.deleteScrollContext(client, scrollId);
                }
                client.admin().indices().prepareRefresh(index).execute().actionGet(settings.getIndicesTimeout());
            } catch (final Exception e) {
                throw new SuggesterException("Failed to exec delete by query.", e);
            }
    
            return true;
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

            return numOfDeleted;
        }
    
        protected int refreshIndex(final SearchEngineClient searchEngineClient, final String index) {
            final RefreshResponse response = searchEngineClient.admin().indices().prepareRefresh(index).execute().actionGet();
            if (logger.isDebugEnabled()) {
                logger.debug("[{}] refresh status: {} ({}/{}/{})", index, response.getStatus(), response.getTotalShards(),
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  7. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

            }
        }
    
        protected RefreshResponse refresh() {
            try {
                return getClient().get(c -> c.admin().indices().prepareRefresh(index).execute());
            } catch (final Exception e) {
                throw new OpenSearchAccessException("Failed to refresh.", e);
            }
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java

            }
        }
    
        public void refresh(final String... indices) {
            client.admin().indices().prepareRefresh(indices).execute(new ActionListener<RefreshResponse>() {
                @Override
                public void onResponse(final RefreshResponse response) {
                    if (logger.isDebugEnabled()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Oct 20 02:08:03 UTC 2024
    - 86.1K bytes
    - Viewed (0)
Back to top