[Koha-bugs] [Bug 3689] New: Searching for a single keyword returns no results, although they exist

bugzilla-daemon at kohaorg.ec2.liblime.com bugzilla-daemon at kohaorg.ec2.liblime.com
Fri Oct 2 15:35:52 CEST 2009


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3689

           Summary: Searching for a single keyword returns no results,
                    although they exist
           Product: Koha
           Version: HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P5
         Component: Searching
        AssignedTo: ricmarques at spamcop.net
        ReportedBy: ricmarques at spamcop.net
   Estimated Hours: 0.0
 Change sponsored?: ---


This applies to the current HEAD of the Koha "3.0.x" git branch: 

In a setup that doesn't use Zebra ("NoZebra"), a keyword search (default
"Library Catalog" search) in the catalog for a single keyword always returns 0
(zero) results, although there are results in the database for that keyword.

I am preparing a small correction for this, that builds on the following patch: 
---------------------------------------- 
C4/Search.pm followup auto_truncation 
http://git.koha.org/cgi-bin/gitweb.cgi?p=Koha;a=commit;h=3287252c0f71a10091995beff4eeb18257bbbc04 

author Henri-Damien LAURENT <henridamien.laurent at biblibre.com> 
         Mon, 21 Sep 2009 21:04:46 +0000 (23:04 +0200) 
committer Henri-Damien LAURENT <henridamien.laurent at biblibre.com> 
         Mon, 21 Sep 2009 21:09:43 +0000 (23:09 +0200)
commit  3287252c0f71a10091995beff4eeb18257bbbc04 
---------------------------------------- 


The patch (that will be submitted by me in a few minutes) changes the line 1228
of the Search.pm file

FROM: 

unless ( $index =~ /(st-|phr|ext)/ ) {

TO:

unless ( $index =~ /(st-|phr|ext|kw)/ ) {


So, my patch just adds "kw" to the regular expression matched in that line


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list