New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
returns nothing no mater what keyword #5
Comments
You should use after |
I figured it out! Thanks again!! |
@honmaple The index doesn't automatically update for me. I have a test which creates a new user and then searches for it: extra_user = User.create_from_credentials(**details)
db_instance.session.add(extra_user)
db_instance.session.commit()
assert User.query.msearch("name", ["username"]).all() It doesn't work. When I add |
@AdamGold |
@honmaple Will give it a shot. Another question - when I delete a row in the table with the db_instance.session.delete(flask_login.current_user) I get the following error:
|
@AdamGold |
Not getting results either. on route I have:
In terminal this yields:
Documentation has filter(...) on query object. How should I use it? Branch for reference: yomajo/Flask-Experiments@7b46868 |
@yomajo The default analyzer can't get keyword
You should use other analyzer or custom analyzer
|
Thanks for reply @honmaple! I'm new to full-text search space, so please be adaptive on my idiocy. If I understand correctly, analyzer returns tokens and if token (or their variable sum) is not a whole query, then search fails? Example in your last example, say query was
Then what added benefit is there over using: which is case insensitive search for substrings in Model column. Is it performance? Or am I misunderstanding tokenization on whoosh part? |
Hi, I just modified my code following the instruction of QuickStart and Config,
like this
However it returns nothing no mater what keywords
did I miss some other configurations?
actually, I know nothing about the role of
Create_index
Thanks a Lot For Your Help!!!
The text was updated successfully, but these errors were encountered: