lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject API changes in 2.4
Date Mon, 01 Dec 2008 10:56:07 GMT

Heads up: there are two API changes in 2.4 that might bite you on

   * If you are subclassing QueryParser and override addClause or
     getBooleanQuery, you need to change the argument type from Vector
     to List, else your method won't be called.  This was caused by
     LUCENE-1369, where I accidentally broke back compatibility

   * If you use Document.getFieldables, getFields, getValues or
     getBinaryValues, these methods now return an empty list instead of
     null if there are 0 things to return.  If you have code that
     checks != null you need to change it to .size() != 0.  This was
     from LUCENE-1233


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message