Noteworthy features of Xapian include:
- Free Software/Open Source - licensed under the GPL.
- Supports Unicode (including codepoints beyond the BMP), and stores indexed
data in UTF-8.
portable - runs on Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, Solaris,
HP-UX, Tru64, IRIX, and probably other Unix platforms; as well as
Microsoft Windows and OS/2.
- Written in C++, with bindings allowing use from
many other languages.
- Ranked probabilistic search - important words get more weight than
unimportant words, so the most relevant documents are more likely to come near
the top of the results list.
- Relevance feedback - given one or more documents, Xapian can suggest the
most relevant index terms to expand a query, suggest related documents,
categorise documents, etc.
- Phrase and proximity searching - users can search for words
occurring in an exact phrase or within a specified number of words,
either in a specified order, or in any order.
- Full range of structured boolean search operators ("stock NOT market",
etc). The results of the boolean search are ranked by the probabilistic
weights. Boolean filters can also be applied to restrict a probabilistic
- Supports stemming of search terms (e.g. a search for "football" would
match documents which mention "footballs" or "footballer"). This helps
to find relevant documents which might otherwise be missed.
Snowball stemmers are currently
included for Danish, Dutch, English, Finnish, French, German, Hungarian,
Italian, Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish, and
- Wildcard search is supported (e.g. "xap*").
- Synonyms are supported, both explicitly (e.g. "~cash") and as an automatic
form of query expansion.
- Xapian can suggest spelling corrections for user supplied queries. This
is based on words which occur in the data being indexed, so works even for
words which wouldn't be found in a dictionary (e.g. "xapian" would be
suggested as a correction for "xapain").
- Faceted search is supported.
- Supports database files > 2GB - essential for
scaling to large document collections.
- Platform independent data formats - you can build a database on one
machine and search it on another.
- Allows simultaneous update and searching. New documents become searchable
As well as the library, we supply a number of small example programs, and
a larger application - an indexing and CGI search application called Omega:
- The indexer supplied can index HTML, PHP, PDF, PostScript,
OpenOffice/StarOffice, OpenDocument, Microsoft Word/Excel/Powerpoint/Works,
Word Perfect, AbiWord, RTF, DVI, Perl POD documentation, CSV, SVG, RPM
packages, Debian packages, and plain text.
Adding support for indexing other formats is easy where conversion filters
are available. This indexer works using the
filing system, but we also provide a script to allow the htdig web
crawler to be hooked in, allowing remote sites to be searched using Omega.
- You can also index data from any SQL or other RDBMS supported by the
Perl DBI module.
That includes MySQL, PostgreSQL, SQLite, Oracle, DB2, MS SQL, LDAP, and ODBC.
- CGI search front-end supplied with highly customisable appearance. This
can also be customised to output results in XML or CSV, which is useful if you
just want raw search results which you can process in your own page layout code
for dynamically generated pages, or for integrating search into an AJAX