question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RFC] more fuzzy matcher

See original GitHub issue

As per https://github.com/ncm2/ncm2/issues/21

However, pure fuzzy match may not be a good idea.

Here’s a proposal:

For candidate like HelloWorld, split it into Hello and World,

We only allow substr match in Hello, and World,

So ellold should match ell in Hello, rld in World.

But with eoworld , eo shouldn’t match Hello. So it should not match HelloWorld

I’m not sure what sort priority is better. It seems the abbrfuzzy still works for this proposal.

// cc @balta2ar

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
roxmacommented, Jul 28, 2018

@fcying

You could try this config for now:

    let g:ncm2#matcher = {
                \ 'name': 'combine',
                \ 'matchers': ['abbrfuzzy', 'substr']
                \ }

Read https://github.com/ncm2/ncm2/pull/23 for more info

0reactions
balta2arcommented, Aug 1, 2018

Thank you! Because I have only one plugin that is likely to require fuzzy matching, I enabled it only there and I’ll see how it goes.

let g:ncm2_jira#source = get(g:, 'ncm2_jira#jira_source', {
            \ 'name': 'jira',
            \ 'priority': 9,
            \ 'mark': 'jira',
            \ 'word_pattern': 'JI\w*',
            \ 'complete_pattern': 'JI\w*',
            \ 'matcher': {'key': 'custom', 'name': 'substrfuzzy'},
            \ 'on_complete': 'ncm2_jira#on_complete',
            \ 'on_warmup': 'ncm2_jira#on_warmup'
            \ })
Read more comments on GitHub >

github_iconTop Results From Across the Web

RFC 6203: IMAP4 Extension for Fuzzy Search
RFC 6203 IMAP4 FUZZY Search March 2011 1. Introduction When humans perform searches in IMAP clients, they typically want to see the most...
Read more >
IMAP4 Extension for Fuzzy Search RFC 6203 - IETF Datatracker
For example, a fuzzy search might adapt to a user's search habits in an attempt to give more relevant results (in a "learning"...
Read more >
C & P Search Rewrite RFC - Koha Wiki
i. When Solr is in use, “fuzzy” means either that accents are ignored, or that searches will match words with similar spellings based...
Read more >
Fuzzy Search | Search API - TomTom Developer Portal
Purpose The generic, default service is Fuzzy Search which handles the most fuzzy of inputs containing any combination of Indexes abbreviation values.
Read more >
Create a fuzzy match (Power Query) - Microsoft Support
When you join table columns, you no longer require and exact match. Fuzzy matching lets you compare items in separate lists and join...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found