ElasticsearchCrossFields enabled returns no search results on OPAC
Hi all, ElasticsearchCrossFields is a great syspref to enable if you need to search across indexes, for example your search term includes both title and author keywords. We've discovered this only works on the staff client, and returns no results when searching on the OPAC. After some investigation, this is because the OPAC will add a `suppress:false` to the search query, to hide records that are suppressed in OPAC. I'm not sure why, but this combination of suppress:false and ElasticsearchCrossFields means no results are returned in the OPAC. Has anyone seen this before or know a fix, or why it happens? I've reported this bug: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30141 -- Aleisha Amohia (she/her) Koha Developer Catalyst IT - Expert Open Source Solutions www.catalyst.net.nz CONFIDENTIALITY NOTICE: This email is intended for the named recipients only. It may contain privileged, confidential or copyright information. If you are not the named recipient, any use, reliance upon, disclosure or copying of this email or its attachments is unauthorised. If you have received this email in error, please reply via email or call +64 4 499 2267.
Hello Aleisha, See if https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30173 fixes it. Different avenues, same crossroad and same problem. The patch fixed it for us by isolating the suppress:false. Yours is a bit different, but might be related. On 2022-02-23 18:20, Aleisha Amohia wrote:
Hi all,
ElasticsearchCrossFields is a great syspref to enable if you need to search across indexes, for example your search term includes both title and author keywords.
We've discovered this only works on the staff client, and returns no results when searching on the OPAC.
After some investigation, this is because the OPAC will add a `suppress:false` to the search query, to hide records that are suppressed in OPAC.
I'm not sure why, but this combination of suppress:false and ElasticsearchCrossFields means no results are returned in the OPAC.
Has anyone seen this before or know a fix, or why it happens?
I've reported this bug: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30141
Hi Philippe Thank you for this suggestion. Unfortunately neither the patch on bug 30173 nor the patch on bug 30152 solves our problem. Our query looks like 'query' => '(title author) AND suppress:false', 'type' => 'cross_fields', I think it must be the 'cross_fields' type (due to ElasticsearchCrossFields enabled) that causes the proble. Alternatively we could add another index that searches both title and author, but we'd like patrons to be able to search title and subject too, or author and subject, and other combinations. Any other ideas? -- Aleisha Amohia (she/her) Koha Developer Catalyst IT - Expert Open Source Solutions www.catalyst.net.nz CONFIDENTIALITY NOTICE: This email is intended for the named recipients only. It may contain privileged, confidential or copyright information. If you are not the named recipient, any use, reliance upon, disclosure or copying of this email or its attachments is unauthorised. If you have received this email in error, please reply via email or call +64 4 499 2267.
Hey everyone Just wondering if anyone has come across this bug since I reported it? Happy to do more discussion on the bug report. https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30141 We're experiencing it in Koha 20.05, but it seems to be fixed in Koha 21.05. I can't confirm if it occurs in 20.11. Of course we can just upgrade but it would be nice to know if we can solve it quickly. -- Aleisha Amohia (she/her) Koha Developer Catalyst IT - Expert Open Source Solutions www.catalyst.net.nz CONFIDENTIALITY NOTICE: This email is intended for the named recipients only. It may contain privileged, confidential or copyright information. If you are not the named recipient, any use, reliance upon, disclosure or copying of this email or its attachments is unauthorised. If you have received this email in error, please reply via email or call +64 4 499 2267.
participants (2)
-
Aleisha Amohia -
philippe.blouin@inlibro.com