DOI-ONRR / doi-extractives-data

Information on the extractive industries in the U.S. from federal data.
https://revenuedata.doi.gov/
Other
77 stars 41 forks source link

Create new search index #2193

Closed gemfarmer closed 7 years ago

gemfarmer commented 7 years ago

The search in the search bar should search the site as well as external resources that we curate.

Our search is currently via 18F/Beckley, which works well, but experiences a non-trivial number of service outages.

To fix this, we can replace Beckley with the jekyll_pages_api_search gem, which automatically generates a search index for our jekyll site. AND we can do this without removing our current functionality!

The search gem uses http://lunrjs.com/ under the hood to create an index that we can add() our existing curated list of external resources to.

Steps to make this happen:

gemfarmer commented 7 years ago

So, after digging into this a bit more, it looks like we won't be able to integrate the index created by the jekyll_pages_api_search gem without editing that repo. We can do that, but I wonder if it would faster and maybe better to separate the two searches. One list for internal "hits", another for external resources??

Thoughts @meiqimichelle ?

meiqimichelle commented 7 years ago

Let's talk! Might grab @ericronne 's brain to think about what that might look like, if he has time.

gemfarmer commented 7 years ago

I think this is done with #2195?! @meiqimichelle