Code Monkey home page Code Monkey logo

Comments (29)

scambier avatar scambier commented on June 20, 2024

Does searching for will self (without quotes) still return the "notable agnostics" note, but lower in the results? If you have several notes containing both words more prominently (i.e. in titles), they'll be ranked higher.

Regarding "will self" (with quotes), it looks like a bug. Does it work after a restart?

Could you also check the dev tools (option+cmd+i on Mac I think) if there are any logged errors? Thank you :)

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

Hi Simon - no, without quotes returns nothing from the Agnostics note, however far down I scroll.
Tried again with quotes and no, sadly I get nothing from that at all.
I've managed to get the Dev Tools window to open on the right of the app, but sorry, you'll need to tell me where to look for any logged errors. Nothing immediately apparent from clicking on a few menu items….

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

Can you find that specific note with another search query?

For the logs, the important part is here, errors are in red.
image

If there are no errors, I suggest cleaning the Omnisearch cache and restarting Obsidian to see if it helps.
image

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

Well - it's really bizarre.
I can't see any errors - here is my log:
image
I've now written the term Will Self in about 3 different notes, and it doesn't return any of them. To answer your question, yes, other search terms are returned from that Agnostic note, no problem.
I cleared the cache in settings and restarted, and after re-indexing etc. the exact same problem still exists…

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

I've now written the term Will Self in about 3 different notes, and it doesn't return any of them. To answer your question, yes, other search terms are returned from that Agnostic note, no problem.

Ok that is bizarre 😅

Could you try opening the default "Help" Obsidian vault, put your "notable agnostics" not in there, and reproduce the issue?

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

Ok. I set up the Sandbox vault (I assume that's what you meant) and copied over the note. Plus littered a few more 'Will Self' references in other new notes. Installed Omnisearch, and it all worked fine.

By the way - just for the record - back in my vault, Obsidian's native search finds the 3 references in my vault to "Will Self' absolutely fine… as shown here

image

But Omnisearch still only finds the one note where "Will Self' is in the actual title of the note

image

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

Thank you.

I'd like to rule out a conflict with another plugin. Could you:

  • Try to reproduce the issue with all other community plugins disabled
  • (or) create a new clean vault with all your notes, install omnisearch, and check if it works

All while keeping an eye on the console log for any error that might pop up.

If the issue still persists, I can only guess there's a document in your vault that breaks indexing or searching :/

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

Ok - disabled every single plugin apart from Omnisearch - and sadly it still behaved in exactly the same way.
Not au fait with programming etc. so don't understand how a document could 'break' indexing/searching - so I guess three questions:

  • how do I hunt that document down?
  • why does it not 'break' Obsidian's core search functionality?
  • how does one ensure that a document doesn't break Omnisearch in future?

thanks!
Patrick

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

how do I hunt that document down?

Tediously. Start a new vault, install Omnisearch, add documents folder by folder until it stops working. Then remove document by document until it works again.

Honestly I'm not even sure the bug is triggered by a specific document, it's just my best guess.

why does it not 'break' Obsidian's core search functionality?

A better question is "why does it break Omnisearch", and 🤷‍♂️

Unless I can reproduce the bug reliably and find the root cause, it's guesswork.

Edit: it costs nothing to ask, but if you're willing to share your vault with me, it would greatly help me. You have my word that I will only use it to solve this issue and delete everything as soon as it's fixed.

I'd totally understand if you say no (I'd say no 😅), obviously.

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

Ok - I'm very (very) folderless - so 95% sure it will be in my main one, and therefore would be a struggle to drill down on this issue!
Let me think about sharing the vault. I'd love to help if it helps Omnisearch become an even better product! Can I ask, is there any way you could do what you need to do via a remote link?

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

It would be complicated, as I'd make incremental changes on the source code with continuous recompilations, probably try older versions of Omnisearch, and add/remove files from the vault. Again, no worry; I just had to ask, it's 100% fine to refuse.

I'll think a bit more about the issue and will work on a custom build, maybe next week. I'll tweak it to log the relevant information, so I'll try to get all I need without having to see your vault 👍

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

Ah - ok. Yeah - sorry, I think I'll keep the vault private. Paranoia!

BTW - just tried changing the last letter in the text string so it read "Will Sele" and then also "Will Selg". In both cases Omnisearch found all instances of it! But then, back to Will Self and it fails again.

Would be fascinated to see if you manage to work out what's going on…

Many thanks for taking such an interest. I love your creation in every other way!

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

The plot thickens.

Does it also work with will sel?

A random idea: could you try adding the word shelf (or will shelf, or any random word ending in f) in a few notes and check if they're correctly returned in results? I'd like to know if it's reproducible with something else than will self.

Many thanks for taking such an interest.

That's a breaking bug that I don't understand, of course it's interesting :D

I love your creation in every other way!

Thanks :)

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

No - Will Sel does not work either, nothing found via Omnisearch.
But Will Shelf works fine, as does Will Xelf…

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

Did some more exploring. This video might also interest you "Will Se" fails, whereas "Will Sel" scores a hit…

https://github.com/scambier/obsidian-omnisearch/assets/135022979/553063c2-1f85-41c5-9ada-5b41343c8f77

Strike that! Turns out that the result was (unsurprisingly) just a lot further down the list…

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

Hey there. Sorry, the video is not readable, but could you check that the setting "Simpler search" is disabled? It disables prefix searches for words with fewer than 3 chars.

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

Sorry, the video still doesn't work.

Does the expected result finally show up when you keep typing more chars for "procrastination"?

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

Thanks for that detailed report :)
The fact that you don't even have a single result while searching for "The" doesn't make any sense :/

Could you

  • Create a new blank vault in a directory that is outside of any syncing solution (i.e. no dropbox, google drive, syncthing, ...)
  • Copy all your documents inside it. Only the documents, don't copy the .obsidian folder or any other folder starting with a .
  • Install Omnisearch as the only plugin
  • Check if the issue persists

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

I stand by my initial guess that something in your vault is corrupting the search 😕 I'm sorry I can't help, since I'm unable to reproduce any of the described behaviors on my test vaults.

If you're willing to dig more yourself, you could start with an empty vault, start with your note "📖 The End of Procrastination", add x files at a time, and check how Omnisearch behaves between each batch. Once it starts breaking, bisect the last batch until you find the offending file - if that's indeed the cause.

Again, I'm sorry I can't fix this.

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

Thanks a lot for your trust. Can you send that to simon.cambier{at}protonmail.com? Thank you 👍

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

Copy-paste from my email answer:

From your spreadsheet (I've added line numbers)

1 The_End_ 8 2/50   Still 2nd
2 The_End_o 9 32/50   SO ODD!
3 The_End_of 10 3/50   Back in the frame
4 The_End_of_ 11 3/50   Still 3rd
5 The_End_of_P 12 0/50   What?

Here's what's going on:

  1. When you search for "The end", Omnisearch will find all notes containing those words, or words that begin with those prefixes (like "theft" or "ending"). Your note "The end of procrastination" has both whole words in its title, it scores many points, and is returned 2nd
  2. You add "o" to the search, and this changes everything: all notes that contain words beginning with "o" suddenly score higher because each of those words will slightly bump up their ranking. Your note "The end of procrastination" also has a higher score, but is still outranked by all the notes containing many "o..."
  3. Same logic as 1: whole words in the title, bump to the 2nd place. Note that it's still outranked by "How to take smart notes", probably because it contains a ton of "the..."
  4. Same as 3, spaces don't count
  5. Same logic as 2, the lone "p" will bump all the notes that contain words beginning with p

"Will Self" suffers from the same problem; it's a relatively short note that's easily outranked by larger ones, because they score more small points. Death by a thousand cuts.

Searching with quotes might not help, because this will only refine the top 50 results. So if the note you're looking for is not at least 50th, it won't show up at all.

from obsidian-omnisearch.

DaHunch avatar DaHunch commented on June 20, 2024

from obsidian-omnisearch.

scambier avatar scambier commented on June 20, 2024

Don't worry, it only became obvious when I started typing your queries 👍

p.s. congrats on winning the 2023 Plugins Gems award!

Thanks!

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.