public class FacetedSearchRequest<P extends SearchParameter> extends SearchRequest<P>
Modifier and Type | Class and Description |
---|---|
static interface |
FacetedSearchRequest.FacetParameters
Annotation to document the facet query parameters.
|
SearchRequest.QueryField
Pageable.OffsetLimitParameters
Constructor and Description |
---|
FacetedSearchRequest() |
FacetedSearchRequest(long offset,
int limit) |
FacetedSearchRequest(Pageable page) |
FacetedSearchRequest(SearchRequest<P> searchRequest) |
Modifier and Type | Method and Description |
---|---|
void |
addFacetPage(P parameter,
int facetOffset,
int facetLimit)
Sets the paging setting of facet parameter.
|
void |
addFacets(P... facets) |
Integer |
getFacetLimit()
Page size of the facet request.
|
Integer |
getFacetMinCount()
Min count of facet to return, if the facet count is less than this number the facet won't be included.
|
Integer |
getFacetOffset()
Offset of the facet request.
|
Pageable |
getFacetPage(P parameter)
Gets the paging configuration of a facet parameter.
|
Map<P,Pageable> |
getFacetPages()
Holds the paging configuration for each requested facet.
|
Set<P> |
getFacets()
Gets the list of requested facets by the search operation.
|
boolean |
isMultiSelectFacets() |
void |
setFacetLimit(Integer facetLimit) |
void |
setFacetMinCount(Integer facetMinCount) |
void |
setFacetOffset(Integer facetOffset) |
void |
setFacetPages(Map<P,Pageable> facetPages) |
void |
setFacets(Set<P> facets)
Sets the list of facets.
|
void |
setMultiSelectFacets(boolean multiSelectFacets) |
addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, getHighlightFields, getParameters, getQ, getQFields, getSpellCheckCount, isHighlight, isSpellCheck, setHighlight, setHighlightFields, setParameters, setQ, setQFields, setSpellCheck, setSpellCheckCount, toString
addOffset, copyPagingValues, equals, getLimit, getOffset, hashCode, setLimit, setOffset
public FacetedSearchRequest()
public FacetedSearchRequest(Pageable page)
public FacetedSearchRequest(SearchRequest<P> searchRequest)
public FacetedSearchRequest(long offset, int limit)
public Integer getFacetMinCount()
public void setFacetMinCount(Integer facetMinCount)
public Set<P> getFacets()
public boolean isMultiSelectFacets()
public void setMultiSelectFacets(boolean multiSelectFacets)
multiSelectFacets
- the multiSelectFacets to setpublic Integer getFacetLimit()
public void setFacetLimit(Integer facetLimit)
public Map<P,Pageable> getFacetPages()
public void setFacetPages(Map<P,Pageable> facetPages)
public void addFacetPage(P parameter, int facetOffset, int facetLimit)
public Pageable getFacetPage(P parameter)
public Integer getFacetOffset()
public void setFacetOffset(Integer facetOffset)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.