jessetilro / research

Web app for managing sources during a literature review.
3 stars 0 forks source link

Advanced search #28

Open 8uurg opened 7 years ago

8uurg commented 7 years ago

Search with boolean operators, or at least capable of searching through title, abstract, authors and so on.

Sunspot gem might help with this.

jessetilro commented 5 years ago

Ransack gem might also be of use

jessetilro commented 5 years ago

Recently improved searching to parse terms:

> parse_query('mode-adaptive "neural-networks" 2018')
['mode', 'adaptive', 'neural networks', '2018']

And construct boolean expressions of these terms for a complex PostgreSQL query.

https://github.com/jessetilro/research/commit/2daa94ffc6e5967a32afeb6c23df3d756d89cfe0

jessetilro commented 5 years ago

Elastic search offers fuzzy queries, might be interesting for the search bar, in addition to ransack: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html