scambier / obsidian-omnisearch

A search engine that "just works" for Obsidian. Supports OCR and PDF indexing.
GNU General Public License v3.0
1.21k stars 61 forks source link

[Feature request] Weigh recently modified files higher #172

Open joech4n opened 1 year ago

joech4n commented 1 year ago

Is your feature request related to a problem? Please describe. I have a harder time finding recently edited files.

Describe the solution you'd like It would be nice to weigh recently modified files higher. Or have a way to specify a specific weight to the file's recency.

Describe alternatives you've considered Using the built-in search.

Additional context N/A

scambier commented 1 year ago

This has already been requested in #123, and while I'm not strictly against the idea, I don't know how to efficiently integrate a recency weight into the algorithm.

tralston commented 1 year ago

I'm following both #123 and this issue, and would add my vote to the others. The majority of work I do in Obsidian is for Work/Meeting notes, which are all date-relevant. Here's a couple of thoughts that might help in updating the algorithm/UI:

I'd like to see an option in the settings page where I could set a default mode (Recent or Recommended) and then specify for Recent mode which timestamp to use (Creation / Modification). I can't see people swapping between the two timestamps that often, so a setting seems appropriate. But once people have decided which mode to use as their default for Omnisearch, one of those keyboard shortcuts can toggle between the modes on the fly. And maybe some sort of appearance change or indicator would clue people into which mode they are in at the moment.

scambier commented 1 year ago

Ok so basically a "date mode" that completely bypasses the weighting system?

tralston commented 1 year ago

Ok so basically a "date mode" that completely bypasses the weighting system?

Yes. Essentially there are two mindsets I'm in when I'm searching for notes.

  1. When was the most recent thing with a keyword (often in the title, but not always)?
  2. What are all the notes I have on a specific topic over all time? (this is the default way you have it querying currently)
stoilis commented 1 year ago

+1

S-Wil commented 5 months ago

+1 I really need this. Lack of date prioritization is killing me. I'd also add sometimes I'm not looking for most recently modified but by date created.