Skip to content

Run search only for query having 3 and more characters #1127

Closed

Description

@davidhrbac

We have quite a large search_index.json - 2.2MB. The search is very slow. How can we limit the search to start only for queries having 3 and more characters?

Activity

  1. waylan commented on Jan 20, 2017

    @waylan
    Contributor

    Is search slow all the time or only the first time after a new page is loaded?

    If it is the former, then this is a duplicate of #859. If the latter, then this will likely be addressed by that issue anyway as I intend to do a complete refactor of search allowing users to customize the features available in the underlying library. The holdup is that search will be moved to a Plugin and we need to finish the Plugin API first (see #206). Either way, I'll leave this open to remind me to possibly include this as one of the config options.

  2. added this to the 1.0.0 milestone on Jan 20, 2017
  3. self-assigned this
    on Jan 20, 2017
  4. davidhrbac commented on Jan 20, 2017

    @davidhrbac
    ContributorAuthor

    @waylan the first is definitely slow. Anyway there's no point to let JS search the large base for single or two characters. It might return very large set (hundreds, even more). Thanks.

  5. added a commit that references this issue on Jan 31, 2018
    2c544d6
  6. added a commit that references this issue on Feb 27, 2018
    f47a1b7
  7. added a commit that references this issue on Mar 6, 2018
    dd7e2d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions