1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-05 12:50:29 +02:00
joplin/CliClient/tests
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
..
enex_to_html Desktop, Cli: Fixes #3402: Fixed import of checkboxes in ENEX files 2020-06-28 18:55:47 +01:00
enex_to_md Desktop, Cli: enex_to_md: Support italic in span tags (#1966) 2019-10-12 00:39:13 +02:00
html_to_html All: Fixes #2667: Fixed sanitize function so that it does not break HTML 2020-03-06 00:54:21 +00:00
html_to_md Clipper: Fixes #3241: Handle certain special cases of ordered lists 2020-06-08 18:44:13 +01:00
md_to_html Desktop: WYSIWYG: Fixed inserting date time and other content inside header 2020-07-04 12:17:30 +01:00
md_to_md Desktop: Fixes #2334: MD importer handle special chars in linked image name (#2346) 2020-03-27 12:20:38 +00:00
services/plugins All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
support All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
ArrayUtils.js Desktop: Resolves #2683: Go To Anything by body (#2686) 2020-03-28 13:05:00 +00:00
database.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
EnexToHtml.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
EnexToMd.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
eventManager.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
feature_NoteHistory.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
feature_NoteList.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
feature_ShowAllNotes.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
feature_TagList.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
file_api_driver.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
filterParser.js Desktop: Fix wildcard search (#3713) 2020-09-11 22:52:32 +01:00
HtmlToHtml.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
HtmlToMd.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
htmlUtils.js Clipper: Fixes #2489: Fixed clipping of pages that contain images without sources (YouTube), and improved support for SVG graphics 2020-02-12 18:15:16 +00:00
markdownUtils.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
MarkupToHtml.js Desktop: Improved GotoAnything speed and made it safer 2020-07-14 23:27:45 +01:00
MdToHtml.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
MdToMd.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
mimeUtils.js Desktop: Fixed issue with setting filename for edited attachments 2020-06-09 19:15:43 +00:00
models_BaseItem.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
models_Folder.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
models_ItemChange.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
models_Note_CustomSortOrder.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
models_Note.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
models_Resource.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
models_Revision.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
models_Setting.ts All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
models_Tag.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
pathUtils.js Desktop, Cli: Fixes #3689: Fixed note export when there are folders with non-existing parents. Also fixed long path issue on Windows. 2020-09-07 22:12:51 +01:00
reducer.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_CommandService.ts All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_EncryptionService.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_InteropService_Exporter_Md.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_InteropService.ts All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_keychainService.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_KeymapService.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_KvStore.js All: Add mechanism to lock and upgrade sync targets (#3524) 2020-08-02 12:28:50 +01:00
services_PluginService.ts All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_ResourceService.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_rest_Api.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_Revision.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_SearchEngine.js All: Sort search results by average of multiple criteria, including 'Sort notes by' field setting (#3777) 2020-10-09 21:51:11 +01:00
services_SearchFilter.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
services_SearchFuzzy.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
StringUtils.js Desktop: Resolves #2683: Go To Anything by body (#2686) 2020-03-28 13:05:00 +00:00
synchronizer_LockHandler.ts All: Add mechanism to lock and upgrade sync targets (#3524) 2020-08-02 12:28:50 +01:00
synchronizer_MigrationHandler.ts All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
synchronizer.js All: Add support for application plugins (#3257) 2020-10-09 18:35:46 +01:00
TaskQueue.js Linter update (#1777) 2019-07-30 09:35:42 +02:00
test-utils.js All: Sort search results by average of multiple criteria, including 'Sort notes by' field setting (#3777) 2020-10-09 21:51:11 +01:00
timeUtils.js Tools: Update package locks 2020-09-22 16:02:22 +01:00
urlUtils.js Revert "Tools: Added eslint rule arrow-parens" 2020-05-21 09:14:33 +01:00