mammaldiversity / mammaldiversity.github.io

(work in progress) Mammal Diversity Database website
MIT License
5 stars 9 forks source link

Improve search functions on MDD species pages #21

Open n8upham opened 1 year ago

n8upham commented 1 year ago

@jhpoelen can you think of ways in which we could improve our current filter-based search at mammaldiversity.org? I've been discussing with @liphardt but no easy solutions emerged

Some fields of the JSON endpoint we'd like to be able to search include:

jhpoelen commented 1 year ago

One way to help support this search functionality is to pre-render json files( using some jekyll template) that are organized by key-value - where key is the search term and value is a list of search results (or ids that point to same result).

Each of the search terms would have their own dedicated json file e.g., index-country.json, index-status.json, index-common-names.json

Then, in the search tool, the various indexes can be used to help narrow down the search results given the user's interest.

Curious to hear your thoughts!

jhpoelen commented 7 months ago

related to #44