Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 6.78 KB

ExperimentRequest.md

File metadata and controls

12 lines (9 loc) · 6.78 KB

# ExperimentRequest

Properties

Name Type Description Notes
custom_pipeline \Sajari\Model\Pipeline [optional]
pipeline \Sajari\Model\ExperimentRequestPipeline [optional]
promotions \Sajari\Model\Promotion[] The promotions to consider active when running the search. Provided promotions override existing promotions with the same ID. [optional]
variables map[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 { "q": "search terms" } ``` To paginate through results, set the variables `page` and `resultsPerPage`, for example: ```json { "q": "search terms", "page": 5, "resultsPerPage": 20 } ``` To sort results, set the variable `sort` to the name of one of your collection's schema fields, for example: ```json { "q": "search terms", "sort": "name" } ``` To sort in reverse, prefix the schema field with a minus sign `-`, for example: ```json { "q": "search terms", "sort": "-name" } ```

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