The best video tutorial that describe whoosh_search on the whole internet, i did exact the same steps but with a few changes and every thing works just great ;), thanks dude .
Hey, I did exactly as instructed, but got an error when I imported flask_whooshalchemy, on searching on google it seems that it has been deprecated : ModuleNotFoundError: No module named 'flask.ext'
How do you index child items from foreign key related tables? e.g. If you had one table listing 'movies', and a child table with 'movie_categories', how do you index the categories into the same index as movies so that users can search by category?
Hello Sir, I am not sure; why I am getting this error. wa.whoosh_index(app,Course) AttributeError: module 'flask_whooshalchemy' has no attribute 'whoosh_index'
Thanks for the tutorial! Sadly, I get an error ModuleNotFoundError: No module named 'flask.ext' when I try to import flask sqlalchemy (tried from flask_sqlalchemy import SQLAlchemy and from flask.ext.sqlalchemy import SQLAlchemy), python version 3.9
Hi Mr Anthony Firstly thank you very much for all this videos, actually I have benefited Them, but i have a question : is woosh professionnal to use it in our application !! or not ?
Can I deploy whoosh_search to existing database? I see you added data after applying whoosh, so whoosh knows what is being added into your database. What if I already have data?
You can, but you'll have to make sure the data gets indexed: Try this StackOverflow answer: stackoverflow.com/questions/23472161/how-flask-whooshalchemy-index-data-imported-manually
AttributeError: 'BaseQuery' object has no attribute 'whoosh_search'......i was googling on this topic but unable to find anything that can solve my issue.Please help Anthony
Hi, thank you for the video! Unfortunately I'm having a problem committing to the database. I get this error: sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) can't adapt type 'builtin_function_or_method' [SQL: 'INSERT INTO "Test" (id, name) VALUES (%(id)s, %(name)s)'] [parameters: {'id': , 'name': 'Nestor'}] There's seems to be something wrong with my "id" variable, and I don't quite understand where the type "builtin_function_or_method" is coming from. I read somewhere that flask_whooshalchemy wasn't completely compatible with Python3 (which is what I am using) at some point. Could this be the issue? Note: my model is named Test and only has two variables, id and name. Also it is only searchable by name. Everything else is pretty much the same as your example. Oh and my whoosh folder is named "whoosh_indexes" and not "whoosh", it seems like it was created on its own after installing the extension.
@@vatsalaykhobragade I'm not sure what's going on then. When I get a chance I'll have to try using flask_whooshalchemy again. It's been a couple of years since I last used it.
It seems like the package has some bits left with syntax from python2 (specifically unicode and iteritems), after correcting that the search works. but it bit pain in deployment. Do you know any workaround on this?
Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql
You have the best Flask videos! I have taken advantage of your free videos for about a year. You are amazing!! Greetings from Cartagena, Colombia.
The best video tutorial that describe whoosh_search on the whole internet, i did exact the same steps but with a few changes and every thing works just great ;), thanks dude .
I'm glad it worked for you!
Thank you for this great tutorial. You made it soo easy to understand.
You're welcome! Thanks for watching.
Hey, I did exactly as instructed, but got an error when I imported flask_whooshalchemy, on searching on google it seems that it has been deprecated :
ModuleNotFoundError: No module named 'flask.ext'
I have to make an updated video for this because of changes to the library.
I NEED A BLOG WHERE I CAN SEARCH THE LIST OF STUDENTS AND CAN SEE THEIR WORK OR PROJECTS OR ANY FILE THEY HAD UPLOADED PLZ HELP
How are u able to use phpMyAdmin to view the model tables?
Sir what is the process of doing it in sqlite database
How do you index child items from foreign key related tables? e.g. If you had one table listing 'movies', and a child table with 'movie_categories', how do you index the categories into the same index as movies so that users can search by category?
Hello Sir,
I am not sure; why I am getting this error.
wa.whoosh_index(app,Course)
AttributeError: module 'flask_whooshalchemy' has no attribute 'whoosh_index'
This don't work on Python 3. No .search_index, no update search request. Where new video with update info?
For those who are using python three use flask_whooshalchemyplus
Hello from 2022. Flask_whooshalchemy is no longer supported and does not work with python 3.0+.
It's just me Anthony or your voice changes from video to video? haha nice videos though. Very helpfull
Different microphones! Thanks for watching enough of my videos to hear the difference.
please help me with solving this error AttributeError: module 'flask_whooshalchemy' has no attribute 'whoosh_index'
Thanks for the tutorial! Sadly, I get an error ModuleNotFoundError: No module named 'flask.ext' when I try to import flask sqlalchemy (tried from flask_sqlalchemy import SQLAlchemy and from flask.ext.sqlalchemy import SQLAlchemy), python version 3.9
What db are you using,,, flask.ext doesn't work for all lib....you need to understand how your db works..
Quite helpful
Hi Mr Anthony
Firstly thank you very much for all this videos, actually I have benefited Them, but i have a question : is woosh professionnal to use it in our application !! or not ?
If it fits your use case and you're comfortable with it, then it is professional enough.
Can I deploy whoosh_search to existing database? I see you added data after applying whoosh, so whoosh knows what is being added into your database. What if I already have data?
You can, but you'll have to make sure the data gets indexed:
Try this StackOverflow answer: stackoverflow.com/questions/23472161/how-flask-whooshalchemy-index-data-imported-manually
Hi , Awesome video. Is there a way to search multiple key word from a single query?
Multiple keywords should work. Have you run into a specific problem?
This library is over
.
Source:
github.com/gyllstromk/Flask-WhooshAlchemy/issues/69
Alternative Library
:
github.com/honmaple/flask-msearch
is there any other library?
AttributeError: 'BaseQuery' object has no attribute 'whoosh_search'......i was googling on this topic but unable to find anything that can solve my issue.Please help Anthony
Did you add the whoosh index?
@@prettyprinted oh no!.But how to add that anthony?. Please help
It's in the video.
Hi, thank you for the video! Unfortunately I'm having a problem committing to the database. I get this error:
sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) can't adapt type 'builtin_function_or_method' [SQL: 'INSERT INTO "Test" (id, name) VALUES (%(id)s, %(name)s)'] [parameters: {'id': , 'name': 'Nestor'}]
There's seems to be something wrong with my "id" variable, and I don't quite understand where the type "builtin_function_or_method" is coming from. I read somewhere that flask_whooshalchemy wasn't completely compatible with Python3 (which is what I am using) at some point. Could this be the issue?
Note: my model is named Test and only has two variables, id and name. Also it is only searchable by name. Everything else is pretty much the same as your example. Oh and my whoosh folder is named "whoosh_indexes" and not "whoosh", it seems like it was created on its own after installing the extension.
Can I see your code?
Do you know if exist a alternative to Python 3, I read some blog posts about Whoosh and perhaps doesn't work. Thanks a lot your videos are very nice.
I'd have to do some research to find an alternative.
Good video, but Flask-Whooshalchemy only works with Python 2.7, which is something you should have really stated from the beginning.
Try this version of it: github.com/blakev/Flask-WhooshAlchemy3
Flask-WhooshAlchemy works for python3👍
@@prettyprinted thank you
flask-msearch
Is this still available for flask? I'm getting import error and if so what's another alternative?
There have been issues with the library. I plan to look into it to see if it can be fixed.
@@prettyprinted Thank you for replying. However I've found Fork for it in Flask mega tutorial. Thanks though
hey, i get this error when i run my app: ModuleNotFoundError: '' no module named flask.ext '' Please help !!
What line of code does the error occur on?
@@prettyprinted import flask_whooshalchemy as wa
@@vatsalaykhobragade I'm not sure what's going on then. When I get a chance I'll have to try using flask_whooshalchemy again. It's been a couple of years since I last used it.
@@prettyprinted Ok. make a video on flask whooshalchemy as soon as possible (:
@@vatsalaykhobragade Seems to be a problem with python 3.
this isn't working anymore
Bro please do search with elasticsearch! :)
I'll definitely cover that eventually.
please give us the code .
how to use with python3.6
It should be the same as it is here. Are you running into any particular issues?
i got issue AttributeError: 'BaseQuery' object has no attribute 'whoosh_search'
I use sqlite as database
Send your code to anthony@prettyprinted.com I can help you more over email.
It seems like the package has some bits left with syntax from python2 (specifically unicode and iteritems), after correcting that the search works. but it bit pain in deployment.
Do you know any workaround on this?