1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00
joplin/readme/spec
Shawn Axsom 5eb0417b1a
All: Sort search results by average of multiple criteria, including 'Sort notes by' field setting (#3777)
* Weight search results by most recently updated

As discussed here: https://github.com/laurent22/joplin/pull/3777#issuecomment-696491859
Before this commit, results were rarely sorted by date. Content weights and fuzziness were
determined, and then the first criteria to differ would win in sort order (and user_updated_time
was the last criteria checked).

Now the weight score itself will also include age of user_updated_time, surfacing fresh content.
At the current alpha level, results are weighted logarithmically, prioritizing mostly within the
last 30 days, and especially heavily within the past week.

* Updated unit tests to weight search results by last updated date

* Updated unit test title

* Fixed issue with weighted search engine test, and made it more deterministic using mock date

Date was being calculated only at the start of the test suite. It also wasn't using a set mock date, so the milliseconds between the real search engine calculations and the test calculation caused differences in results

* Added initial Search Engine spec

* Added Search Engine spec to README.md

* Renamed Search Sorting spec per laurent22's mentioned naming

* Revised copy in search sorting spec

Co-authored-by: Laurent <laurent22@users.noreply.github.com>
2020-10-09 21:51:11 +01:00
..
e2ee.md All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
history.md Doc: Added more technical info for revision history 2019-05-24 09:05:16 +01:00
plugins.md All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
search_sorting.md All: Sort search results by average of multiple criteria, including 'Sort notes by' field setting (#3777) 2020-10-09 21:51:11 +01:00
sync_lock.md Doc: Added more info about sync lock refresh mechanism 2020-09-11 11:26:07 +01:00