[Koha-bugs] [Bug 11158] New: Authorities 'starts with' search returns the same as 'contains' when using ICU

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 29 13:40:16 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

            Bug ID: 11158
           Summary: Authorities 'starts with'  search returns the same as
                    'contains' when using ICU
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Searching
          Assignee: gmcharlt at gmail.com
          Reporter: colin.campbell at ptfs-europe.com
        QA Contact: testopia at bugs.koha-community.org

If set up to use icu tokenisation
When doing an authorities search and specifying 'starts with' the result set
returned is the same as with the option 'contains'

For example a search on starts_with 'Smith' returns

Campbell-Smith, Duncan.
Smith, Bessie, 1894-1937.
Smith, Sydney Goodsir, 1915-1975.
Smith, Victoria. 

The problem appears be that the starts-with definition is being applied to each
token within the heading rather than to the heading as complete field

(A search for O hoping to retrieve O'Brian will return much more )

the correct return would be

Smith, Bessie, 1894-1937.
Smith, Sydney Goodsir, 1915-1975.
Smith, Victoria.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list