Skip to content
Last update: February 1, 2024

Configuration

This section explains the basic configuration for the indexed search logic via the appsettings.json file.

Node Default or sample value Description
Provider "Lucene" This required setting specifies the current search provider. The supported values are Lucene, AzureSearch, and ElasticSearch.
Scope "default" This setting determines the scope to use and is required.
Lucene Lucene provider configuration for the VirtoCommerce.LuceneSearch module.
Used when the Provider setting has the Lucene value.
AzureSearch AzureSearch provider configuration for the VirtoCommerce.AzureSearch module.
Used when the Provider setting has the AzureSearch value.
ElasticSearch Elasticsearch provider configuration for the VirtoCommerce.ElasticSearch module.
Used when the Provider setting has the ElasticSearch value.
OrderFullTextSearchEnabled true
false
This boolean setting enables full-text search for orders.
If true (by default), full-text search for orders is enabled,
and it allows searching for orders based on their content.
ContentFullTextSearchEnabled true
false
This boolean setting enables full-text search for content.
If true (by default), full-text search for content is enabled,
and it allows searching for content items based on their textual content.

Examples

appsettings.json
"Lucene": {
"Path": "App_Data/Lucene"
} 
appsettings.json
"AzureSearch": {
"SearchServiceName": "my-ServiceName",
"Key": "my-AccessKey"
} 
appsettings.json
"ElasticSearch": {
"Server": "localhost:9200",
"User": "elastic",
"Key": "",
"EnableHttpCompression": ""
<!-- For ES 8.0 and higher must be set to True -->
"EnableCompatibilityMode": true 
}