search for: database_add_database

Displaying 1 result from an estimated 1 matches for "database_add_database".

2006 Dec 02
1
document_id globally incrementing
...nd 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 it seems while writabledatabase_add_document() reset the document_id counter for each subindex, in the subindexes they were never reset. So instead of having 10 sub-indexes with 50 documents in each, document_id:s ranging from 0...