2 Mar 2009 18:36
Xapian, PHP bindings and spellings correction
Bruno at Badiliz <xapian <at> badiliz.fr>
2009-03-02 17:36:01 GMT
2009-03-02 17:36:01 GMT
Hello,
With PHP, I try to get spelling corrections but after 2 days of trying I can
make it work !!!
Here is my < simple > code :
<?php
require_once( '../global.info.php' );
require_once( 'xapian.class.php' );
require_once( 'xapianencode.func.php' );
// Open the database for searching.
try {
$database = new XapianDatabase(
$_PATH.'/_inc/cache/xapian/pa' );
// Start an enquire session.
$enquire = new XapianEnquire($database);
// Combine the rest of the command line arguments with
spaces between
// them, so that simple queries don't have to be quoted at
(Continue reading)
RSS Feed