adamreichold / umwelt-info

umwelt.info metadata index
https://umwelt.info
GNU Affero General Public License v3.0
1 stars 0 forks source link

Add faceted search for license and source #66

Closed adamreichold closed 2 years ago

adamreichold commented 2 years ago

The source field is not really amenable for faceted search directly, so I introduced an additional "provenance" field which can be used to hierarchically model where our data is coming from.

Closes #61

adamreichold commented 2 years ago

The string interning is probably premature optimization, but we have string_cache in our dependency closure anyway (via scraper) and it integrates nicely with serde, so why not use it.

adamreichold commented 2 years ago

So this provides a simple faceted search for the (open) licenses, i.e. results include license count:

grafik

Clicking one of the license facets will append the corresponding term to the query and resubmit the form to update the search results:

grafik

adamreichold commented 2 years ago

Just another pair of screenshots of how this works now.

The initial search UI

grafik

and after clicking first "/open" and then "/open/dl-de"

grafik