<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Waqar,<br>
      <br>
      I recently discovered that if you have zero biblios in your
      database and you have an old (full) zebra database (with biblios
      indexed from earlier), if you do a rebuildzebra it does NOT clear
      the zebra index.  If you really want to empty the zebra database
      (without messing about with the zebra database files) maybe you
      should create a single bib record (say) "Test Title", rebuild
      zebra; then delete that test title and do a rebuildzebra -z to
      remove the test title from the index.<br>
      <br>
      I hope that helps.<br>
      <br>
      Ian<br>
      On 27/12/2012 11:52, Waqar Azeem wrote:<br>
    </div>
    <blockquote
cite="mid:CAMcty-OVFp34tQrbWKT-TSH6AO3_SmDFhCQqmR=jAUhaFYq42Q@mail.gmail.com"
      type="cite">EDIT:<br>
      <br>
      I mistakenly copy the command with -a<br>
      consider it command with argument -b. Old data still not deleted.<br>
      <br>
      koha@koha:~/kohaclone$ /home/koha/kohaclone/misc/migration_tools/<a
        moz-do-not-send="true" href="http://rebuild_zebra.pl">rebuild_zebra.pl</a>
      -b -r -v<br>
      Zebra configuration information<br>
      ================================<br>
      Zebra biblio directory      =
      /home/koha/koha-dev/var/lib/zebradb/biblios<br>
      Zebra authorities directory =
      /home/koha/koha-dev/var/lib/zebradb/authorities<br>
      Koha directory              = /home/koha/kohaclone<br>
      BIBLIONUMBER in :     999$c<br>
      BIBLIOITEMNUMBER in : 999$d<br>
      ================================<br>
      skipping authorities<br>
      ====================<br>
      exporting biblio<br>
      ====================<br>
      <br>
      Records exported: 0<br>
      ====================<br>
      REINDEXING zebra<br>
      ====================<br>
      ====================<br>
      CLEANING<br>
      ====================<br>
      <br>
      <br>
      <br clear="all">
      <div>--<br>
        Thanks & Best Regards,<br>
        Waqar Azeem</div>
      <br>
      <br>
      <div class="gmail_quote">On Thu, Dec 27, 2012 at 4:35 PM, Waqar
        Azeem <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:waqar.azeem@itcompletes.com" target="_blank">waqar.azeem@itcompletes.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          A couple of months back I down loaded Koha VM from <a
            moz-do-not-send="true"
            href="http://sourceforge.net/projects/koha-va/files/"
            target="_blank">http://sourceforge.net/projects/koha-va/files/</a>
          by <span>Kyle</span><br>
          <br>
          After importing MARC records I found that search is not
          working on Other languages, and to overcome this I need to
          enable some ICU option in zebra indexer.<br>
          <br>
          The simplest way that I thought was to drop the database and
          re-run the Web Installer and Import data.<br>
          <br>
          After re-running the web Installer (i think) the Old indexed
          data is already there and on my empty database it brings the
          old data again and again.<br>
          <br>
          I Tried to re-index the server but no success so far.<br>
          <br>
          I hope this is the right command to re-index.<br>
          koha@koha:~$ export PERL5LIB=/home/koha/kohaclone/<br>
          koha@koha:~$ export
          KOHA_CONF=/home/koha/koha-dev/etc/koha-conf.xml<br>
          koha@koha:~$ /home/koha/kohaclone/misc/migration_tools/<a
            moz-do-not-send="true" href="http://rebuild_zebra.pl"
            target="_blank">rebuild_zebra.pl</a> -b -r -v<br>
          <br>
          <br>
          koha@koha:~/kohaclone$
          /home/koha/kohaclone/misc/migration_tools/<a
            moz-do-not-send="true" href="http://rebuild_zebra.pl"
            target="_blank">rebuild_zebra.pl</a> -a -r -v<br>
          Zebra configuration information<br>
          ================================<br>
          Zebra biblio directory      =
          /home/koha/koha-dev/var/lib/zebradb/biblios<br>
          Zebra authorities directory =
          /home/koha/koha-dev/var/lib/zebradb/authorities<br>
          Koha directory              = /home/koha/kohaclone<br>
          BIBLIONUMBER in :     999$c<br>
          BIBLIOITEMNUMBER in : 999$d<br>
          ================================<br>
          ====================<br>
          exporting authority<br>
          ====================<br>
          <br>
          Records exported: 0<br>
          ====================<br>
          REINDEXING zebra<br>
          ====================<br>
          <b><span style="color:rgb(102,0,0)">skipping biblios</span></b><br>
          ====================<br>
          CLEANING<br>
          ====================<br>
          <br>
          <br>
          <br clear="all">
          <div>--<br>
            Thanks & Best Regards,<br>
            Waqar Azeem</div>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Koha-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a>
<a class="moz-txt-link-freetext" href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a>
website : <a class="moz-txt-link-freetext" href="http://www.koha-community.org/">http://www.koha-community.org/</a>
git : <a class="moz-txt-link-freetext" href="http://git.koha-community.org/">http://git.koha-community.org/</a>
bugs : <a class="moz-txt-link-freetext" href="http://bugs.koha-community.org/">http://bugs.koha-community.org/</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Ian Bays
Director of Projects, PTFS Europe Limited
Content Management and Library Solutions
+44 (0) 800 756 6803 (phone)
+44 (0) 7774 995297 (mobile)
+44 (0) 800 756 6384 (fax) 
skype: ian.bays
email: <a class="moz-txt-link-abbreviated" href="mailto:ian.bays@ptfs-europe.com">ian.bays@ptfs-europe.com</a></pre>
  </body>
</html>