Configure how the Experience Optimization cmdlets connect to Elasticsearch. Changing these settings is necessary if your implementation does not match the default settings in which cmdlets connect anonymously to localhost on port 9200 (without SSL).
The following table describes the cmdlets for viewing and managing cmdlet settings.
| Cmdlet | Function |
|---|
| Get-XoSettings | Return the current settings for the cmdlet, such as connection settings for Elasticsearch |
| Set-XoSettings | Change Experience Optimization settings for connecting to Elasticsearch Parameters:
-
ElasticsearchUrl
-
The URL to the Elasticsearch instance to which you wish to connect
-
Default value:
http://localhost:9200/
-
IndexPrefix
-
The prefix used for all of the Experience Optimization indices
For example, a prefix of 'staging-' means that the xo-triggertypes index is actually called staging-xo-triggertypes.
Set the Index prefix to the same value that was used for the index-common-name-prefix (when installing the Elasticsearch indices).
-
Default: no prefixes
-
Credential
-
The username and password to use when connecting to Elasticsearch
You only need to set this parameter if you have enabled security on your Elasticsearch instance (such as when using the X-Pack plugin.
|
Tip: Use Powershell help command an get more information on a specific parameter. You can use the -Detailed parameter to include examples, syntax and supported parameters, or the -Examples parameter to display only the examples.
Example: help Set-XoSettings -Detailed