Sort Windows Desktop search results by word frequency

On my Windows 10 system, if I search for a common word in a folder with many documents, I get a long list of results. I would like to be able to sort the results based on the number of hits in each document. Looking through the list of available columns I see Relevance as the only one that might be related but the result in my case is the same for all items, 890. Nothing else in the list seems applicable.

It this possible? Does anyone know if Windows Search even has this metric stored internally? I'd even be willing to code something in vb.net to get to it.

Thanks.


This feature is not built into Windows Search, though it might have that frequency data stored internally in Extensible Storage Engine format. The data is located in C:\ProgramData\Microsoft\Search\Data\Applications\Windows\Windows.edb, and there are auxiliary indexes in subfolders of Search.

Though Nirsoft's free tool, ESEDatabaseView, can be used to view that type of file, Windows.edb is locked by the Windows Search Engine, when in use, so the best you can do with that data is to stop indexing and Search to unlock it, leaving you with out-of-date data.

Rather than reinventing Search, you might be better served by a more configurable engine, such as free DocFetcher. That tool, for example, enables "fuzzy" searches and weighting searches by proximity of words or importance of a key term. For example, you might search for the word "Ahab", in proximity to "whale".

DocFetcher Search Results

Since DocFetcher reports the "Score" of each item, you have insight into the closeness of the match, frequency in the document, etc.