Skip to content

meta: Replace lunr (middleman-search) with DocSearch #691

@tnir

Description

@tnir

Problems

The Bundler.io Website team needs to maintain our own search.js and search_arrow.js by themselves with that abandoned middleman-search (for example manastech/middleman-search#38) and its dependency of the legacy version lunr.js.

We cannot upgrade lunr to the latest without our efforts (or other community's efforts than maintainers).

This also prevents from merging #661.

Solutions

https://github.com/algolia/docsearch (do not confused with https://docsearch.algolia.com/) can be utilized.

Pros

  • For open-source project, the cost is free.
  • lunr-index.json is not required any more.
  • The Bundler.io Website team can save time to maintain our own search.js and search_arrow.js
  • UI components search.js and search_arrows.js can be replaced with Algolia's one, which seems sophisticated to me.
  • We do not need to spend time for reinventing the wheel such as above.
  • Fuzzy search by DocSearch is also nice.
  • Loading index on every page (no cache on browser side as of writing) can be avoided.

Cons

  • Proprietary (while no cost)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions