Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for SearchHit (0.1 sec)

  1. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataService.java

            if (totalHitsValue != 0) {
                try {
                    for (final SearchHit searchHit : hits.getHits()) {
                        final OpenSearchAccessResult target = new OpenSearchAccessResult();
                        final Map<String, Object> fields = searchHit.getSourceAsMap();
                        target.setParentUrl(getFieldValue(fields.get("parentUrl"), String.class));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/rank/fusion/DefaultSearcher.java

            final Map<String, Object> docMap = new HashMap<>(32);
            if (searchHit.getSourceAsMap() == null) {
                searchHit.getFields().forEach((key, value) -> {
                    docMap.put(key, value.getValue());
                });
            } else {
                docMap.putAll(searchHit.getSourceAsMap());
            }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 22 06:56:21 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/util/SearchEngineUtil.java

        }
    
        public static long scroll(final String index, final Function<SearchHit, Boolean> callback) {
            final SearchEngineClient client = ComponentUtil.getSearchEngineClient();
            return client.<SearchHit> scrollSearch(index, searchRequestBuilder -> true, (searchResponse, hit) -> hit,
                    hit -> callback.apply(hit));
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/settings/ArraySettings.java

                int count = 0;
                try {
                    while (scrollId != null) {
                        final SearchHit[] hits = response.getHits().getHits();
                        if (hits.length == 0) {
                            break;
                        }
                        for (final SearchHit hit : hits) {
                            array[count] = hit.getSourceAsMap();
                            count++;
                        }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

                    scrollId = response.getScrollId();
                    final SearchHit[] hits = response.getHits().getHits();
                    if (scrollId == null || hits.length == 0) {
                        SuggestUtil.deleteScrollContext(client, scrollId);
                        isFinished.set(true);
                    }
    
                    for (final SearchHit hit : hits) {
                        final Map<String, Object> source = hit.getSourceAsMap();
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

            targetList.setTookInMillis(response.getTook().getMillis());
            if (totalHitsValue != 0) {
                try {
                    for (final SearchHit searchHit : hits.getHits()) {
                        final Map<String, Object> source = searchHit.getSourceAsMap();
                        final T target = BeanUtil.copyMapToNewBean(source, clazz, option -> {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

            String scrollId = response.getScrollId();
            try {
                while (scrollId != null) {
                    final SearchHit[] hits = response.getHits().getHits();
                    if (hits.length == 0) {
                        break;
                    }
                    for (final SearchHit hit : hits) {
                        final SuggestItem item = SuggestItem.parseSource(hit.getSourceAsMap());
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java

    import org.opensearch.index.query.QueryBuilders;
    import org.opensearch.index.query.functionscore.FunctionScoreQueryBuilder;
    import org.opensearch.index.query.functionscore.ScoreFunctionBuilders;
    import org.opensearch.search.SearchHit;
    import org.opensearch.search.sort.SortOrder;
    
    public class SuggestRequest extends Request<SuggestResponse> {
        private String index = null;
    
        private String query = "";
    
        private int size = 10;
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java

    import org.opensearch.index.query.QueryBuilders;
    import org.opensearch.index.query.functionscore.FunctionScoreQueryBuilder;
    import org.opensearch.index.query.functionscore.ScoreFunctionBuilders;
    import org.opensearch.search.SearchHit;
    import org.opensearch.search.rescore.QueryRescorerBuilder;
    
    public class PopularWordsRequest extends Request<PopularWordsResponse> {
        private String index = null;
    
        private int size = 10;
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueService.java

                        final BulkRequestBuilder builder = c.prepareBulk();
                        for (final SearchHit searchHit : searchHits) {
                            final UpdateRequestBuilder updateRequest =
                                    c.prepareUpdate().setIndex(index).setId(searchHit.getId()).setDoc(SESSION_ID, newSessionId);
                            builder.add(updateRequest);
                        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top