Skip to content

Index trigrams #3

@moio

Description

@moio

One Lucene limitation when it comes to fuzzy search is that the maximum edit distance is capped to 2 due to algorithmic reasons.

One way to circumvent this is to index trigrams instead of lines, thereby allowing some trigrams to be missing or be different in sequence, rather than searching for lines and allowing fuzzy matching with up to two edits.

This requires changing SourceAnalyzer to decompose text in trigrams and, crucially, rewrite queries so that they target trigrams.

Then performance has to be evaluated (time-wise and search-effectiveness-wise).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions