Displaying 4 results from an estimated 4 matches for "writabledatabase_add_docu".
2006 Dec 02
1
document_id globally incrementing
Hi All
I have made my xapian indexer automatically create new indexes once it
reaches X documents in each, and for each document that I add to each
sub-index, I record its document_id and its index_id (relating to what
index the document ended up in).
writabledatabase_add_document() returns document_id:s beginning from 0
for each new index when you add new documents, like you would expect.
So far all good.
Here is the problem: when I search through the indexes together (using
database_add_database() on each sub-index), all the document_id:s are
numbered globally, so i...
2006 Mar 24
1
(no subject)
i want to know how to add documents in quartz database in php with the help of "WritableDatabase_add_document",didn't get the proper usage
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.tartarus.org/pipermail/xapian-discuss/attachments/20060324/49883131/attachment-0002.htm
2008 Apr 20
1
Exception DatabaseCorruptError under php
...add a new document it throws:
Fatal error: Uncaught exception 'Exception' with message
'DatabaseCorruptError: Failed to unlink
/var/lib/xapian/trade.ar/termlist.baseA: No such file or directory'
in /usr/share/php5/xapian.php:1140
Stack trace:
#0 /usr/share/php5/xapian.php(1140):
writabledatabase_add_document(Resource id #18, Object(XapianDocument))
#1 /home/indexer/CDetails.php(431):
XapianWritableDatabase->add_document(Object(XapianDocument))
#2 /home/indexer/CDetails.php(379): CDetails->postDetails('E',
'2000-01-07', '001', '-1', '4', '200BA...
2006 Apr 18
1
gettin erro with xapian binidngs 0.9.5
...me();
foreach($lines as $l)
{
if($count==0)
{
$count++;
continue;
}
$pieces=explode(" ",$l);
$term= rtrim(souindics(souindics_preprocess($pieces[0])));
echo $term." ".$pieces[1]."<br>";
$pos=$pieces[1];
Document_add_posting($doc, $term, $pos);
}//end for
WritableDatabase_add_document($database, $doc);
WritableDatabase_flush($database);
$database = Null;
--------------------------------------------------------------------------------------------------
Plz help.... Btw i had to install 0.9.5 coz i reinstalled my OS n on
xapian.org, the earlier version ie. 0.9.4 was not ava...