You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by NarasimhaRao DPNV <na...@gmail.com> on 2014/03/20 17:52:12 UTC

Please help me in migrating Apache Lucene 2.9 to 4.7.0

Hi

I started migrating my lucene search application from 2.9 version to 4.7.0
. Please suggest me the best way and best practices for this. There are
many files to rewrite.

Thank you,
Narasimha.

Re: Please help me in migrating Apache Lucene 2.9 to 4.7.0

Posted by Doug Turnbull <dt...@opensourceconnections.com>.
Are you able to reindex the data from source? Typical practices around
search indexes is to treat them as secondary stores for full-text search
that mirrors a primary database or data store.

-Doug


On Thu, Mar 20, 2014 at 12:52 PM, NarasimhaRao DPNV <
narasimha.javatl@gmail.com> wrote:

> Hi
>
> I started migrating my lucene search application from 2.9 version to 4.7.0
> . Please suggest me the best way and best practices for this. There are
> many files to rewrite.
>
> Thank you,
> Narasimha.
>



-- 
Doug Turnbull
Search & Big Data Architect
OpenSource Connections <http://o19s.com>

RE: Please help me in migrating Apache Lucene 2.9 to 4.7.0

Posted by Uwe Schindler <uw...@thetaphi.de>.
Hi,

I would recommend to first upgrade to Lucene 3.6. The changes to that version are much easier to do, because you can do the following migration steps: Remove any deprecated code from your classes (so carefully remove any deprecation warning when compiling your code with 2.9 - after that it should mostly compile with 3.6 - but this depends on the features used and the complexity of your code). In addition, Lucene 4 can no longer read indexes from Lucene 2.9. If you want to reuse your already built indexes, you have to upgrade to 3.6 in any case as an extra step during data migration (and use the IndexUpgrader command line tool to bring your index to Lucene 3.6 format, which can be read by Lucene 4.x again). Then follow the migration guide to migrate your code from 3.6 to 4.x: http://lucene.apache.org/core/4_7_0/MIGRATE.html

Uwe

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


> -----Original Message-----
> From: NarasimhaRao DPNV [mailto:narasimha.javatl@gmail.com]
> Sent: Thursday, March 20, 2014 5:52 PM
> To: java-user@lucene.apache.org
> Subject: Please help me in migrating Apache Lucene 2.9 to 4.7.0
> 
> Hi
> 
> I started migrating my lucene search application from 2.9 version to 4.7.0 .
> Please suggest me the best way and best practices for this. There are many
> files to rewrite.
> 
> Thank you,
> Narasimha.


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