My last email may have been a bit over the top, although I still stand by the fact that Search.pm butchers queries before they get to Zebra. Hopefully, the integration of ElasticSearch will  make a re-write of the Zebra-related code to be unnecessary.

 

While we’re still planning to hold on to Zebra, I think it’s mostly as a Z39.50/SRU server?

 

I actually quite like Zebra as a search engine, but the way the search code in Koha was implemented makes it impossible to use Zebra as it should be used.

 

David Cook

Systems Librarian

 

Prosentient Systems

72/330 Wattle St

Ultimo, NSW 2007

 

Office: 02 9212 0899

Direct: 02 8005 0595

 

From: koha-devel-bounces@lists.koha-community.org [mailto:koha-devel-bounces@lists.koha-community.org] On Behalf Of Francois Charbonnier
Sent: Wednesday, 4 May 2016 11:00 PM
To: koha-devel@lists.koha-community.org >> koha-devel <koha-devel@lists.koha-community.org>
Subject: [Koha-devel] Searching with the question mark wildcard

 

Hello,

Has anyone tried to implement the question mark (?) wildcard ?

The documentation says "Two of the wildcard characters that can be used in Koha searches are the asterisk ('*') and the percent sign ('%'). However, these two characters act differently when used in searching." (http://manual.koha-community.org/3.22/en/searchfaq.html)

But, CQL also supports the question mark wildcard "? : Matches any single character, so that c?t will match any of the words cat, cot or cut, but not coat or indeed ct." (http://zing.z3950.org/cql/intro.html#6)

We are currently evaluating this implementation. If you already tried, your feebacks will be appreciated. And, any advice on how you'll do it will be welcome as well!

Thanks!

--

François Charbonnier,
Bibl. prof. / Chef de produits

Tél.  : (888) 604-2627
francois.charbonnier@inLibro.com

inLibro | pour esprit libre | www.inLibro.com