File: simple-indexing.html

package info (click to toggle)
idzebra 2.2.10-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 10,644 kB
  • sloc: ansic: 54,389; xml: 27,054; sh: 6,211; makefile: 1,099; perl: 210; tcl: 64
file content (32 lines) | stat: -rw-r--r-- 3,304 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<html><head><meta charset="ISO-8859-1"><title>4.Indexing with no Record IDs (Simple Indexing)</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="Zebra - User's Guide and Reference"><link rel="up" href="administration.html" title="Chapter6.Administrating Zebra"><link rel="prev" href="locating-records.html" title="3.Locating Records"><link rel="next" href="file-ids.html" title="5.Indexing with File Record IDs"></head><body><link rel="stylesheet" type="text/css" href="common/style1.css"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">4.Indexing with no Record IDs (Simple Indexing)</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="locating-records.html">Prev</a></td><th width="60%" align="center">Chapter6.Administrating <span class="application">Zebra</span></th><td width="20%" align="right"><a accesskey="n" href="file-ids.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="simple-indexing"></a>4.Indexing with no Record IDs (Simple Indexing)</h2></div></div></div><p>
    If you have a set of records that are not expected to change over time
    you may can build your database without record IDs.
    This indexing method uses less space than the other methods and
    is simple to use.
   </p><p>
    To use this method, you simply omit the <code class="literal">recordId</code> entry
    for the group of files that you index. To add a set of records you use
    <code class="literal">zebraidx</code> with the <code class="literal">update</code> command. The
    <code class="literal">update</code> command will always add all of the records that it
    encounters to the index - whether they have already been indexed or
    not. If the set of indexed files change, you should delete all of the
    index files, and build a new index from scratch.
   </p><p>
    Consider a system in which you have a group of text files called
    <code class="literal">simple</code>.
    That group of records should belong to a <acronym class="acronym">Z39.50</acronym> database called
    <code class="literal">textbase</code>.
    The following <code class="literal">zebra.cfg</code> file will suffice:
   </p><p>

    </p><pre class="screen">
     profilePath: /usr/local/idzebra/tab
     attset: bib1.att
     simple.recordType: text
     simple.database: textbase
    </pre><p>

   </p><p>
    Since the existing records in an index can not be addressed by their
    IDs, it is impossible to delete or modify records when using this method.
   </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="locating-records.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="administration.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="file-ids.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">3.Locating Records</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">5.Indexing with File Record IDs</td></tr></table></div></body></html>