SearchStax integration module
Search and discovery Incubator Version 1.0 Magnolia 6.2 compatible Git
The SearchStax integration module provides a ready to use integration for SearchStax.
| This module is at the INCUBATOR level. | 
Installing with Maven
Maven is the easiest way to install the module. Add the following to your bundle:
<dependency>
  <groupId>info.magnolia.search.stax</groupId>
  <artifactId>magnolia-search-stax-integration</artifactId>
  <version>1.0</version>
</dependency>Configuration
Define a yaml decoration in /magnolia-search-stax-integration/config.yaml.
#SEARCH API
selectEndpoint: '<to be defined through decoration>' (1)
#AUTO-SUGGEST API
autoSuggestEndpoint: '<to be defined through decoration>' (1)
#TOKENS
authorizationToken: '<to be defined through decoration>' (1)
#ANALYTICS TRACKING API
analyticsTrackingUrl: '<to be defined through decoration>' (1)
analyticsTrackingKey: '<to be defined through decoration>' (1)| 1 | You can find these credentials in the settings of your SearchStax app under search-apiandanalytics-api. | 
Usage
You get three predefined endpoints to interact with your SearchStax app. For more details, see the SearchStax docs.
Search API
Method: POST
URL: <baseUrl>/.rest/delivery/search-stax-search
| Parameter | Description | Default | 
|---|---|---|
| 
 | required search term | |
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | Faceting / Facet Selection | 
 | 
Auto-Suggest API
Method: POST
URL:  <baseUrl>/.rest/delivery/search-stax-suggest
| Parameter | Description | Default | 
|---|---|---|
| 
 | required search term for suggestion search | 
Search Analytics REST API
Method: POST
URL:  <baseUrl>/.rest/delivery/search-stax-analytics
| Parameter | Description | Default | ||
|---|---|---|---|---|
| 
 | required tracking object 
 |