Hi,
Tests are running smooth for me here, but I do recall we had a test failing there. Can you post some code which will allow us to reproduce this? Itamar. On 25/10/2010 2:13 PM, Matt Ronge wrote: > Hi, > > I'm just getting started with CLucene and I'm running into a precondition > that is failing. I grabbed the latest snapshot from Git (just a day or two > ago), here is the error I'm getting: > > file:/Users/mronge/Projects/clucene/src/core/CLucene/index/TermInfosWriter.cpp > line:161 > Terms are out of order: field=body (number 0) lastField=body (number 0) text= > lastText=\377x > > Here is the precondition: > > CND_PRECONDITION(compareToLastTerm(fieldNumber, termText, > termTextLength)< 0 || > (isIndex&& termTextLength == 0&& lastTermTextLength == 0), > (string("Terms are out of order: field=") + > Misc::toString(fieldInfos->fieldName(fieldNumber)) + > " (number " + Misc::toString(fieldNumber) + ")" + > " lastField=" + Misc::toString(fieldInfos->fieldName(lastFieldNumber)) > + > " (number " + Misc::toString(lastFieldNumber) + ")" + > " text=" + Misc::toString(termText, termTextLength) + > " lastText=" + Misc::toString(lastTermText.values, lastTermTextLength) > ).c_str() ); > > > From looking at compareToLastTerm it appears it returns 1 if the length > > termText is< length of lastTermText, so it fails here when termText is > > empty. Is this correct? Shouldn't it just return -1 when when termText is > > empty, since "empty" could be ordered in front of everything else? > > Thanks! > Matt > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps& games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > CLucene-developers mailing list > CLucene-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/clucene-developers > > ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers