Description
Getting “nested query: nested clause at pos 1: invalid search term, only stopwords provided. Stopwords can be configured in class.invertedIndexConfig.stopwords” when conditional filter has an input of single or double quotes
Server Setup Information
- Weaviate Server Version: 1.23.7
- Deployment Method: docker
- Multi Node? Number of Running Nodes: 1
- Client Language and Version:
- Multitenancy?: No
Any additional Information
Basically, we have this one free text input → “skills” which uses containsAny operator filter and since its free text, users can input whatever they can, however we noticed that if users tried to enter single (') or double quotes (") then the vector database gives us the error mentioned above.
We’re seeing one quick solution is to add the single and double quotes to the stopwords → additions, however, can you give me a sample REST/CURL command to achieve this where I just need to modify invertedIndexConfig at runtime without the need to recreate the collection, else if not possible, then do we have a better solution for it?
Please see below sample schema snippet of class Profile:
"class": "Profile",
"vectorizer": "text2vec-transformers",
"invertedIndexConfig": {
"indexNullState": true,
"indexTimestamps": true,
"stopwords": {
"preset": "en",
"additions": null,
"removals": ["it"]
}
},
"properties": [
...
... REMOVED FOR BREVITY
{
"name": "skills",
"description": "Profile tags to showcase their skills, tech tools, etc.",
"dataType": [
"text[]"
],
"moduleConfig": {
"text2vec-transformers": {
"skip": false,
"vectorizePropertyName": false
}
}
}
},