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

David Cook <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |In Discussion

--- Comment #1 from David Cook <[email protected]> ---
However, there is a way. 

If you comment out all our current truncation detection code and do the
following...

                 if ($auto_truncation){
-                        unless ( $index =~ /,(st-|phr|ext)/ ) {
+                        unless ( $index =~ /,(st-|ext)/ ) {

+                my $trunc_count = ($operand =~ s/\Q*\E/#/g);
+                if ($trunc_count){
+                    $index .= ",process-in-search-term";
+                }

Zebra does support # as a mask/wildcard in lieu of *. 

It does mean it would be wise to s/#//g the operand before doing truncation
handling, so that "C# Program*" doesn't match "CGI Programming". 

But that wouldn't be that hard to do.

The # would work with both left and right truncation.

--

Anyway, food for thought. At this point, I don't think that we're going to
pursue this change. Something like 99% of our libraries are using Elasticsearch
now. 

But it's an idea...

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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