Skip to main content

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"
}
]
}
  1. Configure field in Search -> Searching. Use "dot" notation for nested fields e.g. snippets.text
  2. If custom profile, make sure that the placeholders $qsfql.search, $qsfql.searchVectors, $qsfql.nestedFields are set
  3. Under Variables the vectorizerMinTokens can be set, to activate the vectorizer only at specific query length. Default value is 3
  4. Under Raw tab 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.