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