Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for FacetResponse (0.23 sec)

  1. src/main/java/org/codelibs/fess/util/FacetResponse.java

    import org.opensearch.search.aggregations.bucket.terms.Terms;
    
    import com.google.common.io.BaseEncoding;
    
    public class FacetResponse {
        protected Map<String, Long> queryCountMap = new LinkedHashMap<>();
    
        protected List<Field> fieldList = new ArrayList<>();
    
        public FacetResponse(final Aggregations aggregations) {
            aggregations.forEach(aggregation -> {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/entity/SearchRenderData.java

        public void setDocumentItems(final List<Map<String, Object>> documentItems) {
            this.documentItems = documentItems;
        }
    
        public void setFacetResponse(final FacetResponse facetResponse) {
            this.facetResponse = facetResponse;
        }
    
        public void setAppendHighlightParams(final String appendHighlightParams) {
            this.appendHighlightParams = appendHighlightParams;
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/ApiResult.java

                requestedTime = data.getRequestedTime();
                final FacetResponse facetResponse = data.getFacetResponse();
                if (facetResponse != null && facetResponse.hasFacetResponse()) {
                    // facet field
                    if (facetResponse.getFieldList() != null) {
                        facetField = facetResponse.getFieldList().stream().map(field -> {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/rank/fusion/SearchResult.java

                documentList.add(doc);
                return this;
            }
    
            public SearchResultBuilder facetResponse(final FacetResponse facetResponse) {
                this.facetResponse = facetResponse;
                return this;
            }
    
            public SearchResult build() {
                return new SearchResult(documentList, //
                        allRecordCount, //
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/search/SearchAction.java

                RenderDataUtil.register(data, "queryId", queryId);
                RenderDataUtil.register(data, "documentItems", documentItems);
                RenderDataUtil.register(data, "facetResponse", facetResponse);
                RenderDataUtil.register(data, "appendHighlightParams", appendHighlightParams);
                RenderDataUtil.register(data, "execTime", execTime);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/rank/fusion/DefaultSearcher.java

                }
    
                // facet
                final Aggregations aggregations = searchResponse.getAggregations();
                if (aggregations != null) {
                    builder.facetResponse(new FacetResponse(aggregations));
                }
    
            });
            return builder.build();
        }
    
        protected OptionalEntity<SearchResponse> sendRequest(final String query, final SearchRequestParams params,
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/util/QueryResponseList.java

                final int offset) {
            this(documentList, start, pageSize, offset);
            this.allRecordCount = allRecordCount;
            this.allRecordCountRelation = allRecordCountRelation;
            this.queryTime = queryTime;
            this.partialResults = partialResults;
            this.facetResponse = facetResponse;
            if (pageSize > 0) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/searchlist/AdminSearchlistAction.java

                RenderDataUtil.register(data, "queryId", queryId);
                RenderDataUtil.register(data, "documentItems", documentItems);
                RenderDataUtil.register(data, "facetResponse", facetResponse);
                RenderDataUtil.register(data, "appendHighlightParams", appendHighlightParams);
                RenderDataUtil.register(data, "execTime", execTime);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 18.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java

                final String allRecordCountRelation, final long queryTime, final boolean partialResults, final FacetResponse facetResponse,
                final int start, final int pageSize, final int offset) {
            return new QueryResponseList(documentList, allRecordCount, allRecordCountRelation, queryTime, partialResults, facetResponse, start,
                    pageSize, offset);
        }
    
        protected float toFloat(final Object value) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                buf.append(']');
                if (facetResponse != null && facetResponse.hasFacetResponse()) {
                    // facet field
                    buf.append(',');
                    buf.append("\"facet_field\":[");
                    if (facetResponse.getFieldList() != null) {
                        boolean first1 = true;
                        for (final Field field : facetResponse.getFieldList()) {
                            if (!first1) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 02:17:23 GMT 2024
    - 50.3K bytes
    - Viewed (0)
Back to top