Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for getSourceAsMap (0.26 sec)

  1. 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());
            }
    
            final ViewHelper viewHelper = ComponentUtil.getViewHelper();
    
    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. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataService.java

                    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));
                        target.setMethod(getFieldValue(fields.get("method"), 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)
  3. src/main/java/org/codelibs/fess/job/UpdateLabelJob.java

                }, (builder, hit) -> {
                    try {
                        final Map<String, Object> doc = hit.getSourceAsMap();
                        final String url = DocumentUtil.getValue(doc, fessConfig.getIndexFieldUrl(), String.class);
                        if (StringUtil.isNotBlank(url)) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

                    if (hits.length == 0) {
                        break;
                    }
                    for (final SearchHit hit : hits) {
                        final SuggestItem item = SuggestItem.parseSource(hit.getSourceAsMap());
                        item.setDocFreq(0);
                        item.setKinds(Stream.of(item.getKinds()).filter(kind -> kind != SuggestItem.Kind.DOCUMENT)
    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/index/writer/SuggestIndexWriter.java

                    indexRequestBuilder.setId(item.getId()).setOpType(IndexRequest.OpType.INDEX)
                            .setSource(item.getUpdatedSource(getResponse.getSourceAsMap()));
                    bulkRequestBuilder.add(indexRequestBuilder);
                } else {
                    final IndexRequestBuilder indexRequestBuilder = new IndexRequestBuilder(client, IndexAction.INSTANCE, index);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/user/allcommon/EsAbstractBehavior.java

            final SearchHits searchHits = getSearchHits(response);
            searchHits.forEach(hit -> {
                final Map<String, Object> source = hit.getSourceAsMap();
                final RESULT entity = createEntity(source, entityType);
                final DocMeta docMeta = ((EsAbstractEntity) entity).asDocMeta();
                docMeta.id(hit.getId());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/log/allcommon/EsAbstractBehavior.java

            final SearchHits searchHits = getSearchHits(response);
            searchHits.forEach(hit -> {
                final Map<String, Object> source = hit.getSourceAsMap();
                final RESULT entity = createEntity(source, entityType);
                final DocMeta docMeta = ((EsAbstractEntity) entity).asDocMeta();
                docMeta.id(hit.getId());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/config/allcommon/EsAbstractBehavior.java

            final SearchHits searchHits = getSearchHits(response);
            searchHits.forEach(hit -> {
                final Map<String, Object> source = hit.getSourceAsMap();
                final RESULT entity = createEntity(source, entityType);
                final DocMeta docMeta = ((EsAbstractEntity) entity).asDocMeta();
                docMeta.id(hit.getId());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

                        isFinished.set(true);
                    }
    
                    for (final SearchHit hit : hits) {
                        final Map<String, Object> source = hit.getSourceAsMap();
                        if (limitOfDocumentSize > 0) {
                            long size = 0;
                            for (final String field : supportedFields) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java

                index = hits[0].getIndex();
            } else {
                index = SuggestConstants.EMPTY_STRING;
            }
    
            for (final SearchHit hit : hits) {
                final Map<String, Object> source = hit.getSourceAsMap();
                final String text = source.get(FieldNames.TEXT).toString();
                words.add(text);
    
                if (detail) {
                    items.add(SuggestItem.parseSource(source));
                }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top