Skip to content

Empty strings shouldn't be indexed #96

@mlissner

Description

@mlissner

If you create an object with attributes that are empty strings, they'll get indexed.

So:

item.attribute = ''

Will result in an item in your index with attribute = ''.

This is very easy to fix since there's already a check to make sure that attributes aren't None. All that needs to happen is for the line to also say, and a != ''.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions