obsidian-omnisearch
obsidian-omnisearch copied to clipboard
[Feature request] Given a date in the page title, prioritize recent ones
This is another one of those quite specific requests which would nevertheless be very useful. Here's a scenario: imagine you're the organizer of an event that happens every year, and you have the following notes:
- 2020 EventCon
- 2021 EventCon
- 2022 EventCon
- 2023 EventCon
Currently, when you search for EventCon with Omnisearch, these pages will appear in what is essentially random order (mainly number of matches). What I usually want is to see the page that features the current year first, i.e. 2023 EventCon.
This is even more critical for something like weekly meetings. If I save those in the format YYYY-MM-DD MyCompany Meeting and I search for MyCompany Meeting, I have no chance to find the relevant meeting in a 100 results. Usually what I want to open is the one that happened last, so they should be sorted in reverse chronological order.
I have no idea how this could be implemented in Omnisearch, however. Probably some way to detect dates in page titles at indexing time would be necessary. Sorry for bringing in the hard problems again :)
Relevant:
- #123 asks to add recency in the weight calculation, but I have no idea how to do that (not technically but what kind of formula to apply). I'm open to suggestions though.
- #172 suggests to implement a shortcut to toggle between "weight mode" and "date mode"
I need this feature, too. I have over 1000 notes, many of them work journals. If I search for, say, "TPS report", I want to see results that were recently updated at the top of the list. If Omnisearch always scores # of incidences as highest rank, then some old note where I used the term a lot may always show up first, even if it is no longer relevant.
(I also added this comment on issue #123, as they are similar)
+1 I really need this. Lack of date prioritization is killing me.