Hello, I added a test to the TestBitSet.cpp file that test this issue. How can I send it to you?
I will now try to write test for the constant score query, because it is not working correctly. It does not return the right score due to the normalization (It makes no sense to normalize constant value - you want to get the original value not some normalized one). Btw. I have a problem with testWickedLongTerm which fails here: TestIndexWriter.cpp(392) assertEquals(3, tps->nextPosition()); tps->nextPosition() returns 66. Jiri -----Original Message----- From: Itamar Syn-Hershko [mailto:ita...@code972.com] Sent: Thursday, August 05, 2010 8:24 PM To: clucene-developers@lists.sourceforge.net Subject: Re: [CLucene-dev] BitSet bug It makes sense, and I updated the code accordingly. Can you write a small test proving this issue (and that it is resolved now)? Thanks. Itamar. > Hello, > > I am testing my queries while having following test case: > > given > CL_NS(search)::Query * pQuery > then > result of pQuery must equal to (except of score, ofcourse) > result of new CL_NS(search)::ConstantScoreQuery( new > CL_NS(search)::QueryFilter( pQuery )); > > This test has failed and I assume that it is because of the bitset method > nextSetBit. > The problem is the condition at line bitset.cpp(192) > if (bits[fromIndex>> 3]& (1<< (fromIndex& 7)) != 0) > > because the operator != is evaluated first,& operator after that. So please > change it to: > if ((bits[fromIndex>> 3]& (1<< (fromIndex& 7))) != 0) > > > Jiri > > > ------------------------------------------------------------------------------ > 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 > > > ------------------------------------------------------------------------------ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers