Closed erilyth closed 8 years ago
Thank you for the PR! There are a few changes I'd like to recommend, though:
I made the appropriate changes, the search now converts entire string to upper case and checks for matches, and on clearing the search bar all the stories appear.
This works great. One final thing, could you also add searching by tag-name (Like Python, Big data, etc.) functionality?
One way of implementing this would be to put all the tags in a dictionary with the IDs of the results in the corresponding value array to make the search faster.
var foo = { "python": [1,4,5], "big data":[1,5] } // and similarly for each tag
I added a tags associated array which would store data as you specified and then in the search I just check if the input's tag is present in any of the projects and I output them.
Looking good now. Merging.
Issue #19, added a simple search which will check if the query string if its a part of a name of a person or an organization and then select the corresponding entries.