- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for setTrackTotalHits (0.09 sec)
-
src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java
} protected long getTotal() { final SearchResponse response = client.prepareSearch().setIndices(indexName).setQuery(queryBuilder).setSize(0) .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) -
src/main/java/org/codelibs/fess/suggest/Suggester.java
} private long getNum(final QueryBuilder queryBuilder) { final SearchResponse searchResponse = client.prepareSearch().setIndices(getSearchAlias(index)).setSize(0).setQuery(queryBuilder) .setTrackTotalHits(true).execute().actionGet(suggestSettings.getSearchTimeout()); return searchResponse.getHits().getTotalHits().value; } private String getSearchAlias(final String index) { return index;
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 14.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/IndexingHelper.java
final FessConfig fessConfig) { final SearchResponse countResponse = searchEngineClient.prepareSearch(fessConfig.getIndexDocumentUpdateIndex()) .setQuery(queryBuilder).setSize(0).setTrackTotalHits(true).execute().actionGet(fessConfig.getIndexSearchTimeout()); final TotalHits totalHits = countResponse.getHits().getTotalHits(); if (totalHits != null) { return totalHits.value; }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 16.8K bytes - Viewed (0) -
fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java
public int getCount(final Consumer<SearchRequestBuilder> callback) { final TotalHits totalHits = getClient().get(c -> { 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; }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Nov 07 04:44:10 UTC 2024 - 23.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java
if (StringUtil.isNotBlank(trackTotalHits)) { if (Constants.TRUE.equalsIgnoreCase(trackTotalHits) || Constants.FALSE.equalsIgnoreCase(trackTotalHits)) { searchRequestBuilder.setTrackTotalHits(Boolean.parseBoolean(trackTotalHits)); return; } try { searchRequestBuilder.setTrackTotalHitsUpTo(Integer.parseInt(trackTotalHits));
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sun Oct 20 02:08:03 UTC 2024 - 86.1K bytes - Viewed (0)