Hello, I'm creating queries in our software, and I came across following issues: 1) The java 2.3.2 query interface contains a method public void extractTerms(Set terms) which is missing in the current version of CLucene. I think that it would be very useful while creating MultiPraseQueries based on wildcard queries, range queries or other subqueries that produce more than one Term (some of our stemmer may produce more than one stem, searching for thesaurus similar etc.) Is anybody working on this functionality? 2) We would also need the span queries - so, same question arises - is anybody working on this functionality? 3) I looked over the MultiPhraseQuery very shortly and I just came across this piece of code, that seems to me to be strange (But I haven't not test it yet). On the 5. line you call ++j, bud this index is being increased on the line 3 too - it this really intended that you free only every second Term?
MultiPhraseQuery::~MultiPhraseQuery(){ for (size_t i = 0; i < termArrays->size(); i++){ for ( size_t j=0;j<termArrays->at(i)->length;j++ ) { _CLLDECDELETE(termArrays->at(i)->values[j]); ++j; } _CLDELETE(termArrays->at(i)); } _CLLDELETE(termArrays); _CLLDELETE(positions); _CLDELETE_CARRAY(field); } 4) Last question - is there any CL_NS(util)::BaseArray implementation for refcounted objects? Btw. the Array implementation does hardly allow reusing already allocated arrays. Jiri -----Original Message----- From: Kostka Bořivoj [mailto:kos...@tovek.cz] Sent: Monday, July 26, 2010 2:52 PM To: clucene-developers@lists.sourceforge.net Subject: [CLucene-dev] Exception during thread finish I run the IndexSearcher::_search method from separate thread (different from thread where IndexSearcher is created and deleted). When the thread finishes, I get exceptionin mutex_thread::lock() The reason is _internal is already deleted (contains 0xdddddddd). Any idea what could be wrong? Borek Call stack: clucene-sharedd.dll!lucene::util::mutex_thread::lock() Line 50 + 0x5 bytes C++ clucene-sharedd.dll!lucene::util::mutexGuard::mutexGuard(lucene::util::mutex_thread & rMutex={...}) Line 248 C++ clucene-cored.dll!lucene::util::_ThreadLocal::setNull() Line 139 + 0x15 bytes C++ clucene-cored.dll!lucene::util::ThreadLocals::UnregisterThread() Line 232 C++ clucene-cored.dll!lucene::util::_ThreadLocal::UnregisterCurrentThread() Line 210 C++ clucene-cored.dll!DllMain(unsigned short hinstDLL=0, unsigned long fdwReason=3, void * __formal=0x00000000) Line 37 C++ clucene-cored.dll!__DllMainCRTStartup(void * hDllHandle=0x01010000, unsigned long dwReason=3, void * lpreserved=0x00000000) Line 498 + 0x11 bytes C clucene-cored.dll!_DllMainCRTStartup(void * hDllHandle=0x01010000, unsigned long dwReason=3, void * lpreserved=0x00000000) Line 462 + 0x11 bytes C ntdll.dll!_ldrpcallinitrout...@16() + 0x14 bytes ntdll.dll!_ldrshutdownthr...@0() + 0xed bytes kernel32.dll!_exitthr...@4() + 0x3e bytes msvcr80d.dll!_endthreadex(unsigned int retcode=0) Line 414 C msvcr80d.dll!_callthreadstartex() Line 348 + 0x15 bytes C msvcr80d.dll!_threadstartex(void * ptd=0x0164fc80) Line 331 C kernel32.dll!_basethreadst...@8() + 0x37 bytes ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers