Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for facetResponse (0.15 sec)

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

         */
        protected List<Field> fieldList = new ArrayList<>();
    
        /**
         * Constructs a FacetResponse from OpenSearch aggregations.
         * Processes both field facets and query facets from the aggregation results.
         *
         * @param aggregations the OpenSearch aggregations containing facet data
         */
        public FacetResponse(final Aggregations aggregations) {
            aggregations.forEach(aggregation -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/entity/SearchRenderDataTest.java

            // Test with FacetResponse object created from empty Aggregations
            List<Aggregation> aggregationList = new ArrayList<>();
            Aggregations aggregations = new Aggregations(aggregationList);
            FacetResponse facetResponse = new FacetResponse(aggregations);
            searchRenderData.setFacetResponse(facetResponse);
            assertEquals(facetResponse, searchRenderData.getFacetResponse());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/rank/fusion/SearchResultTest.java

            // Test builder with facet response
            Aggregations aggregations = InternalAggregations.EMPTY;
            FacetResponse facetResponse = new FacetResponse(aggregations);
    
            SearchResult result = SearchResult.create().facetResponse(facetResponse).allRecordCount(50L).build();
    
            assertEquals(facetResponse, result.getFacetResponse());
            assertEquals(50L, result.getAllRecordCount());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/rank/fusion/SearchResult.java

             * Sets the facet response containing aggregated facet information.
             *
             * @param facetResponse The facet response
             * @return This builder instance for method chaining
             */
            public SearchResultBuilder facetResponse(final FacetResponse facetResponse) {
                this.facetResponse = facetResponse;
                return this;
            }
    
            /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/entity/SearchRenderData.java

        }
    
        /**
         * Sets the facet response containing aggregated search facets.
         *
         * @param facetResponse The facet response
         */
        public void setFacetResponse(final FacetResponse facetResponse) {
            this.facetResponse = facetResponse;
        }
    
        /**
         * Sets additional highlight parameters to append to URLs.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/rank/fusion/RankFusionSearcherTest.java

            }
        }
    
        private static class SimpleSearcher extends RankFusionSearcher {
            @Override
            protected SearchResult search(String query, SearchRequestParams params, OptionalThing<FessUserBean> userBean) {
                return new SearchResult(new ArrayList<>(), 0L, "eq", 0L, false, new FacetResponse(InternalAggregations.EMPTY));
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/util/QueryResponseListTest.java

        }
    
        public void test_facetResponse_constructor() {
            FacetResponse facetResponse = null;
            List<Map<String, Object>> documentList = new ArrayList<>();
    
            QueryResponseList qrList = new QueryResponseList(documentList, 50L, "lte", 200L, false, facetResponse, 10, 20, 0);
    
            assertEquals(facetResponse, qrList.getFacetResponse());
            assertFalse(qrList.isPartialResults());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 39.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/util/QueryResponseList.java

        /** The total execution time for the search request in milliseconds. */
        protected long execTime;
    
        /** The facet response containing aggregated search facets and their counts. */
        protected FacetResponse facetResponse;
    
        /** Flag indicating whether the search results are partial (not complete). */
        protected boolean partialResults = false;
    
        /** The time taken to execute the search query in milliseconds. */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  9. 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 -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.9K 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) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 54.6K bytes
    - Viewed (0)
Back to top