public class EntityCollectionParameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<FacetParameter> |
facets
List of facets to calculate and possibly filter the result on.
|
FilterParameter |
filter
How the results should be filtered.
|
java.lang.Integer |
skip
How many entities to skip when paging the result.
|
java.util.List<EntitySortingParameter> |
sortBy
List of sorting parameters specifying how the result should be sorted.
|
java.lang.Integer |
take
How many entities to take when paging the result.
|
Constructor and Description |
---|
EntityCollectionParameters() |
Modifier and Type | Method and Description |
---|---|
void |
addDistinctFacet(java.lang.String attributeName)
Adds a facet with the type
FacetType.DISTINCT to the entity collection parameter. |
void |
addDistinctFacet(java.lang.String attributeName,
java.util.List<?> selected)
Adds a facet with the type
FacetType.DISTINCT to the entity collection parameter. |
void |
addDistinctFacet(java.lang.String attributeName,
java.util.List<?> selected,
java.lang.String name,
java.util.List<DistinctFacetItemSortingParameter> sortBy)
Adds a facet with the type
FacetType.DISTINCT to the entity collection parameter. |
void |
addRangeFacet(java.lang.String attributeName)
Adds a facet with the type
FacetType.RANGE to the entity collection parameter. |
void |
addRangeFacet(java.lang.String attributeName,
RangeFacetParameter.RangeFacetSelectedParameter<?> selected,
java.lang.String name)
Adds a facet with the type
FacetType.RANGE to the entity collection parameter. |
public java.lang.Integer skip
public java.lang.Integer take
public java.util.List<EntitySortingParameter> sortBy
public java.util.List<FacetParameter> facets
public FilterParameter filter
public void addDistinctFacet(java.lang.String attributeName)
FacetType.DISTINCT
to the entity collection parameter.attributeName
- What attribute on the entities to facet on. This must match one of the attributes available on the entities in the search engine.public void addDistinctFacet(java.lang.String attributeName, java.util.List<?> selected)
FacetType.DISTINCT
to the entity collection parameter.attributeName
- What attribute on the entities to facet on. This must match one of the attributes available on the entities in the search engine.selected
- Values selected by the user. If none are selected this can be null.public void addDistinctFacet(java.lang.String attributeName, java.util.List<?> selected, java.lang.String name, java.util.List<DistinctFacetItemSortingParameter> sortBy)
FacetType.DISTINCT
to the entity collection parameter.attributeName
- What attribute on the entities to facet on. This must match one of the attributes available on the entities in the search engine.selected
- Values selected by the user. If none are selected this can be null.name
- The desired name of the facet in the response. Will be the same as the attributeName if null.sortBy
- How to sort the facet options in the response.public void addRangeFacet(java.lang.String attributeName)
FacetType.RANGE
to the entity collection parameter.attributeName
- What attribute on the entities to facet on. This must match one of the attributes available on the entities in the search engine.public void addRangeFacet(java.lang.String attributeName, RangeFacetParameter.RangeFacetSelectedParameter<?> selected, java.lang.String name)
FacetType.RANGE
to the entity collection parameter.attributeName
- What attribute on the entities to facet on. This must match one of the attributes available on the entities in the search engine.selected
- The min and max values selected by the user. Can be left to null if nothing is selected.name
- The desired name of the facet in the response. Will be the same as the attributeName if null.