<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello all!<br>
    <br>
    Here at PBC, I'm in the process of trying to relink all of our
    biblios to the right authority files. Somehow, they were an <i>incredible</i>
    mess. I've created the authority records okay, but when trying to
    run link_bibs_to_authorities.pl, it links them to the wrong places.<br>
    <br>
    Investigating, it seems like zebra isn't giving the right search
    results back.<br>
    <br>
    I can confirm this in yaz-client using the query that is created by
    koha. Searching for "Bentley, Peter, Ed." returns 4 results, only
    two of which are close. Actually, the record I'm trying to match is
    "Bentley, Peter, (Ed.)" - the last option.<br>
    <br>
    Interestingly enough, if I search for "Bentley,
    3432531531532513985735981<anything at all here>" it will also
    show me the same four results.<br>
    So does searching for "Bentley 513513531513515151".<br>
    But searching for "Bentleyr435435151551251" shows no results, as I
    would expect.<br>
    <br>
    Am afraid I'm stumped here. PQF seems quite horrendously confusing.
    What do the numbers mean, in what context etc. Tried reading the
    indexdata manual, and still have no clue!<br>
    <br>
    Can anyone shed any light?<br>
    <br>
    Nick<br>
    <br>
    Z> find @or @attr 1=Local-Number @attr 7=1 0 @and @attr
    1=authtype @attr 5=100 @attr 4=6 "PERSO_NAME" @attr 1=Match-heading
    @attr 4=1 @attr 5=100 @attr 6=3 "Bentley, Peter, Ed."<br>
    Sent searchRequest.<br>
    Received SearchResponse.<br>
    Search was a success.<br>
    Number of hits: 4, setno 2<br>
    SearchResult-1: term=PERSONAME cnt=16429, term=Bentley  cnt=4<br>
    records returned: 0<br>
    Elapsed: 0.006522<br>
    Z> show 1<br>
    Sent presentRequest (1+1).<br>
    Records: 1<br>
    [authorities]Record type: USmarc<br>
    00236naa a2200109   4500<br>
    001 1979<br>
    003 aukapbc<br>
    005 20160623125213.0<br>
    008 160623|| aca||aabn           | a|a     d<br>
    040    $a aukapbc $c aukapbc<br>
    100    $a Bentley, James<br>
    942    $a PERSO_NAME<br>
    <br>
    nextResultSetPosition = 2<br>
    Elapsed: 0.001677<br>
    Z> show 2<br>
    Sent presentRequest (2+1).<br>
    Records: 1<br>
    [authorities]Record type: USmarc<br>
    00245naa a2200109   4500<br>
    001 1980<br>
    003 aukapbc<br>
    005 20160623125213.0<br>
    008 160623|| aca||aabn           | a|a     d<br>
    040    $a aukapbc $c aukapbc<br>
    100    $a Bentley, Michael $d 1935-<br>
    942    $a PERSO_NAME<br>
    <br>
    nextResultSetPosition = 3<br>
    Elapsed: 0.001511<br>
    Z> show 3<br>
    Sent presentRequest (3+1).<br>
    Records: 1<br>
    [authorities]Record type: USmarc<br>
    00236naa a2200109   4500<br>
    001 1981<br>
    003 aukapbc<br>
    005 20160623125213.0<br>
    008 160623|| aca||aabn           | a|a     d<br>
    040    $a aukapbc $c aukapbc<br>
    100    $a Bentley, Peter<br>
    942    $a PERSO_NAME<br>
    <br>
    nextResultSetPosition = 4<br>
    Elapsed: 0.001448<br>
    Z> show 4<br>
    Sent presentRequest (4+1).<br>
    Records: 1<br>
    [authorities]Record type: USmarc<br>
    00243naa a2200109   4500<br>
    001 1982<br>
    003 aukapbc<br>
    005 20160623125213.0<br>
    008 160623|| aca||aabn           | a|a     d<br>
    040    $a aukapbc $c aukapbc<br>
    100    $a Bentley, Peter, (Ed.)<br>
    942    $a PERSO_NAME<br>
    <br>
    nextResultSetPosition = 5<br>
    Elapsed: 0.001382<br>
    <br>
  </body>
</html>