hpi-sam / BP2018HG1

Bachelor Project Documentation
MIT License
0 stars 0 forks source link

Suggest Tags in Search #71

Open Askir opened 5 years ago

Askir commented 5 years ago

As a user I want to have existing tags suggested when I start typing into the searchbar In order to not have to guess with what my artifacts have been tagged

Elasticsearch provides a pretty useful API to implement search suggestions. We can use this feature to have the searchbar suggest auto completions when a user starts typing.

Acceptance Criteria

Askir commented 5 years ago

I'd be implementing this by also indexing all our tags into elasticsearch in addition to our artifacts.

We could also think about refactoring the search as a whole and have it not work via a simple string but instead an array of "search tags". Or even support a more fleshed out query with something like
{tags: ["xyz"], author: "Jascha", date: "dd/mm/yy"}

Askir commented 5 years ago

Checkout https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html to see how the search bar syntax could look like for an easy implementation.