Ype,

It's a bug, and there is a fix for this in the latest CVS
near the end of the QueryParser.jj file:

// avoid boosting null queries, such as those caused by stop words
if (q != null) {
q.setBoost(f);
}


I had checked out the latest sources from public cvs. The posted code lines abouve are on the QueryParser.jj but this does not fix the problem. ;/
What could it be?


*java.lang.NullPointerException
   at org.apache.lucene.queryParser.QueryParser.Term(Unknown Source)
   at org.apache.lucene.queryParser.QueryParser.Clause(Unknown Source)
   at org.apache.lucene.queryParser.QueryParser.Query(Unknown Source)
   at org.apache.lucene.queryParser.QueryParser.Clause(Unknown Source)
   at org.apache.lucene.queryParser.QueryParser.Query(Unknown Source)
   at org.apache.lucene.queryParser.QueryParser.parse(Unknown Source)
   at org.apache.lucene.queryParser.QueryParser.parse(Unknown Source)

*
Stefan




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to