[Koha-bugs] [Bug 12268] New: Subject Broader Narrower Related terms and Query Parser and Exploded Terms issues

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 16 05:50:24 CEST 2014


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

            Bug ID: 12268
           Summary: Subject Broader Narrower Related terms and Query
                    Parser and Exploded Terms issues
 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: dcook at prosentient.com.au
        QA Contact: testopia at bugs.koha-community.org

Just a couple things I want to point out...

1) su-na already exists in the CCL config as an alias for something other than
"narrower term" for a subject:

Subject-name-personal 1=1009
su-na 1=1009


2) If QueryParser is turned off, using su-br and su-rl queries will cause Zebra
errors, because these aliases aren't defined in ccl.properties.

The QueryParser dynamically adds them (and su-na) using a callback which adds
them to the aliases defined in the config loaded from queryparser.yaml, I
believe.

To get around this, we could probably add "su-br" and "su-rl" as aliases to
subject. We should probably also rename the existing su-na to something like
su-nap so it doesn't get confused with the "su-na" for narrower terms during a
query...


3) Even when the QueryParser is turned on, if you do a search for "Subject and
Broader/Narrower/Related Terms" in advanced search, you'll always get a search
that appends "wrdl" to the end of the alias. Unfortunately, QueryParser doesn't
use "wrdl", so it falls back to using a non-QueryParser query, which creates
the Zebra errors mentioned in Problem #2. 


4) Advanced search with "more options" causes QueryParser to fail. 

It seems to be that "limit=" gets added onto the query string and that this is
causing QP to fall back to non-QP.

My guess is it's related to "Audience", "Content", "Format", or "Additional
content types for books/printed materials", as these seem to be the only limits
added when "expanded_options=1".

5) Advanced search includes a lot of "wrdl" suffixes which will cause
QueryParser to fail.

(E.g. su,wrdl; se,wrdl; au,wrdl; cpn,wrdl; cfn,wrdl; pn,wrdl; pb,wrdl;
pl,wrdl;)

I've tried out some of these indexes without the wrdl suffice while NOT using
QueryParser, and they seem to work fine. I think we could get rid of these
suffixes from the advanced search.


6) QueryParser also seems to ignore repeated indexes in a query... 

Example:
kw:law || su:bulldozer || kw:test
22 results

kw:test || su:bulldozer || kw:law
3 results 

It should give the exact same results...


7) If you try to use the "Search also for broader subjects" link from the
search results and you don't have authorities, you'll get a database
authorities unavailable error. Not the end of the world. But maybe we should
hide these links if the Koha DB doesn't contain any authorities, since they'll
never ever work and will just confuse users.

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


More information about the Koha-bugs mailing list