Find file
Fetching contributors…
Cannot retrieve contributors at this time
106 lines (80 sloc) 2.99 KB
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; See the LICENSE file for licensing information.
(in-package #:cl-user)
(defpackage #:cl-sphinx-search
(:use :cl :iolib.sockets :babel :cl-pack)
(:import-from :cl-sphinx-search-asd :*cl-sphinx-search-version*)
(:export #:set-server
"This package provides an interface to the search daemon (@em{searchd})
for @a[]{Sphinx}.
@begin[About Sphinx]{section}
From the site:
Sphinx is a full-text search engine, distributed under GPL version 2.
Commercial license is also available for embedded use.
Generally, it's a standalone search engine, meant to provide fast,
size-efficient and relevant fulltext search functions to other applications.
Sphinx was specially designed to integrate well with SQL databases and
scripting languages. Currently built-in data sources support fetching data
either via direct connection to MySQL or PostgreSQL, or using XML pipe
mechanism (a pipe to indexer in special XML-based format which Sphinx
As for the name, Sphinx is an acronym which is officially decoded as
SQL Phrase Index. Yes, I know about CMU's Sphinx project.
(let ((sph (make-instance 'sphinx-client)))
(add-query sph \"test\")
(run-queries sph))
@begin[One class]{section}
There is just one class:
Setting options/parameters:
Running queries:
This port is based on version 0.22 (deployed to CPAN
@a[]{here}), which
itself says:
This module is based on (not deployed to CPAN) for
Sphinx version 0.9.7-rc1, by Len Kranendonk, which was in turn
based on the Sphinx PHP API.
Also used was the api for python which was supplied with the source code
download for Sphinx Search v0.9.9-rc2, in the @code{api/} directory.
This documentation was generated by @a[]{atdoc},
the documentation generation system written by David Lichteblau.