Displaying 2 results from an estimated 2 matches for "xapian_db".
2012 Jul 26
2
ruby bindings, ruby 1.9.3 and xapian
Hello,
I've problem with xapian or sth.
Ubuntu 8.04, ruby 1.9.3 with rvm, when Im trying to initialize
database, Im getting this error:
irb > require 'xapian'
==> true
irb > database = Xapian::WritableDatabase.new('/full_path/db/xapian_db/development', Xapian::DB_CREATE_OR_OPEN)
ArgumentError: Wrong arguments for overloaded method 'WritableDatabase.new'.
Possible C/C++ prototypes are:
WritableDatabase.new()
WritableDatabase.new(std::string const &path, int action)
WritableDatabase.new(Xapian::WritableData...
2009 Aug 17
1
Xapian DatabaseError
...eOpeningError: Couldn't detect type of database. The code is the same but runned in two different modality didn't work.
To test my page in local I use EasyPhp, I've loaded the php_xapian.dll extension and the problem remains. Why?
all the file and dir: search.php, search_function.inc, xapian_db are in the same dir
1) This is the code of search page
if(isset($_GET['query'])){
$query = $_GET['query'];
require_once 'search_function.inc';
simpleSearch($query,"xapian_db"); --> xapian_db is the path where is stored xapian db
}
2) This is the cod...