[0476a00] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY xapian-download-http
|
---|
[c6b192c] | 8 | "https://oligarchy.co.uk/xapian/&xapian-version;/xapian-core-&xapian-version;.tar.xz">
|
---|
[0476a00] | 9 | <!ENTITY xapian-download-ftp " ">
|
---|
[a05a6f33] | 10 | <!ENTITY xapian-md5sum "636cca52a2a69bf3c1adb278bd9abf50">
|
---|
[64f21081] | 11 | <!ENTITY xapian-size "2.9 MB">
|
---|
[b3f68f50] | 12 | <!ENTITY xapian-buildsize "147 MB (add 154 MB for tests)">
|
---|
[a05a6f33] | 13 | <!ENTITY xapian-time "0.5 SBU (using parallelism=4; add 14 SBU for tests)">
|
---|
[0476a00] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="xapian" xreflabel="xapian-&xapian-version;">
|
---|
| 17 | <?dbhtml filename="xapian.html"?>
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | <title>Xapian-&xapian-version;</title>
|
---|
| 21 |
|
---|
| 22 | <indexterm zone="xapian">
|
---|
| 23 | <primary sortas="a-xapian">xapian</primary>
|
---|
| 24 | </indexterm>
|
---|
| 25 |
|
---|
| 26 | <sect2 role="package">
|
---|
| 27 | <title>Introduction to xapian</title>
|
---|
| 28 |
|
---|
| 29 | <para>
|
---|
| 30 | Xapian is an open source search engine library.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[0ddf4e7] | 33 | &lfs112_checked;
|
---|
[0476a00] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
[d56e7df] | 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&xapian-download-http;"/>
|
---|
| 40 | </para>
|
---|
[0476a00] | 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
[d56e7df] | 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&xapian-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
[0476a00] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[d56e7df] | 48 | <para>
|
---|
| 49 | Download MD5 sum: &xapian-md5sum;
|
---|
| 50 | </para>
|
---|
[0476a00] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[d56e7df] | 53 | <para>
|
---|
| 54 | Download size: &xapian-size;
|
---|
| 55 | </para>
|
---|
[0476a00] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[d56e7df] | 58 | <para>
|
---|
| 59 | Estimated disk space required: &xapian-buildsize;
|
---|
| 60 | </para>
|
---|
[0476a00] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[d56e7df] | 63 | <para>
|
---|
| 64 | Estimated build time: &xapian-time;
|
---|
| 65 | </para>
|
---|
[0476a00] | 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
[94945733] | 69 | <bridgehead renderas="sect3">Xapian Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 72 | <para role="optional">
|
---|
[d373629] | 73 | <xref linkend="valgrind"/> (for tests)
|
---|
[94945733] | 74 | </para>
|
---|
| 75 |
|
---|
[0476a00] | 76 | <para condition="html" role="usernotes">User Notes:
|
---|
| 77 | <ulink url="&blfs-wiki;/xapian"/></para>
|
---|
| 78 |
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2 role="installation">
|
---|
| 82 | <title>Installation of Xapian</title>
|
---|
[ed07746] | 83 | <!-- Interesting footnote - SSE support is only enabled on i686.
|
---|
| 84 | There seems to be some trickery involved in that. It's not essential
|
---|
| 85 | to operation on x86_64 though, so look into it at the next version of
|
---|
| 86 | xapian. -->
|
---|
[0476a00] | 87 |
|
---|
[d56e7df] | 88 | <para>
|
---|
| 89 | Install <application>Xapian</application> by
|
---|
| 90 | running the following commands:
|
---|
| 91 | </para>
|
---|
[0476a00] | 92 |
|
---|
[7a34460d] | 93 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 94 | --disable-static \
|
---|
[38fb1e3] | 95 | --docdir=/usr/share/doc/xapian-core-&xapian-version; &&
|
---|
[0476a00] | 96 | make</userinput></screen>
|
---|
| 97 |
|
---|
| 98 | <para>
|
---|
[e0013c4] | 99 | <!--
|
---|
[cb1e2842] | 100 | The regression tests are not recommended. On a fast (3.2 GHz i7)
|
---|
| 101 | system they took over five hours and two of four tests (the valgrind
|
---|
[8558044] | 102 | tests) failed. To run the test suite anyway,
|
---|
| 103 | issue: <command>make check</command>.
|
---|
[e0013c4] | 104 | The tests with 1.4.15 took under an hour, at 34 SBU total. Marking
|
---|
[48771ae] | 105 | the test suite as usable again. I had four passes and 0 failures:
|
---|
[e0013c4] | 106 | PASS: apitest
|
---|
| 107 | PASS: internaltest
|
---|
| 108 | PASS: stemtest
|
---|
| 109 | PASS: unittest
|
---|
| 110 | I did have Valgrind installed too. -renodr -->
|
---|
| 111 | To run the test suite, issue: <command>make check</command>.
|
---|
[0476a00] | 112 | </para>
|
---|
| 113 |
|
---|
[d56e7df] | 114 | <para>
|
---|
| 115 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 116 | </para>
|
---|
[0476a00] | 117 |
|
---|
| 118 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 119 |
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | <sect2 role="content">
|
---|
| 123 | <title>Contents</title>
|
---|
| 124 |
|
---|
| 125 | <segmentedlist>
|
---|
| 126 | <segtitle>Installed Programs</segtitle>
|
---|
| 127 | <segtitle>Installed Libraries</segtitle>
|
---|
| 128 | <segtitle>Installed Directories</segtitle>
|
---|
| 129 |
|
---|
| 130 | <seglistitem>
|
---|
| 131 | <seg>
|
---|
[ed07746] | 132 | copydatabase, quest, simpleexpand, simpleindex, simplesearch,
|
---|
[e0013c4] | 133 | xapian-check, xapian-compact, xapian-config,
|
---|
[8558044] | 134 | xapian-delve, xapian-metadata, xapian-pos, xapian-progsrv,
|
---|
[ed07746] | 135 | xapian-replicate, xapian-replicate-server and xapian-tcpsrv
|
---|
[0476a00] | 136 | </seg>
|
---|
| 137 | <seg>
|
---|
| 138 | libxapian.so
|
---|
| 139 | </seg>
|
---|
| 140 | <seg>
|
---|
[f3429309] | 141 | /usr/include/xapian,
|
---|
[e0013c4] | 142 | /usr/lib/cmake/xapian,
|
---|
| 143 | /usr/share/doc/xapian-core-&xapian-version;, and
|
---|
| 144 | /usr/share/xapian-core
|
---|
[0476a00] | 145 | </seg>
|
---|
| 146 | </seglistitem>
|
---|
| 147 | </segmentedlist>
|
---|
[4e95b37b] | 148 |
|
---|
| 149 | <variablelist>
|
---|
| 150 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 151 | <?dbfo list-presentation="list"?>
|
---|
| 152 | <?dbhtml list-presentation="table"?>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="copydatabase">
|
---|
| 155 | <term><command>copydatabase</command></term>
|
---|
| 156 | <listitem>
|
---|
| 157 | <para>
|
---|
[ff40dcf] | 158 | performs a document-by-document copy of one or more
|
---|
[4c24eb0a] | 159 | <application>Xapian</application> databases
|
---|
[4e95b37b] | 160 | </para>
|
---|
| 161 | <indexterm zone="xapian copydatabase">
|
---|
| 162 | <primary sortas="b-copydatabase">copydatabase</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="quest">
|
---|
| 168 | <term><command>quest</command></term>
|
---|
| 169 | <listitem>
|
---|
| 170 | <para>
|
---|
[4c24eb0a] | 171 | is a command line tool to search through a database
|
---|
[4e95b37b] | 172 | </para>
|
---|
| 173 | <indexterm zone="xapian quest">
|
---|
| 174 | <primary sortas="b-quest">quest</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | <varlistentry id="simpleexpand">
|
---|
| 180 | <term><command>simpleexpand</command></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>
|
---|
[4c24eb0a] | 183 | is a simple example program demonstrating query expansion
|
---|
[4e95b37b] | 184 | </para>
|
---|
| 185 | <indexterm zone="xapian simpleexpand">
|
---|
| 186 | <primary sortas="b-simpleexpand">simpleexpand</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
| 190 |
|
---|
| 191 | <varlistentry id="simpleindex">
|
---|
| 192 | <term><command>simpleindex</command></term>
|
---|
| 193 | <listitem>
|
---|
| 194 | <para>
|
---|
[ff40dcf] | 195 | indexes each paragraph of a text file as a
|
---|
[4c24eb0a] | 196 | <application>Xapian</application> document
|
---|
[4e95b37b] | 197 | </para>
|
---|
| 198 | <indexterm zone="xapian simpleindex">
|
---|
| 199 | <primary sortas="b-simpleindex">simpleindex</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="simplesearch">
|
---|
| 205 | <term><command>simplesearch</command></term>
|
---|
| 206 | <listitem>
|
---|
| 207 | <para>
|
---|
[4c24eb0a] | 208 | is a simple command line search utility
|
---|
[4e95b37b] | 209 | </para>
|
---|
| 210 | <indexterm zone="xapian simplesearch">
|
---|
| 211 | <primary sortas="b-simplesearch">simplesearch</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="xapian-check">
|
---|
| 217 | <term><command>xapian-check</command></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>
|
---|
[4c24eb0a] | 220 | checks the consistency of a database or table
|
---|
[4e95b37b] | 221 | </para>
|
---|
| 222 | <indexterm zone="xapian xapian-check">
|
---|
| 223 | <primary sortas="b-xapian-check">xapian-check</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
[e0013c4] | 228 | <!--
|
---|
[4e95b37b] | 229 | <varlistentry id="xapian-chert-update">
|
---|
| 230 | <term><command>xapian-chert-update</command></term>
|
---|
| 231 | <listitem>
|
---|
| 232 | <para>
|
---|
| 233 | update a chert database to the new format keys.
|
---|
| 234 | </para>
|
---|
| 235 | <indexterm zone="xapian xapian-chert-update">
|
---|
| 236 | <primary sortas="b-xapian-chert-update">xapian-chert-update</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
[e0013c4] | 240 | No longer installed in 1.4.15. - renodr
|
---|
| 241 | -->
|
---|
[4e95b37b] | 242 |
|
---|
| 243 | <varlistentry id="xapian-compact">
|
---|
| 244 | <term><command>xapian-compact</command></term>
|
---|
| 245 | <listitem>
|
---|
| 246 | <para>
|
---|
[4c24eb0a] | 247 | compacts a database, or merges and compacts several databases
|
---|
[4e95b37b] | 248 | </para>
|
---|
| 249 | <indexterm zone="xapian xapian-compact">
|
---|
| 250 | <primary sortas="b-xapian-compact">xapian-compact</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="xapian-config">
|
---|
| 256 | <term><command>xapian-config</command></term>
|
---|
| 257 | <listitem>
|
---|
| 258 | <para>
|
---|
[4c24eb0a] | 259 | reports information about the installed xapian
|
---|
[4e95b37b] | 260 | </para>
|
---|
| 261 | <indexterm zone="xapian xapian-config">
|
---|
| 262 | <primary sortas="b-xapian-config">xapian-config</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
[ed07746] | 267 | <varlistentry id="xapian-delve">
|
---|
| 268 | <term><command>xapian-delve</command></term>
|
---|
[4e95b37b] | 269 | <listitem>
|
---|
| 270 | <para>
|
---|
[ff40dcf] | 271 | inspects the contents of a <application>Xapian</application>
|
---|
[4c24eb0a] | 272 | database
|
---|
[4e95b37b] | 273 | </para>
|
---|
[ed07746] | 274 | <indexterm zone="xapian xapian-delve">
|
---|
| 275 | <primary sortas="b-xapian-delve">xapian-delve</primary>
|
---|
[4e95b37b] | 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
| 279 |
|
---|
| 280 | <varlistentry id="xapian-metadata">
|
---|
| 281 | <term><command>xapian-metadata</command></term>
|
---|
| 282 | <listitem>
|
---|
| 283 | <para>
|
---|
[4c24eb0a] | 284 | reads and writes user metadata
|
---|
[4e95b37b] | 285 | </para>
|
---|
| 286 | <indexterm zone="xapian xapian-metadata">
|
---|
| 287 | <primary sortas="b-xapian-metadata">xapian-metadata</primary>
|
---|
| 288 | </indexterm>
|
---|
| 289 | </listitem>
|
---|
| 290 | </varlistentry>
|
---|
| 291 |
|
---|
[ed07746] | 292 | <varlistentry id="xapian-pos">
|
---|
| 293 | <term><command>xapian-pos</command></term>
|
---|
| 294 | <listitem>
|
---|
| 295 | <para>
|
---|
[4c24eb0a] | 296 | inspects the contents of a flint table for development or debugging
|
---|
[ed07746] | 297 | </para>
|
---|
| 298 | <indexterm zone="xapian xapian-pos">
|
---|
| 299 | <primary sortas="b-xapian-pos">xapian-pos</primary>
|
---|
| 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
| 303 |
|
---|
[4e95b37b] | 304 | <varlistentry id="xapian-progsrv">
|
---|
| 305 | <term><command>xapian-progsrv</command></term>
|
---|
| 306 | <listitem>
|
---|
| 307 | <para>
|
---|
[4c24eb0a] | 308 | is a remote server for use with <application>ProgClient</application>
|
---|
[4e95b37b] | 309 | </para>
|
---|
| 310 | <indexterm zone="xapian xapian-progsrv">
|
---|
| 311 | <primary sortas="b-xapian-progsrv">xapian-progsrv</primary>
|
---|
| 312 | </indexterm>
|
---|
| 313 | </listitem>
|
---|
| 314 | </varlistentry>
|
---|
| 315 |
|
---|
| 316 | <varlistentry id="xapian-replicate">
|
---|
| 317 | <term><command>xapian-replicate</command></term>
|
---|
| 318 | <listitem>
|
---|
| 319 | <para>
|
---|
[4c24eb0a] | 320 | replicates a database from a master server to a local copy
|
---|
[4e95b37b] | 321 | </para>
|
---|
| 322 | <indexterm zone="xapian xapian-replicate">
|
---|
| 323 | <primary sortas="b-xapian-replicate">xapian-replicate</primary>
|
---|
| 324 | </indexterm>
|
---|
| 325 | </listitem>
|
---|
| 326 | </varlistentry>
|
---|
| 327 |
|
---|
| 328 | <varlistentry id="xapian-replicate-server">
|
---|
| 329 | <term><command>xapian-replicate-server</command></term>
|
---|
| 330 | <listitem>
|
---|
| 331 | <para>
|
---|
[4c24eb0a] | 332 | services database replication requests from clients
|
---|
[4e95b37b] | 333 | </para>
|
---|
| 334 | <indexterm zone="xapian xapian-replicate-server">
|
---|
| 335 | <primary sortas="b-xapian-replicate-server">xapian-replicate-server</primary>
|
---|
| 336 | </indexterm>
|
---|
| 337 | </listitem>
|
---|
| 338 | </varlistentry>
|
---|
| 339 |
|
---|
| 340 | <varlistentry id="xapian-tcpsrv">
|
---|
| 341 | <term><command>xapian-tcpsrv</command></term>
|
---|
| 342 | <listitem>
|
---|
| 343 | <para>
|
---|
| 344 | is the TCP daemon for use with <application>Xapian</application>'s
|
---|
[4c24eb0a] | 345 | remote backend
|
---|
[4e95b37b] | 346 | </para>
|
---|
| 347 | <indexterm zone="xapian xapian-tcpsrv">
|
---|
| 348 | <primary sortas="b-xapian-tcpsrv">xapian-tcpsrv</primary>
|
---|
| 349 | </indexterm>
|
---|
| 350 | </listitem>
|
---|
| 351 | </varlistentry>
|
---|
| 352 |
|
---|
| 353 | </variablelist>
|
---|
| 354 |
|
---|
[0476a00] | 355 | </sect2>
|
---|
| 356 |
|
---|
| 357 | </sect1>
|
---|