Use case or problem
I often search via the Ctrl+O/Cmd+O menu to open files. As an example, I have two files, “Linear Algebra” and “Linear Map”. When I search “Linear” the “Linear Map” note comes up first (perhaps you’re using an edit distance search algorithm?). I would like “Linear Algebra” to appear first because it’s a larger and more interconnected note, so it’s easier to find related topics via that note.
I think using a variant of the PageRank algorithm based on the number of links between notes to more heavily weight more commonly referenced notes in the search results would be useful. This is because the number of links into a note is a good proxy for how often you need to open it / how important it is to you. I think even just adding weight to results with some heuristic something like
n = links + backlinks/2 + 10 (log wordcount - log lastedited) would be a good enough approximation of PageRank for my needs.