lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: TopFieldDocCollector and v3.0.0
Date Tue, 08 Dec 2009 13:24:21 GMT
You might want to move to 2.9.1 first, find and fix all the deprecations
and *then* move to 3.x.

It seems like more work, but it's actually not. Especially if you have
unit tests. Since lots of effort has been put into maintaining backwards
compatibility in the 2.X versions, 2.9.1 should "just work" for you. Then
you can remove the deprecated methods a little bit at a time rather than
all at once. It's always tempting to do things in "one big edit", but then
never know which one of the many changes actually broke something. Unless
you can code perfectly the first time, in which case I'd recommend we hire
you and pay you a gazillion dollars <G>....

Once all the deprecations are removed from 2.9.1, you shouldn't have to do
anything to move to 3.x. So you get the best of both worlds....


On Tue, Dec 8, 2009 at 1:44 AM, Antony Bowesman <> wrote:

> I'm on 2.3.2 and looking to move to 2.9.1 or 3.0.0
> In 2.9.1 TopFieldDocCollector is
> "Deprecated. Please use TopFieldCollector instead."
> in 3.0.0 TopFieldCollector says
> NOTE: This API is experimental and might change in incompatible ways in the
> next release
> What is the suggested path for migrating TopFieldDocCollector usage?
> Antony
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message