https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20589

--- Comment #36 from Alex Arnaud <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to