| | | | |
---|
ClientGuid | string | required | API Client Guid | Tracking Key found in Admin > Account Info |
Keyword | string | optional | Search term entered by a user. If keyword is not included, all items configured to be returned will be returned. When this parameter is populated, the results will be matched against this term by the search engine. | Entered by the user. |
IndexName | string | optional | The name of the index against which the search must be performed | When the index was created, the IndexName was returned in the response from the Create method or the GetCurrentIndex method. This is also available on the Preview tab in dashboard. |
CustomUrl | string | optional | Landing page Custom URL. When this parameter is populated, the resulting response will be determined by the configuration of the corresponding Landing Page. | This matches the Custom URL field within a Landing Page. Can be found Workbench > Merchandising > Landing Pages Keyword and CustomURL should never be passed in the same request. |
PageNo | number | optional | Page number of results to return. If no PageNo value is sent, the default is that the first page of results will be returned. Reporting is impacted by sending the PageNo parameter, so it should not be passed for the first page unless the user is navigating back to the first page after visiting another page of results. | Valid values are configured in Workbench > Data Configuration > Sorting/Pagination |
MaxPerPage | number | optional | Maximum number of items to be returned on a page. This value needs to be one of the values configured within the Sorting/Pagination section of the Workbench. If no MaxPerPage value is sent, the default value from the Workbench will be used. The default can vary depending on the pagination set triggered. Entering 0 in the request will return only facets, no documents. See example | Valid values are configured in Workbench > Data Configuration > Sorting/Pagination |
SortBy | string | optional | The SortBy value corresponds with the Sorting configuration in the Hawksearch Workbench. This value needs to be one of the values configured within the Sorting/Pagination section of the Workbench. If no SortBy value is sent, the default value from the Workbench will be used. The default can vary depending on the sorting set triggered. | Valid values are configured in Workbench > Data Configuration > Sorting/Pagination |
SortingSetCode | string | optional | SortingSetCode can be used to specify a particular sorting set that should be used for the results. If not passed, the engine will evaluate the rules for each sorting set and pick the first applicable one. | Valid values are configured in Workbench > Data Configuration > Sorting/Pagination > Sorting Code |
PaginationSetCode | string | optional | PaginationSetCode can be used to specify a particular pagination set that should be used for the results. If not passed, the engine will evaluate the rules for each pagination set and pick the first applicable one. | Valid values are configured in Workbench > Data Configuration > Sorting/Pagination > Pagination Code |
SearchWithin | string | optional | SearchWithin should be populated if the user has applied a Search Within filter to the results. This functionality needs to be configured in the Hawksearch Workbench in order for it to work. | Workbench > Data Configuration > Facets |
FacetSelections | Dictionary <string, object[]> | optional | This is the dictionary of key-value pairs where the key is the name of the facet. The value is the array of values for the selection. | The names and values of facets can be taken from the response from a previous calling of the search method. The name can be found in value of the Field object, unless ParamName is set, then use ParamName. The value can be found in the value of the Value object (within the Values object). Examples can be seen in Example 1.2 below. |
FacetOverride | string array | optional | An array of facet names that should be returned in the response. If provided, only the facets listed will be returned. If no FacetOverride value is sent, the Workbench configuration will be used to determine and send appropriate facets based on the result set. If there is a Display Rules on facets will still be evaluated for facets set in FacetOverride. This means that the facet will not be returned, even if set in FacetOverride, if the Display Rule condition is not met. The Is Visible flag on facets will be honored even if the facet is set in the FacetOverride. This means that a facet set to not be visible will not be returned, even if set in FacetOverride. Passing an empty object will return no facets. See example | There are two places that can impact which facets are configured to be returned Workbench > Data Configuration > Facets > Editing a facet > Display Rule Workbench > Merchandising > Landing Page > Editing a page > Facet Configuration
|
FieldOverride | string array | optional | An array of field names that will be returned in the response. If provided, only the fields listed will be returned. If no FieldOverride value is sent, the Workbench configuration will be used. If the Skip from Custom flag is turned “on” for a field, it will not be returned in the response, even if set in the FieldOverride parameter. | Fields will not be returned unless the flag is set at the field level: Workbench > Data Configuration > Fields > Edit a field > Include in results = On |
ClientData | ClientData Object | optional | See Client Data Object section. |
|
IsInPreview | Boolean | optional | This is used by the Hawksearch Preview to set to true will display elements in a preview mode. | You can use this if you desire additional score information returned. |
ExplainDocId | String | optional | This is used by the Hawksearch Preview to display the advanced explanation of an item’s score calculation. | You can use this if you desire additional score information returned. |
SmartBar | Array of objects | optional | These are options that can be set by the user in the SmartBar. You can use this if you desire additional score information returned. |
|
>BoostAndBury | Boolean | optional | This is used to enable or disable Boost and Bury Rules. | Workbench > Merchandising > Boost & Bury Rules |
>VisibilityRules | Boolean | optional | This is used to enable or disable Visibility Rules. | Workbench > Merchandising > Visibility Rules |
>PersonalizedBoost | Boolean | optional | This is used to enable or disable the boost for Recommended Items. | Workbench > Edit Boost for Recommended Items |
>PopularityBoost | Boolean | optional | This is used to enable or disable the boost for Learning Search Multiplier. | Workbench > Edit Learning Search Multiplier |
>ItemPin | Boolean | optional | This is used to enable or disable Pinning Rules. | Workbench > Merchandising > Item Pinning |
>PopularitySalesBoost | Boolean | optional | This is used to enable or disable the boost for Orders Multiplier | Workbench > Keyword Search > AI Based Multipliers > Order Multiplier |
>PopularityAdd2CartBoost | Boolean | optional | This is used to enable or disable the boost for Add2Carts Multiplier | Workbench > Keyword Search > AI Based Multipliers > Add2Carts Multiplier |
Is100CoverageTurnedOn | Boolean | optional | If all of the records in a result set have the same value(s) in a facet, the facet does not provide value to the user. To flag such facets as not visible, set this flag to "true." |
|
Query | String | optional | Use this to perform searches on one or more specific fields without needing to create facets for them. | For examples, see Field-specific Search |
BoostQueries | Array | optional | Collection of boosting objects | For examples, see Dynamic Query Boost Search |
>query | Alphanumeric string | optional | The field(s) and value(s) to be searched for | |
>boost | Integer | optional | The boost value for the particular filter provided by the query parameter | |
Variant | Object | optional | See Variant Object Section | Hawksearch 4.0 Variants |