Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for facetResponse (0.09 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 -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. 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, //
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. 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) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. 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;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. src/main/webapp/WEB-INF/orig/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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jun 09 04:29:42 UTC 2022
    - 9K bytes
    - Viewed (0)
  7. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jun 09 04:29:42 UTC 2022
    - 9K bytes
    - Viewed (0)
  8. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  9. 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,
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 22 06:56:21 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. 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) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.3K bytes
    - Viewed (0)
Back to top