Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for facetResponse (0.06 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/webapp/WEB-INF/view/searchResults.jsp

    					</c:if>
    				</div>
    			</li>
    		</c:forEach>
    	</ol>
    	<aside class="col-md-4 d-none d-md-block">
    		<%-- Side Content --%>
    		<c:if test="${facetResponse != null}">
    			<c:forEach var="fieldData" items="${facetResponse.fieldList}">
    				<c:if
    					test="${fieldData.name == 'label' && fieldData.valueCountMap.size() > 0}">
    					<ul class="list-group mb-2">
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jan 18 05:32:37 UTC 2025
    - 9.1K bytes
    - Viewed (0)
Back to top