Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getTotalHits (0.1 sec)

  1. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueServiceTest.java

                    .execute().actionGet().getHits().getTotalHits().value > 0);
    
            urlQueueService.delete("sessionId");
            assertFalse(fesenClient.prepareSearch("fess_crawler.queue").setQuery(QueryBuilders.termQuery("sessionId", "sessionId")).setSize(0)
                    .execute().actionGet().getHits().getTotalHits().value > 0);
    
        }
    
        public void test_insert_update_delete_multiTx() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/util/OpenSearchResultList.java

        private long totalHits;
    
        private long tookInMillis;
    
        public void setTotalHits(final long totalHits) {
            this.totalHits = totalHits;
        }
    
        public long getTotalHits() {
            return totalHits;
        }
    
        public void setTookInMillis(final long tookInMillis) {
            this.tookInMillis = tookInMillis;
        }
    
        public long getTookInMillis() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                            emptyListCount++;
                        } else {
                            emptyListCount = 0; // reset
                        }
                        long hitCount = ((EsResultList<EsAccessResult>) arList).getTotalHits();
                        while (hitCount > 0) {
                            if (arList.isEmpty()) {
                                ThreadUtil.sleep(fessConfig.getIndexerWebfsCommitMarginTimeAsInteger().longValue());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataService.java

            });
            final OpenSearchResultList<OpenSearchAccessResult> targetList = new OpenSearchResultList<>();
            final SearchHits hits = response.getHits();
            final TotalHits totalHits = hits.getTotalHits();
            final long totalHitsValue = totalHits != null ? totalHits.value : 0;
            targetList.setTotalHits(totalHitsValue);
            targetList.setTookInMillis(response.getTook().getMillis());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java

                    items.add(SuggestItem.parseSource(source));
                }
            }
    
            return new PopularWordsResponse(index, searchResponse.getTook().getMillis(), words, searchResponse.getHits().getTotalHits().value,
                    items);
        }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

                    .setTrackTotalHits(true).execute().actionGet(settings.getSearchTimeout());
            return response.getHits().getTotalHits().value;
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java

                }
            }
            firstWords.addAll(secondWords);
            firstItems.addAll(secondItems);
            return new SuggestResponse(index, searchResponse.getTook().getMillis(), firstWords, searchResponse.getHits().getTotalHits().value,
                    firstItems);
        }
    
        protected boolean isFirstWordMatching(final boolean singleWordQuery, final boolean hiraganaQuery, final String text) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

                final SearchRequestBuilder builder = c.prepareSearch(index).setSize(0).setTrackTotalHits(true);
                callback.accept(builder);
                return builder.execute();
            }).getHits().getTotalHits();
            return totalHits != null ? (int) totalHits.value : 0;
        }
    
        protected <T> T get(final Class<T> clazz, final String sessionId, final String url) {
            final String id = getId(sessionId, url);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/settings/ArraySettings.java

                        .actionGet(settings.getSearchTimeout());
                String scrollId = response.getScrollId();
    
                final Map<String, Object>[] array = new Map[(int) response.getHits().getTotalHits().value];
    
                int count = 0;
                try {
                    while (scrollId != null) {
                        final SearchHit[] hits = response.getHits().getHits();
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/suggest/Suggester.java

                    .setTrackTotalHits(true).execute().actionGet(suggestSettings.getSearchTimeout());
            return searchResponse.getHits().getTotalHits().value;
        }
    
        private String getSearchAlias(final String index) {
            return index;
        }
    
        private String getUpdateAlias(final String index) {
            return index + ".update";
        }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top