Hi again, still trying to work with nested objects.
TLDR: We try to query using .with_where additional filter on nested object property, but apparently we don’t know how to address the nested prop properl.
Details:
Using:
- Weaviate 1.22.3,
- Python Weaviate Client 3.25.3
I have defined a nested object in Question schema:
"properties": [
{
"dataType": [
"object"
],
"description": "Property with persistent data, that need to be copied over to the new version of the page.",
"indexFilterable": True,
"indexSearchable": True,
"name": "persistent_data",
"nestedProperties": [
{
"name": "hidden",
"dataType": ["boolean"],
"description": "Should the page be hidden",
}
]
},
... rest of props
]
No I try to query for :
self._client.query.get(class_name, ["text", "summary", "persistent_data { hidden }", "questions"]).with_where(
{
"path": ["persistent_data", "hidden"],
"operator": "Equal",
"valueBoolean": False
}
)
I get following error:
[{'locations': [{'column': 6, 'line': 1}], 'message': "could not extract filters: invalid where filter: missing an argument after 'hidden'", 'path': ['Get', 'Page3']}]
I suppose the path
is not defined correctly. Any idea what do I miss?