Implement searching all attributes of all tables
vishnut opened this issue · comments
Try Whoosh
- The search must search every attribute of every model
- The result of a search must be a list of links to crises and/or organizations and/or people (e.g. like Google).
- The results must be contextualized and the search terms must show up and be highlighted.
- The results must be clickable.
- The results must be dense with at least 10 results per page.
- The results must be paginated if there are more than 10 results.
- Multi-word search must show clearly marked and results followed by or results.
- All models must be searchable
- Improve pagination, currently going to next pages goes to defaults to people
Edited flask_whooshalchemyplus.py to match terms
Whoosh has permissions issues
Also, http://whoosh.readthedocs.io/en/latest/searching.html#results-object
Add tabs for other models, separate and from or results, card click-able,
'OR' does not play well with 'LIKE' searches 😩 💯 👌 🔥