On 04/13/2012 02:09 PM, Fridolyn SOMERS wrote:
Thanks a lot.
I've looked for that since I work on koha.
I will try it.

Do you know what "seq" means ?
ie : <index name="title" type="w" seq="12">to</index>
sequence number, position of "token".

/ Adam


Best regards;

On Fri, Apr 13, 2012 at 12:51 PM, Adam Dickmeiss <[email protected] <mailto:[email protected]>> wrote:

    On 03/28/2012 12:11 PM, Сергій Дубик wrote:

        Hi all!

        Koha Wiki has an page
        Understanding Zebra indexing
        (http://wiki.koha-community.org/wiki/Understanding_Zebra_indexing)
        about adding fileds/subfields to seach indexes.


    You should be able to view indexing for any record by doing a
    'present' of the record with element set zebra::index and syntax
    being XML or SUTRS.

    Most Z39.50 client should be able to do that.

    yaz-client example:

    yaz-client z3950.indexdata.com/marc <http://z3950.indexdata.com/marc>
    Connecting...OK.
    Sent initrequest.
    Connection accepted by v3 target.
    ID : 81
    Name : Zebra Information Server/GFS/YAZ
    Version: 4.1.3 3ec3ad2bd1e248022bbb7c9d762844bef7f8a461
    Options: search present delSet triggerResourceCtrl scan sort
    extendedServices namedResultSets
    Elapsed: 0.055151
    Z> f computer
    Sent searchRequest.
    Received SearchResponse.
    Search was a success.
    Number of hits: 10, setno 1
    SearchResult-1: term=computer cnt=10
    records returned: 0
    Elapsed: 0.029065
    Z> s
    Sent presentRequest (1+1).
    Records: 1
    [marc]Record type: USmarc
    00366nam 22001698a 4504
    001 11224466
    003 DLC
    005 00000000000000.0
    008 910710c19910701nju 00010 eng
    010 $a 11224466
    040 $a DLC $c DLC
    050 00 $a 123-xyz
    100 10 $a Jack Collins
    245 10 $a How to program a computer
    260 1 $a Penguin
    263 $a 8710
    300 $a p. cm.

    nextResultSetPosition = 2
    Elapsed: 0.026880
    Z> form xml
    Z> elem zebra::index
    Z> s 1+1
    Sent presentRequest (1+1).
    Records: 1
    Record type: XML
    <record xmlns="http://www.indexdata.com/zebra/"; sysno="2"
    set="zebra::index">
    <index name="Author-name-personal" type="w" seq="1">@^</index>
    <index name="Author-name-personal" type="w" seq="1"></index>
    <index name="Author-name-personal" type="w" seq="2">jack</index>
    <index name="Author-name-personal" type="w" seq="3">collins</index>
    <index name="Author-name-personal" type="p" seq="4">jack
    collins</index>
    <index name="Author" type="w" seq="4">@^</index>
    <index name="Author" type="w" seq="1"></index>
    <index name="Author" type="w" seq="5">jack</index>
    <index name="Author" type="w" seq="6">collins</index>
    <index name="Author" type="p" seq="7">jack collins</index>
    <index name="any" type="w" seq="7">@^</index>
    <index name="any" type="w" seq="1"></index>
    <index name="any" type="w" seq="8">jack</index>
    <index name="any" type="w" seq="9">collins</index>
    <index name="title" type="w" seq="10">@^</index>
    <index name="title" type="w" seq="1"></index>
    <index name="title" type="w" seq="11">how</index>
    <index name="title" type="w" seq="12">to</index>
    <index name="title" type="w" seq="13">program</index>
    <index name="title" type="w" seq="14">a</index>
    <index name="title" type="w" seq="15">computer</index>
    <index name="title" type="p" seq="16">how to program a
    computer</index>
    <index name="any" type="w" seq="16">@^</index>
    <index name="any" type="w" seq="17">how</index>
    <index name="any" type="w" seq="18">to</index>
    <index name="any" type="w" seq="19">program</index>
    <index name="any" type="w" seq="20">a</index>
    <index name="any" type="w" seq="21">computer</index>
    <index name="Place-publication" type="w" seq="22">@^</index>
    <index name="Place-publication" type="w" seq="1"></index>
    <index name="Place-publication" type="w" seq="23">penguin</index>
    <index name="any" type="w" seq="24">@^</index>
    <index name="any" type="w" seq="25">penguin</index>
    <index name="_ALLRECORDS" type="w" seq="2"></index>
    </record>
    nextResultSetPosition = 2
    Elapsed: 0.027786

    / Adam



        In particular are indices for the some case:

        Name-and-title = {"Goddard College"}
        Name = {"Faculty publications"}
        Subject = {"Faculty publications"}
        Subject:p = {"Faculty publications"}
        Corporate-name = {"Faculty publications"}

        General question: how to see the generated indexes for a
        specific record?

        ...
        For my case, I try to build the correct indexes for call
        numbers, UDC,
        Dewey, BBK codes etc.
        For ex. we have callnum = 222.12/4
        I need a searches like next:
        22*            - 223.14/1, 224.1/2 ...
        222*          - all indexes start from 222 - 222.11/1,
        222.12/2 ...
        222.12*     - in result I need only 222.12/1, 222.12/2,
        222.12/3 ...
        During formation of index - point, space, parentheses or other
        mark
        should not break the index into pieces.
        _______________________________________________
        Koha-devel mailing list
        [email protected]
        <mailto:[email protected]>
        http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
        website : http://www.koha-community.org/
        git : http://git.koha-community.org/
        bugs : http://bugs.koha-community.org/


    _______________________________________________
    Koha-devel mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
    website : http://www.koha-community.org/
    git : http://git.koha-community.org/
    bugs : http://bugs.koha-community.org/




--
Fridolyn SOMERS
[email protected] <mailto:[email protected]>
Marsillargues - France
<mailto:[email protected]>

_______________________________________________
Koha-devel mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to