Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

API changes in 2.9

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


emailgane at yahoo

Nov 26, 2009, 12:47 AM

Post #1 of 4 (689 views)
Permalink
API changes in 2.9

Hello all,

I am planning to upgrade from 2.4.1 to 2.9.1. I could see some API changes and older APIs are deprecated. In 2.4, I use 'NumberTools' class to convert long to String and now this API is deprecated. I think i have to use 'NumericField' or 'NumericUtils', but in both the class there is a note "NOTE: This API is experimental and might change in incompatible ways in the next release. "

Shall I go ahead and update the API or use the older one till 3.0?

This red note is added to couple of other placeses. Shall we go ahead and use these API or wait for 3.0?

Regards
Ganesh



Send instant messages to your online friends http://in.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


uwe at thetaphi

Nov 26, 2009, 12:56 AM

Post #2 of 4 (645 views)
Permalink
RE: API changes in 2.9 [In reply to]

You can use these APIs. They are only marked as experimental not because
they are unstable or something like that, it means the API may change
suddenly (methods get removed and so on). In 3.0 (which was released *now*)
it is still experimental. So it's more "subject to change" than "unstable".

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe [at] thetaphi

> -----Original Message-----
> From: Ganesh [mailto:emailgane [at] yahoo]
> Sent: Thursday, November 26, 2009 9:47 AM
> To: java-user [at] lucene
> Subject: API changes in 2.9
>
> Hello all,
>
> I am planning to upgrade from 2.4.1 to 2.9.1. I could see some API changes
> and older APIs are deprecated. In 2.4, I use 'NumberTools' class to
> convert long to String and now this API is deprecated. I think i have to
> use 'NumericField' or 'NumericUtils', but in both the class there is a
> note "NOTE: This API is experimental and might change in incompatible ways
> in the next release. "
>
> Shall I go ahead and update the API or use the older one till 3.0?
>
> This red note is added to couple of other placeses. Shall we go ahead and
> use these API or wait for 3.0?
>
> Regards
> Ganesh
>
>
>
> Send instant messages to your online friends http://in.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


emailgane at yahoo

Nov 26, 2009, 1:08 AM

Post #3 of 4 (636 views)
Permalink
Re: API changes in 2.9 [In reply to]

Thanks.

I used NumberTool to convert the int to string. In 2.9, NumericField is to be used but it stores it based on some precision. I think the way the integer data gets indexed is changed from 2.4 to 2.9. This means my customers using 2.4.1 should rebuild their index.

Whether 2.9 could able to modify\search the index created by 2.4.1? Is backward compatibility maintained?

Regards
Ganesh


----- Original Message -----
From: "Uwe Schindler" <uwe [at] thetaphi>
To: <java-user [at] lucene>
Sent: Thursday, November 26, 2009 2:26 PM
Subject: RE: API changes in 2.9


> You can use these APIs. They are only marked as experimental not because
> they are unstable or something like that, it means the API may change
> suddenly (methods get removed and so on). In 3.0 (which was released *now*)
> it is still experimental. So it's more "subject to change" than "unstable".
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe [at] thetaphi
>
>> -----Original Message-----
>> From: Ganesh [mailto:emailgane [at] yahoo]
>> Sent: Thursday, November 26, 2009 9:47 AM
>> To: java-user [at] lucene
>> Subject: API changes in 2.9
>>
>> Hello all,
>>
>> I am planning to upgrade from 2.4.1 to 2.9.1. I could see some API changes
>> and older APIs are deprecated. In 2.4, I use 'NumberTools' class to
>> convert long to String and now this API is deprecated. I think i have to
>> use 'NumericField' or 'NumericUtils', but in both the class there is a
>> note "NOTE: This API is experimental and might change in incompatible ways
>> in the next release. "
>>
>> Shall I go ahead and update the API or use the older one till 3.0?
>>
>> This red note is added to couple of other placeses. Shall we go ahead and
>> use these API or wait for 3.0?
>>
>> Regards
>> Ganesh
>>
>>
>>
>> Send instant messages to your online friends http://in.messenger.yahoo.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
>> For additional commands, e-mail: java-user-help [at] lucene
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>
Send instant messages to your online friends http://in.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


uwe at thetaphi

Nov 26, 2009, 1:27 AM

Post #4 of 4 (639 views)
Permalink
RE: API changes in 2.9 [In reply to]

> Thanks.
>
> I used NumberTool to convert the int to string. In 2.9, NumericField is to
> be used but it stores it based on some precision. I think the way the
> integer data gets indexed is changed from 2.4 to 2.9. This means my
> customers using 2.4.1 should rebuild their index.

Exactly. Because of that NumberTools is deprecated as a warning, not to use
it for *new* developments. The numeric values are stored completely
different and can only be queried using NumericRangeQuery.

These deprecations needed for index compatibility are *not* removed in 3.0
(they are targeted for 4.0, when indexes < 3.0 cannot be read anymore). So
for performance reasons (if you do range queries on your numeric fields),
you should reindex.

> Whether 2.9 could able to modify\search the index created by 2.4.1? Is
> backward compatibility maintained?

Yes it is maintained, but you should get rid of deprecated APIs. And for the
numeric case, you cannot mix old/new API on the same field. Switch to the
new API in complete (reindex) or let it as it is.

Uwe


> Regards
> Ganesh
>
>
> ----- Original Message -----
> From: "Uwe Schindler" <uwe [at] thetaphi>
> To: <java-user [at] lucene>
> Sent: Thursday, November 26, 2009 2:26 PM
> Subject: RE: API changes in 2.9
>
>
> > You can use these APIs. They are only marked as experimental not because
> > they are unstable or something like that, it means the API may change
> > suddenly (methods get removed and so on). In 3.0 (which was released
> *now*)
> > it is still experimental. So it's more "subject to change" than
> "unstable".
> >
> > -----
> > Uwe Schindler
> > H.-H.-Meier-Allee 63, D-28213 Bremen
> > http://www.thetaphi.de
> > eMail: uwe [at] thetaphi
> >
> >> -----Original Message-----
> >> From: Ganesh [mailto:emailgane [at] yahoo]
> >> Sent: Thursday, November 26, 2009 9:47 AM
> >> To: java-user [at] lucene
> >> Subject: API changes in 2.9
> >>
> >> Hello all,
> >>
> >> I am planning to upgrade from 2.4.1 to 2.9.1. I could see some API
> changes
> >> and older APIs are deprecated. In 2.4, I use 'NumberTools' class to
> >> convert long to String and now this API is deprecated. I think i have
> to
> >> use 'NumericField' or 'NumericUtils', but in both the class there is a
> >> note "NOTE: This API is experimental and might change in incompatible
> ways
> >> in the next release. "
> >>
> >> Shall I go ahead and update the API or use the older one till 3.0?
> >>
> >> This red note is added to couple of other placeses. Shall we go ahead
> and
> >> use these API or wait for 3.0?
> >>
> >> Regards
> >> Ganesh
> >>
> >>
> >>
> >> Send instant messages to your online friends
> http://in.messenger.yahoo.com
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> >> For additional commands, e-mail: java-user-help [at] lucene
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> > For additional commands, e-mail: java-user-help [at] lucene
> >
> Send instant messages to your online friends http://in.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.