Class SearchPageRequest
java.lang.Object
de.codebarista.shopware.model.core.SearchPageRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-06-10T11:26:02.541008353+02:00[Europe/Berlin]",
comments="Generator version: 7.5.0")
public class SearchPageRequest
extends Object
SearchPageRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhether the total for the total number of hits should be determined for the search query. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAggregationsItem(CriteriaAggregationsInner aggregationsItem) addFieldsItem(String fieldsItem) addFilterItem(CriteriaFilterInner filterItem) addGroupingItem(String groupingItem) addPostFilterItem(CriteriaFilterInner postFilterItem) addSortItem(CriteriaSortInner sortItem) aggregations(List<CriteriaAggregationsInner> aggregations) associations(Object associations) booleanfilter(List<CriteriaFilterInner> filter) Used to perform aggregations on the search result.Used to fetch associations which are not fetched by default.Fields which should be returned in the search result.List of filters to restrict the search result.Perform groupings over certain fieldsgetLimit()Number of items per result page.Filter by manufacturers.Enables/disabled filtering by manufacturer.Filters by a maximum product price.Filters by a minimum product price.Resets all aggregations in the criteria.org.openapitools.jackson.nullable.JsonNullable<String>If this flag is set, no products are fetched.org.openapitools.jackson.nullable.JsonNullable<String>getOrder()Specifies the sorting of the products by `availableSortings`.getP()Search result pagegetPage()Search result pageFilters that applied without affecting aggregations.Enables/disabled filtering by price.Filters products by their properties.Enables/disabled filtering by properties products.A whitelist of property identifiers which can be used for filtering.Filter products with a minimum average rating.Enables/disabled filtering by rating.By sending the parameter `reduce-aggregations` , the post-filters that were applied by the customer, are also applied to the aggregations.org.openapitools.jackson.nullable.JsonNullable<String>Using the search parameter, the server performs a text search on all records based on their data model and weighting as defined in the entity definition using the SearchRanking flag.Filters products that are marked as shipping-free.Enables/disabled filtering by shipping-free products.getSort()Sorting in the search result.Whether the total for the total number of hits should be determined for the search query.inthashCode()manufacturer(String manufacturer) manufacturerFilter(Boolean manufacturerFilter) noAggregations(String noAggregations) onlyAggregations(String onlyAggregations) postFilter(List<CriteriaFilterInner> postFilter) priceFilter(Boolean priceFilter) properties(String properties) propertyFilter(Boolean propertyFilter) propertyWhitelist(String propertyWhitelist) ratingFilter(Boolean ratingFilter) reduceAggregations(String reduceAggregations) voidsetAggregations(List<CriteriaAggregationsInner> aggregations) voidsetAssociations(Object associations) voidvoidsetFilter(List<CriteriaFilterInner> filter) voidsetGrouping(List<String> grouping) voidvoidsetManufacturer(String manufacturer) voidsetManufacturerFilter(Boolean manufacturerFilter) voidsetMaxPrice(Integer maxPrice) voidsetMinPrice(Integer minPrice) voidsetNoAggregations(String noAggregations) voidsetNoAggregations_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> noAggregations) voidsetOnlyAggregations(String onlyAggregations) voidsetOnlyAggregations_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> onlyAggregations) voidvoidvoidvoidsetPostFilter(List<CriteriaFilterInner> postFilter) voidsetPriceFilter(Boolean priceFilter) voidsetProperties(String properties) voidsetPropertyFilter(Boolean propertyFilter) voidsetPropertyWhitelist(String propertyWhitelist) voidvoidsetRatingFilter(Boolean ratingFilter) voidsetReduceAggregations(String reduceAggregations) voidsetReduceAggregations_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> reduceAggregations) voidvoidsetShippingFree(Boolean shippingFree) voidsetShippingFreeFilter(Boolean shippingFreeFilter) voidsetSort(List<CriteriaSortInner> sort) voidsetTotalCountMode(SearchPageRequest.TotalCountModeEnum totalCountMode) shippingFree(Boolean shippingFree) shippingFreeFilter(Boolean shippingFreeFilter) sort(List<CriteriaSortInner> sort) toString()totalCountMode(SearchPageRequest.TotalCountModeEnum totalCountMode)
-
Field Details
-
JSON_PROPERTY_PAGE
- See Also:
-
JSON_PROPERTY_LIMIT
- See Also:
-
JSON_PROPERTY_FILTER
- See Also:
-
JSON_PROPERTY_SORT
- See Also:
-
JSON_PROPERTY_POST_FILTER
- See Also:
-
JSON_PROPERTY_ASSOCIATIONS
- See Also:
-
JSON_PROPERTY_AGGREGATIONS
- See Also:
-
JSON_PROPERTY_GROUPING
- See Also:
-
JSON_PROPERTY_FIELDS
- See Also:
-
JSON_PROPERTY_TOTAL_COUNT_MODE
- See Also:
-
JSON_PROPERTY_ORDER
- See Also:
-
JSON_PROPERTY_P
- See Also:
-
JSON_PROPERTY_MANUFACTURER
- See Also:
-
JSON_PROPERTY_MIN_PRICE
- See Also:
-
JSON_PROPERTY_MAX_PRICE
- See Also:
-
JSON_PROPERTY_RATING
- See Also:
-
JSON_PROPERTY_SHIPPING_FREE
- See Also:
-
JSON_PROPERTY_PROPERTIES
- See Also:
-
JSON_PROPERTY_MANUFACTURER_FILTER
- See Also:
-
JSON_PROPERTY_PRICE_FILTER
- See Also:
-
JSON_PROPERTY_RATING_FILTER
- See Also:
-
JSON_PROPERTY_SHIPPING_FREE_FILTER
- See Also:
-
JSON_PROPERTY_PROPERTY_FILTER
- See Also:
-
JSON_PROPERTY_PROPERTY_WHITELIST
- See Also:
-
JSON_PROPERTY_REDUCE_AGGREGATIONS
- See Also:
-
JSON_PROPERTY_NO_AGGREGATIONS
- See Also:
-
JSON_PROPERTY_ONLY_AGGREGATIONS
- See Also:
-
JSON_PROPERTY_SEARCH
- See Also:
-
-
Constructor Details
-
SearchPageRequest
public SearchPageRequest()
-
-
Method Details
-
page
-
getPage
Search result page- Returns:
- page
-
setPage
-
limit
-
getLimit
Number of items per result page. If not set, the limit will be set according to the default products per page, defined in the system settings. minimum: 0- Returns:
- limit
-
setLimit
-
filter
-
addFilterItem
-
getFilter
List of filters to restrict the search result. For more information, see [Search Queries > Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#filter)- Returns:
- filter
-
setFilter
-
sort
-
addSortItem
-
getSort
Sorting in the search result.- Returns:
- sort
-
setSort
-
postFilter
-
addPostFilterItem
-
getPostFilter
Filters that applied without affecting aggregations. For more information, see [Search Queries > Post Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#post-filter)- Returns:
- postFilter
-
setPostFilter
-
associations
-
getAssociations
Used to fetch associations which are not fetched by default.- Returns:
- associations
-
setAssociations
-
aggregations
-
addAggregationsItem
-
getAggregations
Used to perform aggregations on the search result. For more information, see [Search Queries > Aggregations](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#aggregations)- Returns:
- aggregations
-
setAggregations
-
grouping
-
addGroupingItem
-
getGrouping
Perform groupings over certain fields- Returns:
- grouping
-
setGrouping
-
fields
-
addFieldsItem
-
getFields
Fields which should be returned in the search result.- Returns:
- fields
-
setFields
-
totalCountMode
-
getTotalCountMode
Whether the total for the total number of hits should be determined for the search query. none = disabled total count, exact = calculate exact total amount (slow), next-pages = calculate only for next page (fast)- Returns:
- totalCountMode
-
setTotalCountMode
-
order
-
getOrder
Specifies the sorting of the products by `availableSortings`. If not set, the default sorting will be set according to the shop settings. The available sorting options are sent within the response under the `availableSortings` key. In order to sort by a field, consider using the `sort` parameter from the listing criteria. Do not use both parameters together, as it might lead to unexpected results.- Returns:
- order
-
setOrder
-
p
-
getP
Search result page- Returns:
- p
-
setP
-
manufacturer
-
getManufacturer
Filter by manufacturers. List of manufacturer identifiers separated by a `|`.- Returns:
- manufacturer
-
setManufacturer
-
minPrice
-
getMinPrice
Filters by a minimum product price. Has to be lower than the `max-price` filter. minimum: 0- Returns:
- minPrice
-
setMinPrice
-
maxPrice
-
getMaxPrice
Filters by a maximum product price. Has to be higher than the `min-price` filter. minimum: 0- Returns:
- maxPrice
-
setMaxPrice
-
rating
-
getRating
Filter products with a minimum average rating.- Returns:
- rating
-
setRating
-
shippingFree
-
getShippingFree
Filters products that are marked as shipping-free.- Returns:
- shippingFree
-
setShippingFree
-
properties
-
getProperties
Filters products by their properties. List of property identifiers separated by a `|`.- Returns:
- properties
-
setProperties
-
manufacturerFilter
-
getManufacturerFilter
Enables/disabled filtering by manufacturer. If set to false, the `manufacturer` filter will be ignored. Also the `aggregations[manufacturer]` key will be removed from the response.- Returns:
- manufacturerFilter
-
setManufacturerFilter
-
priceFilter
-
getPriceFilter
Enables/disabled filtering by price. If set to false, the `min-price` and `max-price` filter will be ignored. Also the `aggregations[price]` key will be removed from the response.- Returns:
- priceFilter
-
setPriceFilter
-
ratingFilter
-
getRatingFilter
Enables/disabled filtering by rating. If set to false, the `rating` filter will be ignored. Also the `aggregations[rating]` key will be removed from the response.- Returns:
- ratingFilter
-
setRatingFilter
-
shippingFreeFilter
-
getShippingFreeFilter
Enables/disabled filtering by shipping-free products. If set to false, the `shipping-free` filter will be ignored. Also the `aggregations[shipping-free]` key will be removed from the response.- Returns:
- shippingFreeFilter
-
setShippingFreeFilter
-
propertyFilter
-
getPropertyFilter
Enables/disabled filtering by properties products. If set to false, the `properties` filter will be ignored. Also the `aggregations[properties]` key will be removed from the response.- Returns:
- propertyFilter
-
setPropertyFilter
-
propertyWhitelist
-
getPropertyWhitelist
A whitelist of property identifiers which can be used for filtering. List of property identifiers separated by a `|`. The `property-filter` must be `true`, otherwise the whitelist has no effect.- Returns:
- propertyWhitelist
-
setPropertyWhitelist
-
reduceAggregations
-
getReduceAggregations
By sending the parameter `reduce-aggregations` , the post-filters that were applied by the customer, are also applied to the aggregations. This has the consequence that only values are returned in the aggregations that would lead to further filter results. This parameter is a flag, the value has no effect.- Returns:
- reduceAggregations
-
getReduceAggregations_JsonNullable
-
setReduceAggregations_JsonNullable
public void setReduceAggregations_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> reduceAggregations) -
setReduceAggregations
-
noAggregations
-
getNoAggregations
Resets all aggregations in the criteria. This parameter is a flag, the value has no effect.- Returns:
- noAggregations
-
getNoAggregations_JsonNullable
-
setNoAggregations_JsonNullable
public void setNoAggregations_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> noAggregations) -
setNoAggregations
-
onlyAggregations
-
getOnlyAggregations
If this flag is set, no products are fetched. Sorting and associations are also ignored. This parameter is a flag, the value has no effect.- Returns:
- onlyAggregations
-
getOnlyAggregations_JsonNullable
-
setOnlyAggregations_JsonNullable
public void setOnlyAggregations_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> onlyAggregations) -
setOnlyAggregations
-
search
-
getSearch
Using the search parameter, the server performs a text search on all records based on their data model and weighting as defined in the entity definition using the SearchRanking flag.- Returns:
- search
-
setSearch
-
equals
-
hashCode
public int hashCode() -
toString
-