Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 1.62 KB

QueryCollectionRequest.md

File metadata and controls

13 lines (9 loc) · 1.62 KB

Com.Sajari.Sdk.Model.QueryCollectionRequest

A request to perform a search using a pipeline.

Properties

Name Type Description Notes
Pipeline QueryCollectionRequestPipeline [optional]
Tracking QueryCollectionRequestTracking [optional]
Variables Dictionary<string, Object> The initial values for the variables the pipeline operates on and transforms throughout its steps. The most important variable is `q` which is the query the user entered, for example: ```json { &quot;q&quot;: &quot;search terms&quot; } ``` To paginate through results, set the variables `page` and `resultsPerPage`, for example: ```json { &quot;q&quot;: &quot;search terms&quot;, &quot;page&quot;: 5, &quot;resultsPerPage&quot;: 20 } ``` To sort results, set the variable `sort` to the name of one of your collection's schema fields, for example: ```json { &quot;q&quot;: &quot;search terms&quot;, &quot;sort&quot;: &quot;name&quot; } ``` To sort in reverse, prefix the schema field with a minus sign `-`, for example: ```json { &quot;q&quot;: &quot;search terms&quot;, &quot;sort&quot;: &quot;-name&quot; } ```

[Back to Model list] [Back to API list] [Back to README]