title: SQLAlchemy search using .contains() is too sensitive
body: <p>I have a Flask application that has a search bar where users can search a database for users. This is the code:</p>
  
  <pre><code>users = []
  for keyword in query.split():
    result = db.session.query(Users).filter(User.name.contains(keyword)).all()
    for user in result:
      users.append(user.name)
  </code></pre>
  
  <p>Using the example above, if I was to search for 'a' then every user with the letter 'a' in their name will appear. How can I search the User table so that instead of searching by letter, it would search by word? Thanks.</p>