Search
Last updated
Last updated
Use the Search API to query the indexed products. The Search API is also used to apply any sorts or filters.
POST
https://api.neuralens.ai/search/query
Header | Value |
---|---|
Param | Value |
---|---|
Let's say partition
is enabled on field "continent", then when sending request for the continent "asia", partition will be asia
query
The search query text
offset, limit
For pagination. offset is the index at which the requested page starts, limit is the number of results required on the page
filters
Filters to be applied on the results
sorts
Sorts applied by the user, if there are are more than one sort, next sort will only be used in case of tiebreaker from previous ones
fields
Fields required in the search response
analytics
Metadat required for performance tuning and personalisation
qid
Unique id of the query
results
List of search results
filters
List of applicable filters, and their values. is_applied
tells whether the current filter is already applied.
sorts
List of applicable sorts, and their values. is_applied
tells whether the current sort is applied.
X-Neuralens-API-Key
Bearer YOUR_API_KEY_HERE
X-Neuralens-Application-ID
YOUR_APPLICATION_ID
partition
Partition field's value (required in case partitioning is done)