Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First attempt at mutable indexes for lunr.js 2.x #315

Closed
wants to merge 7 commits into from

Commits on Nov 16, 2017

  1. Configuration menu
    Copy the full SHA
    08315bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df30e82 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    551529c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    47e4e6f View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2017

  1. Don't serialize redundant properties

    Some properties on the builder are shared with the index, so
    we can save a bit of serialization space by not serializing
    the exact same data twice
    hoelzro committed Nov 17, 2017
    Configuration menu
    Copy the full SHA
    c20086f View commit details
    Browse the repository at this point in the history
  2. Store field refs once in serialized mutable builder

    lunr.Builder.fieldTermFrequencies and lunr.Builder.fieldLengths
    have the exact same keys, and are both keyed by field refs.  It
    saves us some space when serializing a mutable builder to save
    the list of field refs once, along with the values in these two
    objects, and recombine them into objects at load time
    hoelzro committed Nov 17, 2017
    Configuration menu
    Copy the full SHA
    b9ebfc9 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2017

  1. Lazily rebuild mutable indexes

    Otherwise, if you're performing multiple changes to the index in-between
    queries, you end up doing a lot of redundant work
    hoelzro committed Nov 21, 2017
    Configuration menu
    Copy the full SHA
    9779b63 View commit details
    Browse the repository at this point in the history