You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is very old now but I was facing the same problem and found the cause of the issue in my case.
The reindex method updates the index for the models that have been registered, this means that whooshee.reindex() needs to be called after any models have been registered. For me, I am defining my models in a separate file so my __init__.py file needed to look something like this:
app = Flask(__name__)
whooshee = Whooshee(app)
from app import models
with app.app_context():
whooshee.reindex()
@bkabrda Hi , I'm adding whooshee to an existing application. I tried calling
whooshee.reindex()
, but it returns empty data .Here's my route
Here's what the SQL prints out to ( only the last part )
The text was updated successfully, but these errors were encountered: