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