search for: xipian

Displaying 2 results from an estimated 2 matches for "xipian".

Did you mean: xapian
2014 Jun 26
2
About memory index/search in multithread program
There may be some solutions?for example class XAPIAN { *static* int InitDatabase(); //for reading only, do not need lock, but if writing use lock int Search(); //safe in one object, do not need lock }; XIPIAN xp[ THREAD_NUM ]; one thread use one object, they use one database. these can be in memory with one database. 2014-06-24 20:48 GMT+08:00 Olly Betts <olly at survex.com>: > On Thu, Jun 19, 2014 at 10:52:13PM +0800, Yanxiong Lu wrote: > > Why xapian don't support memory index/...
2014 Jun 19
2
About memory index/search in multithread program
hi, Why xapian don't support memory index/search ? I know there is a method can create memory datebase, like this: Xapian::WritableDatabase db(Xapian::InMemory::open()); *But, if i use these in multithread program, i need create many datebases!!* Xapian::WritableDatabase db1(Xapian::InMemory::open()); //used in thread1 Xapian::WritableDatabase db2(Xapian::InMemory::open()); //used in