public class SearchQuery extends Object implements BulkProductsQuery
ApiParameters.ApplyFiltersTo, ApiParameters.Availability, ApiParameters.PriceChange, ApiParameters.SelectOffersFrom, ApiParameters.SortBy| Constructor and Description |
|---|
SearchQuery() |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.http.NameValuePair> |
getParameters() |
SearchQuery |
withAlsoSoldAt(List<Integer> alsoSoldAt)
Combined with storeId, limits results to products sold at both storeIds and alsoSoldAt storeIds.
|
SearchQuery |
withApplyFilterTo(ApiParameters.ApplyFiltersTo applyFiltersTo)
Specify the stores for which the offer level filter apply.
|
SearchQuery |
withAvailability(ApiParameters.Availability availability)
Limits results to either in-stock or out-of-stock items.
|
SearchQuery |
withBrandId(List<Integer> brandId)
Limits results to products of brands with given ids.
|
SearchQuery |
withCategoryId(List<Integer> categoryId)
Limits results to products of categories with given id.
|
SearchQuery |
withCountryCode(String countryCode)
Limits results to products of the geography with this code.
|
SearchQuery |
withEndPrice(double endPrice)
Combined with start_price, limits results to products sold by at least one store at a price between start and end
|
SearchQuery |
withFacetBy(List<String> facetBy)
Facet by values - storeId, brandId, categoryId.
|
SearchQuery |
withLastRecordedIn(int lastRecordedIn)
Limits results to products which have price recorded in the last xx days.
|
SearchQuery |
withMpn(String mpn)
Limit results to products with this MPN
|
SearchQuery |
withOnPromotion(boolean onPromotion)
Limits results to products which are on Promotion.
|
SearchQuery |
withPageNumber(int pageNumber)
Specifies the page number of the result set to return.
|
SearchQuery |
withPageSize(int pageSize)
Specifies the number of results per page.
|
SearchQuery |
withPriceChange(ApiParameters.PriceChange priceChange)
Limits results to products whose prices have been increased or decreased.
|
SearchQuery |
withPriceHistoryAvailable(boolean priceHistoryAvailable)
Limits results to product that have price history available through the products/{:id}/prices endpoint.
|
SearchQuery |
withQ(String q)
Search products against the product search term
|
SearchQuery |
withSelectOffersFrom(ApiParameters.SelectOffersFrom selectOffersFrom)
Specify the stores for which offers will be returned in the response.
|
SearchQuery |
withSku(String sku)
Limit results to products with this SKU
|
SearchQuery |
withSortBy(ApiParameters.SortBy sortBy)
Specifies the sorting strategy of the results
|
SearchQuery |
withStartPrice(double startPrice)
Combined with end_price, limits results to products sold by at least one store at a price between start and end
|
SearchQuery |
withStoreId(List<Integer> storeId)
Limits results to products sold at stores with given ids.
|
SearchQuery |
withStoresCount(int storesCount)
Limits results to products with at least a certain number of stores
|
SearchQuery |
withUpc(String upc)
Limit results to products with this UPC
|
SearchQuery |
withUrl(String url)
Search by product URL
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterspublic SearchQuery withStoreId(List<Integer> storeId)
withStoreId in interface BulkProductsQuerystoreId - The list of storeIdspublic SearchQuery withAlsoSoldAt(List<Integer> alsoSoldAt)
withAlsoSoldAt in interface BulkProductsQueryalsoSoldAt - The list of storeIdspublic SearchQuery withBrandId(List<Integer> brandId)
withBrandId in interface BulkProductsQuerybrandId - The list of brandIdspublic SearchQuery withCategoryId(List<Integer> categoryId)
withCategoryId in interface BulkProductsQuerycategoryId - The list of categoryIdspublic SearchQuery withStartPrice(double startPrice)
withStartPrice in interface BulkProductsQuerypublic SearchQuery withEndPrice(double endPrice)
withEndPrice in interface BulkProductsQuerypublic SearchQuery withAvailability(ApiParameters.Availability availability)
withAvailability in interface BulkProductsQueryavailability - ApiParameters.Availabilitypublic SearchQuery withPriceHistoryAvailable(boolean priceHistoryAvailable)
withPriceHistoryAvailable in interface BulkProductsQuerypublic SearchQuery withOnPromotion(boolean onPromotion)
withOnPromotion in interface BulkProductsQuerypublic SearchQuery withLastRecordedIn(int lastRecordedIn)
withLastRecordedIn in interface BulkProductsQuerypublic SearchQuery withStoresCount(int storesCount)
withStoresCount in interface BulkProductsQuerypublic SearchQuery withPriceChange(ApiParameters.PriceChange priceChange)
withPriceChange in interface BulkProductsQuerypriceChange - ApiParameters.PriceChangepublic SearchQuery withApplyFilterTo(ApiParameters.ApplyFiltersTo applyFiltersTo)
withApplyFilterTo in interface BulkProductsQueryapplyFiltersTo - ApiParameters.ApplyFiltersTopublic SearchQuery withSelectOffersFrom(ApiParameters.SelectOffersFrom selectOffersFrom)
withSelectOffersFrom in interface BulkProductsQueryselectOffersFrom - ApiParameters.SelectOffersFrompublic SearchQuery withCountryCode(String countryCode)
withCountryCode in interface BulkProductsQuerycountryCode - String value specifying countrycodepublic SearchQuery withUrl(String url)
public SearchQuery withUpc(String upc)
public SearchQuery withMpn(String mpn)
public SearchQuery withSku(String sku)
public SearchQuery withQ(String q)
public SearchQuery withSortBy(ApiParameters.SortBy sortBy)
sortBy - - ApiParameters.SortBypublic SearchQuery withFacetBy(List<String> facetBy)
public SearchQuery withPageNumber(int pageNumber)
public SearchQuery withPageSize(int pageSize)
public List<org.apache.http.NameValuePair> getParameters()
getParameters in interface QueryCopyright © 2017. All rights reserved.