You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Joplin API and notice the search results change when I add fields param. For example: without fields, the results are highly relevant (the keyword "quantum" is in the title). Adding fields param, it returns irrelevant results (but the keyword is in the body, so it's not wrong). I suspect it's no longer sorted by relevance and limit=2 returns first 2 results from some random order.
~/.config/joplin-desktop$ curl 'http:https://localhost:41184/search?query=quantum&token=TOKEN&limit=2' | jq .
{
"items": [
{
"id": "f04fd184bc4a4ad1a823054b83ebbd0f",
"parent_id": "3310ebbbd85b4c6394fd4dc8ab1ab47e",
"title": "Quantum entanglement"
},
{
"id": "65b5e23c05a64941b17399780f4ed8df",
"parent_id": "3310ebbbd85b4c6394fd4dc8ab1ab47e",
"title": "CRYPTOGRAPHY IN THE QUANTUM AGE"
}
],
"has_more": true
}
~/.config/joplin-desktop$ curl 'http:https://localhost:41184/search?query=quantum&token=TOKEN&limit=2&fields=id%2Ccreated_time%2Ctitle%2Cupdated_time%2Ctodo_due' | jq .
{
"items": [
{
"id": "64ddf6ce7bec41ab8a98120ef0295ba1",
"created_time": 1302028192000,
"title": "India Graduates Millions, but Too Few Are Fit to Hire - WSJ.com",
"updated_time": 1302028192000,
"todo_due": 0
},
{
"id": "bb2895ed7cca439ebdbf302ea35cc0fc",
"created_time": 1298171990000,
"title": "UCB CS61A",
"updated_time": 1305927441000,
"todo_due": 0
}
],
"has_more": true
}
Expected behaviour
The search results should not change because fields param is used.
Logs
No response
The text was updated successfully, but these errors were encountered:
More details on the bug: I've found this only happens if updated_time is included and the result is sorted by updated_time. If updated_time is not included, the result doesn't change.
Operating system
macOS
Joplin version
Joplin 2.14.17 (prod, darwin)
Desktop version info
Joplin 2.14.17 (prod, darwin)
Client ID: 41fd86eba6dd407a94d2655b86ad878a
Sync Version: 3
Profile Version: 46
Keychain Supported: Yes
Revision: 094175c
Backup: 1.4.0
Joplin DDDot: 0.3.1
macOS theme: 1.3.18
Quick Links: 1.3.1
Current behaviour
I'm using Joplin API and notice the search results change when I add
fields
param. For example: withoutfields
, the results are highly relevant (the keyword "quantum" is in the title). Addingfields
param, it returns irrelevant results (but the keyword is in the body, so it's not wrong). I suspect it's no longer sorted by relevance andlimit=2
returns first 2 results from some random order.Expected behaviour
The search results should not change because
fields
param is used.Logs
No response
The text was updated successfully, but these errors were encountered: