Arcana / dotabank-web

dotabank.com
8 stars 6 forks source link

Improve search #19

Open rjackson opened 10 years ago

rjackson commented 10 years ago

Looking through the logs, there are a lot of failed searches with queries such as Match 123456 (this we should handle; can just extract numbers via regex to check for a match).

It seems a few people also use the search bar for searching tournament names, team names, and occasionally hero names. We have all of that data in the database (barring hero names, but that should be easy enough to do).

We should make all of that work some time.

rjackson commented 10 years ago

On this note: move search logic out of view and into Search model, so we can easily replay searches (en masse, if required).

rjackson commented 10 years ago

https://pypi.python.org/pypi/Flask-WhooshAlchemy

WHOOOOOOOSH

look scool