litestar-org/advanced-alchemy

Docs: SearchFilter

Closed this issue · 1 comments

Summary

I don't understand the docs of SearchFilter anymore

The docstring says

Data required to construct a WHERE field_name LIKE '%' || :value || '%' clause.

And then

field_name: [str](https://docs.python.org/3/library/stdtypes.html#str) | [set](https://docs.python.org/3/library/stdtypes.html#set)[[str](https://docs.python.org/3/library/stdtypes.html#str)]

    Name of the model attribute to search on.

value: [str](https://docs.python.org/3/library/stdtypes.html#str)

    Values for NOT LIKE clause.

Where is the NOT LIKE clause?

Thanks for reporting this. This is a typo.

value is the search string to search for.

For "not like" searches, use the NotInSearchFilter class.

Closed by #264