Hi, Is there any way to show how many biblios index has zebra? Running on the intranet searching for an item on item search I get some results. Trying to use the OPAC or the Search bar I don't have any matches, zebra is running and I have run perl ./misc/migration_tools/rebuild_zebra.pl -b -a -r This is the output of the zebra server: 14:58:29-22/09 zebrasrv(9) [session] Session - OK 9 unix:/home/vagrant/koha-dev/var/run/zebradb/bibliosocket 30089 14:58:29-22/09 zebrasrv(9) [request] Auth idPass kohauser - 14:58:29-22/09 zebrasrv(9) [request] Init OK - ID:81 Name:ZOOM-C/YAZ Version:4.2.30 98864b44c654645bc16b2c54f822dc2e45a93031 14:58:29-22/09 zebrasrv(9) [log] dict_lookup_grep: (\x01e\x01\x02)(s(o|\xC3\xB3|\xC3\xB2|\xC3\xB5|\xC3\xB4|\xC5\x8F|\xC7\xAB|\xC8\xAF|\xC5\x91|\xC7\x92|\xC8\x8D|\xC8\x8F)ftw(a|\xC3\xA1|\xC3\xA0|\xC3\xA3|\xC3\xA5|\xC3\xA2|\xC4\x83|\xC4\x85|\xC8\xA7|\xC7\x8E|\xC8\x81|\xC8\x83)r(e|\xC3\xA9|\xC3\xA8|\xC3\xAA|\xE1\xBA\xBD|\xC4\x95|\xC4\x99|\xC4\x97|\xC4\x9B|\xC8\x85|\xC8\x87).*) 14:58:29-22/09 zebrasrv(9) [request] Search biblios OK 0 1 1+0 RPN @attrset Bib-1 @attr 1=1016 @attr 4=6 @attr 5=1 software 14:58:30-22/09 zebrasrv(9) [session] Connection closed by client 14:58:30-22/09 zebrasrv(9) [warn] ir_session (exception) But there is no match. What I'm missing? Regards
Hi El jue., 22 sept. 2016 a las 12:01, Rodrigo Santellan (<rsantellan@gmail.com>) escribió:
Hi,
Is there any way to show how many biblios index has zebra? Running on the intranet searching for an item on item search I get some results.
You can use a special zebra index to query all records: # export instance=your_instance # yaz-client unix://var/run/koha/${instance}/bibliosocket Z> base biblios Z> find @attr 1=_ALLRECORDS @attr 2=103 "" Z> quit You can then compare with your MySQL data: # sudo koha-mysql ${instance}
SELECT COUNT(*) FROM biblio; \q
Regards -- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
Tomas, It seems that the _ALLRECORDS is not supported, according to http://www.indexdata.com/zebra/doc/querymodel-zebra.html is experimental. But doesn't give an alternative. *yaz-client -c ./etc/zebradb/ccl.properties unix:/home/vagrant/koha-dev/var/run/zebradb/bibliosocketConnecting...OK.Sent initrequest.Connection accepted by v3 target.ID : 81Name : Zebra Information Server/GFS/YAZVersion: 4.2.30 98864b44c654645bc16b2c54f822dc2e45a93031Options: search present delSet triggerResourceCtrl scan sort extendedServices namedResultSetsElapsed: 0.003370Z> base bibliosZ> find @attr 1=_ALLRECORDS @attr 2=103 ""Sent searchRequest.Received SearchResponse.Search was a bloomin' failure.Number of hits: 0, setno 1Result Set Status: nonerecords returned: 0Diagnostic message(s) from database: [114] Unsupported Use attribute -- v2 addinfo '_ALLRECORDS'Elapsed: 0.004522* Server log is this: 13:45:40-22/09 [log] zebra_start 2.0.44 419ad759807269fdfa379799a051ed3a551c6541 17:05:29-22/09 zebrasrv(12) [session] Session - OK 12 unix:/home/vagrant/koha-dev/var/run/zebradb/bibliosocket 31001 17:05:29-22/09 zebrasrv(12) [request] Auth none 17:05:29-22/09 zebrasrv(12) [request] Init OK - ID:81 Name:YAZ Version:4.2.30 98864b44c654645bc16b2c54f822dc2e45a93031 17:05:50-22/09 zebrasrv(12) [request] Search biblios ERROR 114 1 1+0 RPN @attrset Bib-1 @attr 2=103 @attr 1=_ALLRECORDS "" Regards. On Thu, Sep 22, 2016 at 2:00 PM, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
Hi
El jue., 22 sept. 2016 a las 12:01, Rodrigo Santellan (< rsantellan@gmail.com>) escribió:
Hi,
Is there any way to show how many biblios index has zebra? Running on the intranet searching for an item on item search I get some results.
You can use a special zebra index to query all records:
# export instance=your_instance # yaz-client unix://var/run/koha/${instance}/bibliosocket Z> base biblios Z> find @attr 1=_ALLRECORDS @attr 2=103 "" Z> quit
You can then compare with your MySQL data: # sudo koha-mysql ${instance}
SELECT COUNT(*) FROM biblio; \q
Regards -- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
participants (2)
-
Rodrigo Santellan -
Tomas Cohen Arazi