RE: Index file compatibility and a migration plan to lucene 3

2009-12-11 Thread Uwe Schindler
Re: Index file compatibility and a migration plan to lucene 3 > > I have a follow-up question to this thread on Field.Store.COMPRESS in > 2.9.1 > and beyond. I'm getting a bit confused between the changes in 2.9.1 and > 3.0 > so I want to make sure I know what's going on. We

Re: Index file compatibility and a migration plan to lucene 3

2009-12-10 Thread Nigel
I have a follow-up question to this thread on Field.Store.COMPRESS in 2.9.1 and beyond. I'm getting a bit confused between the changes in 2.9.1 and 3.0 so I want to make sure I know what's going on. We also use old-style compressed fields and are about to upgrade to 2.9.1. Is the following accur

RE: Index file compatibility and a migration plan to lucene 3

2009-12-09 Thread Rob Staveley (Tom)
ail.com] Sent: 09 December 2009 16:03 To: java-user@lucene.apache.org Subject: Re: Index file compatibility and a migration plan to lucene 3 There are a LOT of deprecated stuff in 2.9.1 (but it's still there) and your code should run as it is (however there are some changes in behavior, so rea

Re: Index file compatibility and a migration plan to lucene 3

2009-12-09 Thread Danil ŢORIN
> From: Danil ŢORIN [mailto:torin...@gmail.com] > Sent: 09 December 2009 15:15 > To: java-user@lucene.apache.org > Subject: Re: Index file compatibility and a migration plan to lucene 3 > > 2nd point can be simply archived by an optimize (which will read old > segments and will

RE: Index file compatibility and a migration plan to lucene 3

2009-12-09 Thread Rob Staveley (Tom)
nt: 09 December 2009 15:15 To: java-user@lucene.apache.org Subject: Re: Index file compatibility and a migration plan to lucene 3 2nd point can be simply archived by an optimize (which will read old segments and will create a new one) But I'm not sure how it handles compressed fields. On We

Re: Index file compatibility and a migration plan to lucene 3

2009-12-09 Thread Danil ŢORIN
iters to 3.0.0 > > > > -Original Message- > From: Danil ŢORIN [mailto:torin...@gmail.com] > Sent: 09 December 2009 13:20 > To: java-user@lucene.apache.org > Subject: Re: Index file compatibility and a migration plan to lucene 3 > > You NEED to update your readers first,

RE: Index file compatibility and a migration plan to lucene 3

2009-12-09 Thread Rob Staveley (Tom)
riginal Message- From: Danil ŢORIN [mailto:torin...@gmail.com] Sent: 09 December 2009 13:20 To: java-user@lucene.apache.org Subject: Re: Index file compatibility and a migration plan to lucene 3 You NEED to update your readers first, or else they will be unable to read files created by newer versio

Re: Index file compatibility and a migration plan to lucene 3

2009-12-09 Thread Danil ŢORIN
rmatseffectively >> says that changing the reader first is a better idea for most >> situations, but I wanted to know if writer first would work for me for 2.3.1 >> -> 3.0.0. >> >> -----Original Message- >> From: Weiwei Wang [mailto:ww.wang...@gmail.com] &g

Re: Index file compatibility and a migration plan to lucene 3

2009-12-09 Thread Weiwei Wang
er first is a better idea for most > situations, but I wanted to know if writer first would work for me for 2.3.1 > -> 3.0.0. > > -Original Message- > From: Weiwei Wang [mailto:ww.wang...@gmail.com] > Sent: 09 December 2009 12:21 > To: java-user@lucene.apache.org > Subject:

RE: Index file compatibility and a migration plan to lucene 3

2009-12-09 Thread Rob Staveley (Tom)
Sent: 09 December 2009 12:21 To: java-user@lucene.apache.org Subject: Re: Index file compatibility and a migration plan to lucene 3 I’ve finished a upgrade from 2.4.1 to 3.0.0 What I do is like this: 1. Upgrade my user-defined analyzer, tokenizer and filter to 3.0.0 2. Use a 3.0.0 IndexReader to

Re: Index file compatibility and a migration plan to lucene 3

2009-12-09 Thread Weiwei Wang
I’ve finished a upgrade from 2.4.1 to 3.0.0 What I do is like this: 1. Upgrade my user-defined analyzer, tokenizer and filter to 3.0.0 2. Use a 3.0.0 IndexReader to read the old version index and then use a 3.0.0 IndexWriter to write all the documents into a new index 3. Update QueryPaser to 3.0.0