lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
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
upgrading:

   * 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
     (sorry!!).

   * 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

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message