Code Monkey home page Code Monkey logo

Comments (3)

scambier avatar scambier commented on May 26, 2024 2

It's too bad you may have to convert the text, would be nice if the search library you're using offered diacritics removal

Well, I suspect it's specifically because diacritics can change the meaning of a word. I have the same issue in French, but to a lesser degree: the fuzzy matching usually works around it ("creme brulee" will match "crème brulée", but not ""crème brûlée").

I think that a better solution would be a toggle to simply ignore diacritics: normalize all search queries, and notes before indexing.

from obsidian-omnisearch.

scambier avatar scambier commented on May 26, 2024

Omnisearch would have to index an additional computed field to hold the converted text without diacritics. Definitely doable, but I'd put that behind a setting, since that would roughly double the indexing duration and increase memory consumption.

I'm not sure how it will work with the in-file search, but I can take a look at it. Anyway, this part needs a rework.

These results should have a lower relevancy/priority

Because the same word with and without diacritics could have 2 different meanings?

from obsidian-omnisearch.

Sanqui avatar Sanqui commented on May 26, 2024

I don't mind it being behind a setting. It's too bad you may have to convert the text, would be nice if the search library you're using offered diacritics removal alongside stemming possibly lemmatization.

These results should have a lower relevancy/priority

Because the same word with and without diacritics could have 2 different meanings?

Indeed, many such cases. Though I would have to see it in practice to know if it would be usable if the results were ranked the same, I suspect it would be only a minor annoyance.

from obsidian-omnisearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.