How to view Zebra indexes..?
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. 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.
I think this will help: http://www.len.ro/work/koha-search-2/ -- View this message in context: http://koha.1045719.n5.nabble.com/How-to-view-Zebra-indexes-tp5600020p560005... Sent from the Koha-devel mailing list archive at Nabble.com.
I've worked on Koha indexing on 2 projects. Unfortunatly, I couldn't manage to create a new index type (in addition to word, phrase, date and number), wich is what you need to index differently your call numbers. It may be impossible. To view indexes, you should use YAZ : http://www.indexdata.com/yaz I only know it by name. Good luke. Regards, On Wed, Mar 28, 2012 at 12:33 PM, anjoze <joseanjos@gmail.com> wrote:
I think this will help: http://www.len.ro/work/koha-search-2/
-- View this message in context: http://koha.1045719.n5.nabble.com/How-to-view-Zebra-indexes-tp5600020p560005... Sent from the Koha-devel mailing list archive at Nabble.com. _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org 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 fridolyn.somers@gmail.com Marsillargues - France <fridolyn.somers@gmail.com>
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 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 Koha-devel@lists.koha-community.org 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/
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> Best regards; On Fri, Apr 13, 2012 at 12:51 PM, Adam Dickmeiss <adam@indexdata.dk> 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<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 Connecting...OK. Sent initrequest. Connection accepted by v3 target. ID : 81 Name : Zebra Information Server/GFS/YAZ Version: 4.1.3 3ec3ad2bd1e248022bbb7c9d762844**bef7f8a461 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/<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 Koha-devel@lists.koha-**community.org<Koha-devel@lists.koha-community.org> http://lists.koha-community.**org/cgi-bin/mailman/listinfo/**koha-devel<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/<http://bugs.koha-community.org/>
______________________________**_________________ Koha-devel mailing list Koha-devel@lists.koha-**community.org<Koha-devel@lists.koha-community.org> http://lists.koha-community.**org/cgi-bin/mailman/listinfo/**koha-devel<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/ <http://bugs.koha-community.org/>
-- Fridolyn SOMERS fridolyn.somers@gmail.com Marsillargues - France <fridolyn.somers@gmail.com>
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 <adam@indexdata.dk <mailto:adam@indexdata.dk>> 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 Koha-devel@lists.koha-community.org <mailto:Koha-devel@lists.koha-community.org> 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 Koha-devel@lists.koha-community.org <mailto:Koha-devel@lists.koha-community.org> 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 fridolyn.somers@gmail.com <mailto:fridolyn.somers@gmail.com> Marsillargues - France <mailto:fridolyn.somers@gmail.com>
On 13 April 2012 12:51, Adam Dickmeiss <adam@indexdata.dk> wrote:
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:
Excellent! Adam: Would you mind if I posted this example verbatim in the Koha wiki for future reference? I'll give you credit for it, of course! Best regards, Magnus Enger libriotech.no
On Fri, Apr 13, 2012 at 03:46:45PM +0200, Magnus Enger wrote:
On 13 April 2012 12:51, Adam Dickmeiss <adam@indexdata.dk> wrote:
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:
Excellent!
Adam: Would you mind if I posted this example verbatim in the Koha wiki for future reference? I'll give you credit for it, of course!
We allready have yaz-client example which might be expanded: http://wiki.koha-community.org/wiki/Troubleshooting_Koha_as_a_Z39.50_server Should we move yaz-client example to http://wiki.koha-community.org/wiki/Understanding_Zebra_indexing -- Dobrica Pavlinusic 2share!2flame dpavlin@rot13.org Unix addict. Internet consultant. http://www.rot13.org/~dpavlin
On 04/13/2012 03:46 PM, Magnus Enger wrote:
On 13 April 2012 12:51, Adam Dickmeiss<adam@indexdata.dk> wrote:
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: Excellent!
Adam: Would you mind if I posted this example verbatim in the Koha wiki for future reference? I'll give you credit for it, of course! No problem. You could also point to this chapter of the Zebra manual:
https://www.indexdata.com/zebra/doc/special-retrieval.html / Adam
Best regards, Magnus Enger libriotech.no
On Mon, Apr 16, 2012 at 12:58:01PM +0200, Adam Dickmeiss wrote:
On 04/13/2012 03:46 PM, Magnus Enger wrote:
On 13 April 2012 12:51, Adam Dickmeiss<adam@indexdata.dk> wrote:
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: Excellent!
Adam: Would you mind if I posted this example verbatim in the Koha wiki for future reference? I'll give you credit for it, of course! No problem. You could also point to this chapter of the Zebra manual:
Thanks, I consolidated this thread on http://wiki.koha-community.org/wiki/Understanding_Zebra_indexing for safe-keeping :-) -- Dobrica Pavlinusic 2share!2flame dpavlin@rot13.org Unix addict. Internet consultant. http://www.rot13.org/~dpavlin
participants (6)
-
Adam Dickmeiss -
anjoze -
Dobrica Pavlinusic -
Fridolyn SOMERS -
Magnus Enger -
Сергій Дубик