[Koha] Fwd: INTRANET and OPAC does not retrieve titles with "?" "!"

Michael Kuhn mik at adminkuhn.ch
Thu Jan 27 07:41:53 NZDT 2022


Hi Fridolin

You wrote:

 > We advice to enable the system preference "QueryWeightFields".
 > It will search given text surrounded with double quotes, limiting the
 > erors because of CCL syntax characters :
 > 
https://git.koha-community.org/Koha-community/Koha/src/commit/c7ba9148610582fb772cf4e2cc7e35227e1aac8f/C4/Search.pm#L895 

 >
 > Also in relevence sort it will give priority to title.

This does not help, unfortunately. System preference "QueryWeightFields" 
is already enabled in the Koha standard. So it is also enabled in the 
installations I have tested.

Best wishes: Michael
-- 
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch



> Le 25/01/2022 à 08:51, Elaine Bradtke a écrit :
>> It works in our catalogue. I've searched with "!" and "?"
>> Koha 21.11.01, Debian 4.19,  Zebra 2.0.59
>> We're using British English translation.  I wonder if this problem is
>> limited to non-English translations?
>>
>> Elaine
>> VWML <https://vwml.org>
>>
>>
>>
>> On Tue, Jan 25, 2022 at 1:49 AM Michael Kuhn <mik at adminkuhn.ch> wrote:
>>
>>> Hi
>>>
>>> I just tested this behaviour under Debian 11, Zebra and Koha 21.11.01. I
>>> confirm that a search including ? does not find results. For example the
>>> following search
>>>
>>> ˆDie‰ drei ??? und der unsichtbare Passagier
>>>
>>> translates to
>>>
>>> .../cgi-bin/koha/
>>> opac-search.pl?idx=&q=Die+drei+%3F%3F%3F+und+der+unsichtbare+Passagier+&weight_search=1 
>>>
>>>
>>> and will not find any results. If you leave out the ? characters, Zebra
>>> will find the respective hits.
>>>
>>> Best wishes: Michael
>>> -- 
>>> Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
>>> Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
>>> T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch
>>>
>>>
>>>
>>> Am 24.01.22 um 08:41 schrieb Katrin Fischer:
>>>>
>>>> -------- Forwarded Message --------
>>>> Subject:     Re: [Koha] INTRANET and OPAC does not retrieve titles with
>>> "?"
>>>> "!"
>>>> Date:     Sun, 23 Jan 2022 16:39:42 -0300
>>>> From:     Victor Barroso Oliveira <vbovictor at gmail.com>
>>>> To:     Katrin Fischer <katrin.fischer.83 at web.de>
>>>>
>>>>
>>>>
>>>> I'm using zebra.
>>>> When I search without the score, it recovers!
>>>>
>>>> Em dom., 23 de jan. de 2022 12:28, Katrin Fischer
>>>> <katrin.fischer.83 at web.de> escreveu:
>>>>
>>>>      Hi Victor,
>>>>
>>>>      are you using Elasticsearch or Zebra?
>>>>
>>>>      Does the search work if you leave out the punctuation?
>>>>
>>>>      Katrin
>>>>
>>>>      On 21.01.22 19:04, Victor Barroso Oliveira wrote:
>>>>       > Hi,
>>>>       > On Ubuntu 18 and Koha 21.05.08 and above
>>>>       > INTRANET and OPAC does not retrieve titles with "?" "!"
>>>>       > is this a bug?
>>>>       >
>>>>       >   ERRO KOHA.jpg
>>>>       >
>>>>
>>>> <
>>> https://drive.google.com/file/d/1jepUpqPw0oGva-oFr6AT7n3vIZsFDCOE/view?usp=drive_web> 
>>>
>>>
>>>>
>>>>       > _______________________________________________
>>>>       >
>>>>       > Koha mailing list http://koha-community.org
>>>>       > Koha at lists.katipo.co.nz
>>>>       > Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>>>>      _______________________________________________
>>>>
>>>>      Koha mailing list http://koha-community.org
>>>>      Koha at lists.katipo.co.nz
>>>>      Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>>>> _______________________________________________
>>>>
>>>> Koha mailing list  http://koha-community.org
>>>> Koha at lists.katipo.co.nz
>>>> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>>>
>>>
>>> _______________________________________________
>>>
>>> Koha mailing list  http://koha-community.org
>>> Koha at lists.katipo.co.nz
>>> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>>>
>> _______________________________________________
>>
>> Koha mailing list  http://koha-community.org
>> Koha at lists.katipo.co.nz
>> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
> 




More information about the Koha mailing list