[Koha-bugs] [Bug 20589] Add field boosting and use elastic query fields parameter instead of deprecated _all
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Apr 4 18:04:25 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20589
--- Comment #36 from Alex Arnaud <alex.arnaud at biblibre.com> ---
Hello David,
First: i like this work :).
The idea of targeting only searchable fields instead of systematically fall
back on the entire record make results more consistent (even with boosting).
however, here are some observations:
When searching on a specific field (i.e "Autrement" as publisher), we keep all
others searchable fields in the target list:
"query_string": {
"query": "(publisher:autrement)",
"fields": [
"LC-card-number",
"Local-number",
"publisher",
+ all searchable fields
]
}
That has no matter on the results here since the following query returns the
same results:
"query_string": {
"query": "(publisher:autrement)",
}
But keeping field list seems to be useless.
A better thing would be to use only fields list instead of having the target in
query. Like that:
"query_string": {
"query": "(autrement)",
"fields": [
publisher
]
}
This also returns the same result (for me) and allows user to make more
complete searches such like "autrement AND jean"
If i request this:
"query_string": {
"query": "(publisher:autrement OR jean)"
"fields": [
"LC-card-number",
"Local-number",
"publisher",
+ all searchable
],
}
I get many irrelevant results (more than 600 in my database that are not
related with what i typed)
Or this one:
"query_string": {
"query": "(autrement OR jean)"
"fields": [
"publisher"
],
}
Returns only records containing "Autrement" or "jean" in publisher.
Seems more correct to me.
Sorry for the long comment, waiting for your feedback
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list