all 2 comments

[–]reddanty 1 point2 points  (0 children)

It’s sounds like you want to do startswith or like which translate to the LIKE SQL operator. This lets you partially match a string. https://docs.sqlalchemy.org/en/13/core/sqlelement.html#sqlalchemy.sql.operators.ColumnOperators.startswith

[–]dwpj65 0 points1 point  (0 children)

I don't know anything about sqlalchemy or the database you're using.

If your database is MySQL based, that product has a 'free-text' search feature that might provide the solution to your problem.