-
|
The documentation states that if you do a search query on a Nouveau index, the results are ordered by relevance:
However, when I do a search for example: {
"q": "(projectKey:KEY*^4) OR (projectName:KEY~)"
}The result looks as follows: {
"update_latency": 11,
"total_hits_relation": "EQUAL_TO",
"total_hits": 5,
"ranges": null,
"hits": [
{
"order": [
{
"value": 0.823529,
"@type": "float"
},
{
"value": "KEYB",
"@type": "string"
}
],
"id": "KEYB",
"fields": {
[...]
}
},
{
"order": [
{
"value": 4.5334044,
"@type": "float"
},
{
"value": "KEYA",
"@type": "string"
}
],
"id": "KEYA",
"fields": {
[...]
}
},
[...]My expectation was that Is my understanding of the relevancy sorting incorrect or should the second hit be the first item in the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
your understanding is correct, the result is wrong. I'll look into it at the weekend, thanks for the report! |
Beta Was this translation helpful? Give feedback.
-
|
(noting the mild nuance that default order is [score, _id] just to stabilise the sort order) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
merged a fix for this, thanks for raising it. |
Beta Was this translation helpful? Give feedback.
merged a fix for this, thanks for raising it.