Skip to content

Support Configurable Stopwords #71

Closed

Description

@dvirsky

We should provide a way to configure per-instance and/or per-index and/or per field list of stopwords, instead of the very primitive hard-coded list we have today.

Activity

  1. self-assigned this
    on Jun 14, 2017
  2. dvirsky commented on Jun 14, 2017

    @dvirsky
    ContributorAuthor

    The current design is as following:

    1. There is a default stopword list that is identical to the current one.

    2. Custom stopwords are defined per index.

    3. On index creation, the user can specify STOPWORDS {num} {sw} ... or STOPWORDS NONE which causes the index to not have any stopwords. Currently we only apply ascii Latin lowercasing, which is the same treatment we provide for the query. When the query normalizing will change, this will change as well.

    4. These will apply during indexing and querying, unless NOSTOPWORDS is specified in the query.

    5. Internally we'll convert the lookup of stopwords from a linear search to triemap. This will make big lists and bigger documents run faster.

    6. During indexing and querying, we will evaluate either the index's stopword list, or the default one.

  3. dvirsky commented on Jun 18, 2017

    @dvirsky
    ContributorAuthor

    Done in current master, to be released in 0.18. No ALTER support yet, the list is fixed once the index is created.

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions