Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
int enable_commit = 1;
char *database = 0;
Res res = res_open(0, 0);
Res default_res = res_open(0, 0);
int enable_commit = 1;
char *database = 0;
Res res = res_open(0, 0);
Res default_res = res_open(0, 0);
" drop <db> Drop database <db>\n"
" commit Commit changes\n"
" clean Clean shadow files\n"
" drop <db> Drop database <db>\n"
" commit Commit changes\n"
" clean Clean shadow files\n"
"Options:\n"
" -t <type> Index files as <type> (grs or text).\n"
" -c <config> Read configuration file <config>.\n"
"Options:\n"
" -t <type> Index files as <type> (grs or text).\n"
" -c <config> Read configuration file <config>.\n"
}
if (res != ZEBRA_OK)
{
const char *add = zebra_errAdd(zh);
yaz_log(YLOG_FATAL, "Operation failed: %s %s",
zebra_errString(zh), add ? add : "");
}
if (res != ZEBRA_OK)
{
const char *add = zebra_errAdd(zh);
yaz_log(YLOG_FATAL, "Operation failed: %s %s",
zebra_errString(zh), add ? add : "");
if (trans_started)
if (zebra_end_trans(zh) != ZEBRA_OK)
yaz_log(YLOG_WARN, "zebra_end_trans failed");
if (trans_started)
if (zebra_end_trans(zh) != ZEBRA_OK)
yaz_log(YLOG_WARN, "zebra_end_trans failed");
zebra_get_version(version_str, sys_str);
printf("Zebra %s\n", version_str);
zebra_get_version(version_str, sys_str);
printf("Zebra %s\n", version_str);
printf("Zebra is free software, covered by the GNU General Public License, and you are\n");
printf("welcome to change it and/or distribute copies of it under certain conditions.\n");
printf("Zebra is free software, covered by the GNU General Public License, and you are\n");
printf("welcome to change it and/or distribute copies of it under certain conditions.\n");
if (strcmp(version_str, ZEBRAVER))
printf("zebraidx compiled version %s\n", ZEBRAVER);
#if YAZ_HAVE_ICU
if (strcmp(version_str, ZEBRAVER))
printf("zebraidx compiled version %s\n", ZEBRAVER);
#if YAZ_HAVE_ICU