Skip to content

IsNull filtering not working (IndexNullState is true) #284

@mbretter

Description

@mbretter

Hi,

I am trying to filter for "IsNull" on a nullable string field.
IndexNullState is set to true.

        {
            "name": "parentProductId",
            "dataType": [
                "text"
            ],
            "indexFilterable": true,
            "indexSearchable": true,
            "indexRangeFilters": false,
            "tokenization": "field"
        },

according to the docs (and the chatbot) the statement looks like this:

filters.Where().WithPath([]string{"parentProductId"}).WithOperator(filters.Equal).WithValueBoolean(true)

causing this error:
invalid 'where' filter: data type filter cannot use \"valueBoolean\" on type \"text\", use \"valueText\" instead

I have no idea how-to filter for null values, any help is highly appreciated

weaviate: 1.32.2

cheers,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions