Download OpenAPI specification:Download
ExpertRec search API can be used to integrate search into your blog, website, e-commerce store, mobile app, backend server, etc.
The API key is a unique identifier for a website/market place. It is generated during the search setup process. A sample API-key would look like- ccdb9cb6-5380-11e8-a8e3-12b6486824f4. It can be obtained in the ExpertRec control panel.
fq=brand:Google Pixel&fq=brand:OnePlus
these filter will restrict results to brand Google Pixel and OnePlus. Filter query can be applied to any field provided to the search index. {
brand:[
{"name":"Apple", "count":100, "selected":false},
{"name":"Google Pixel", "count":75, "selected":false},
{"name":"OnePlus","count":60, "selected":true}
]
}
Here brand field has three name which can be displayed to end user for selection. Currently selected sfacet for brand is "OnePlus" this can be identifyied by selected variable which is true for "OnePlus".
selected filter name must be sent in facet query parameter to filter the results e.g.
if user selects additional "Google Pixel", filter query for this selection will become fq=brand:OnePlus&fq=brand:Google Pixel
.
api_key required | string unique search index identifier e.g., ccdb9cb6-5380-11e8-a8e3-12b6486824f4 |
q required | string Search query |
size | string Default: "10" Number of results expected in a page |
page | string Default: "0" Requested page number for results |
fq | string Facet query
Restrict results to
where both field_name and field_value are url encoded |
nf | string Numeric facet query If facet is of numeric type (like a slider), results will be restricted between the min and max value specified.
min_value and max_value are optional. e.g.,
|