You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two string fields that are part of my filter_by query: first_data and second_data. Either of these fields can have a value or none of them. Their values are set by encoding a Python dictionary to a json string e.g
schema_fields = [
{
"name": "first_data", "type": "string",
},
{
"name": "second_data", "type": "string"
},
{
"name": "some_field", "type": "string[]"
}
]
# Note that I am only checking for emptiness in both fields. There is probably a better approach for this by I wonder this doesn't work
{
"q": "*",
"filter_by": "first_data:!={} && second_data:!={} && some_field:=[A,B]"
}
Expected Behavior
I expect to only see results that either first_data or second_data have a value
Actual Behavior
I see results have both first_data and second_data equal to {}
Metadata
Typesense Version: 0.15.0
OS: Ubuntu 22.04.2 LTS
The text was updated successfully, but these errors were encountered:
Description
I have two string fields that are part of my filter_by query:
first_data
andsecond_data
. Either of these fields can have a value or none of them. Their values are set by encoding a Python dictionary to a json string e.gSteps to reproduce
Expected Behavior
I expect to only see results that either first_data or second_data have a value
Actual Behavior
I see results have both first_data and second_data equal to {}
Metadata
Typesense Version: 0.15.0
OS: Ubuntu 22.04.2 LTS
The text was updated successfully, but these errors were encountered: