Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getTotalHits (0.18 sec)

  1. src/main/java/org/codelibs/fess/rank/fusion/DefaultSearcher.java

            searchResponseOpt.ifPresent(searchResponse -> {
                final SearchHits searchHits = searchResponse.getHits();
                builder.allRecordCount(searchHits.getTotalHits().value);
                builder.allRecordCountRelation(searchHits.getTotalHits().relation.toString());
                builder.queryTime(searchResponse.getTook().millis());
    
                if (searchResponse.getTotalShards() != searchResponse.getSuccessfulShards()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 22 06:56:21 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. 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)
  3. src/main/java/org/codelibs/fess/es/log/allcommon/EsAbstractBehavior.java

            if (esCb.getPreference() != null) {
                builder.setPreference(esCb.getPreference());
            }
            return (int) getSearchHits(esCb.build(builder).execute().actionGet(searchTimeout)).getTotalHits().value;
        }
    
        @Override
        protected <RESULT extends ENTITY> RESULT delegateSelectEntity(final ConditionBean cb, final Class<? extends RESULT> entityType) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/config/allcommon/EsAbstractBehavior.java

            if (esCb.getPreference() != null) {
                builder.setPreference(esCb.getPreference());
            }
            return (int) getSearchHits(esCb.build(builder).execute().actionGet(searchTimeout)).getTotalHits().value;
        }
    
        @Override
        protected <RESULT extends ENTITY> RESULT delegateSelectEntity(final ConditionBean cb, final Class<? extends RESULT> entityType) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/es/user/allcommon/EsAbstractBehavior.java

            if (esCb.getPreference() != null) {
                builder.setPreference(esCb.getPreference());
            }
            return (int) getSearchHits(esCb.build(builder).execute().actionGet(searchTimeout)).getTotalHits().value;
        }
    
        @Override
        protected <RESULT extends ENTITY> RESULT delegateSelectEntity(final ConditionBean cb, final Class<? extends RESULT> entityType) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

                    .setQuery(queryBuilder).setSize(0).setTrackTotalHits(true).execute().actionGet(fessConfig.getIndexSearchTimeout());
            final TotalHits totalHits = countResponse.getHits().getTotalHits();
            if (totalHits != null) {
                return totalHits.value;
            }
            return 0;
        }
    
        public long deleteBySessionId(final String sessionId) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 16.8K bytes
    - Viewed (0)
Back to top