Vectorizer
A brief description of the vectorizer feature
Vectorizer
Configure vectorizer under Index -> Vectorizer
Index
Use vectorizer configured in prior step for field of type string or inside child field of type nested
Note:
For opensearch a setting in the raw tab need to be set:
{
"instances": [
{
"type": "elastic_aws_7",
"state": "active"
}
]
}
Search
- Configure field in Search -> Searching. Use "dot" notation for nested fields e.g.
snippets.text - If custom profile, make sure that the placeholders
$qsfql.search,$qsfql.searchVectors,$qsfql.nestedFieldsare set - Under
VariablesthevectorizerMinTokenscan be set, to activate the vectorizer only at specific query length. Default value is3 - Under
Rawtab the vectorizer can be enabled/ disabled per field like follows:
{
"searchFieldConfigs": [
{
"source": "",
"name": "title",
"display": true,
"search": false,
"suggest": false,
"suggestPhrase": false,
"stemmed": false,
"exact": false,
"fuzzy": false,
"facet": false,
"ranking": 20,
"vectorize": true
},
{
"source": "",
"name": "snippets.text",
"display": true,
"search": true,
"suggest": false,
"suggestPhrase": false,
"stemmed": false,
"exact": false,
"fuzzy": false,
"facet": false,
"ranking": 0,
"lengthPunctuation": "",
"vectorize": true
}
]
}
Verify
The function of the vectorizer can be verified via explain=true search flag.
Visit Explain documentation for detailed documentation.