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 Benson Margulies <bi...@gmail.com> on 2012/03/05 16:54:06 UTC

What replaces IndexReader.openIfChanged in Lucene 4.0?

Sorry, I'm coming up empty in Google here.

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


RE: What replaces IndexReader.openIfChanged in Lucene 4.0?

Posted by Uwe Schindler <uw...@thetaphi.de>.
DirectoryReader.openIfChanged

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


> -----Original Message-----
> From: Benson Margulies [mailto:bimargulies@gmail.com]
> Sent: Monday, March 05, 2012 4:54 PM
> To: java-user@lucene.apache.org
> Subject: What replaces IndexReader.openIfChanged in Lucene 4.0?
> 
> Sorry, I'm coming up empty in Google here.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


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


Re: What replaces IndexReader.openIfChanged in Lucene 4.0?

Posted by Benson Margulies <bi...@gmail.com>.
OK, thanks.

On Mon, Mar 5, 2012 at 11:22 AM, Steven A Rowe <sa...@syr.edu> wrote:
> You want the lucene-queryparser jar.  From trunk MIGRATE.txt:
>
> * LUCENE-3283: Lucene's core o.a.l.queryParser QueryParsers have been consolidated into module/queryparser,
>  where other QueryParsers from the codebase will also be placed.  The following classes were moved:
>  - o.a.l.queryParser.CharStream -> o.a.l.queryparser.classic.CharStream
>  - o.a.l.queryParser.FastCharStream -> o.a.l.queryparser.classic.FastCharStream
>  - o.a.l.queryParser.MultiFieldQueryParser -> o.a.l.queryparser.classic.MultiFieldQueryParser
>  - o.a.l.queryParser.ParseException -> o.a.l.queryparser.classic.ParseException
>  - o.a.l.queryParser.QueryParser -> o.a.l.queryparser.classic.QueryParser
>  - o.a.l.queryParser.QueryParserBase -> o.a.l.queryparser.classic.QueryParserBase
>  - o.a.l.queryParser.QueryParserConstants -> o.a.l.queryparser.classic.QueryParserConstants
>  - o.a.l.queryParser.QueryParserTokenManager -> o.a.l.queryparser.classic.QueryParserTokenManager
>  - o.a.l.queryParser.QueryParserToken -> o.a.l.queryparser.classic.Token
>  - o.a.l.queryParser.QueryParserTokenMgrError -> o.a.l.queryparser.classic.TokenMgrError
>
>
> -----Original Message-----
> From: Benson Margulies [mailto:bimargulies@gmail.com]
> Sent: Monday, March 05, 2012 11:15 AM
> To: java-user@lucene.apache.org
> Subject: Re: What replaces IndexReader.openIfChanged in Lucene 4.0?
>
> To reduce noise slightly I'll stay on this thread.
>
> I'm looking at this file, and not seeing a pointer to what to do about QueryParser. Are jar file rearrangements supposed to be in that file?
> I think that I don't have the right jar yet; all I'm seeing is the 'surround' package.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

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


RE: What replaces IndexReader.openIfChanged in Lucene 4.0?

Posted by Steven A Rowe <sa...@syr.edu>.
You want the lucene-queryparser jar.  From trunk MIGRATE.txt:

* LUCENE-3283: Lucene's core o.a.l.queryParser QueryParsers have been consolidated into module/queryparser,
  where other QueryParsers from the codebase will also be placed.  The following classes were moved:
  - o.a.l.queryParser.CharStream -> o.a.l.queryparser.classic.CharStream
  - o.a.l.queryParser.FastCharStream -> o.a.l.queryparser.classic.FastCharStream
  - o.a.l.queryParser.MultiFieldQueryParser -> o.a.l.queryparser.classic.MultiFieldQueryParser
  - o.a.l.queryParser.ParseException -> o.a.l.queryparser.classic.ParseException
  - o.a.l.queryParser.QueryParser -> o.a.l.queryparser.classic.QueryParser
  - o.a.l.queryParser.QueryParserBase -> o.a.l.queryparser.classic.QueryParserBase
  - o.a.l.queryParser.QueryParserConstants -> o.a.l.queryparser.classic.QueryParserConstants
  - o.a.l.queryParser.QueryParserTokenManager -> o.a.l.queryparser.classic.QueryParserTokenManager
  - o.a.l.queryParser.QueryParserToken -> o.a.l.queryparser.classic.Token
  - o.a.l.queryParser.QueryParserTokenMgrError -> o.a.l.queryparser.classic.TokenMgrError


-----Original Message-----
From: Benson Margulies [mailto:bimargulies@gmail.com] 
Sent: Monday, March 05, 2012 11:15 AM
To: java-user@lucene.apache.org
Subject: Re: What replaces IndexReader.openIfChanged in Lucene 4.0?

To reduce noise slightly I'll stay on this thread.

I'm looking at this file, and not seeing a pointer to what to do about QueryParser. Are jar file rearrangements supposed to be in that file?
I think that I don't have the right jar yet; all I'm seeing is the 'surround' package.

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


Re: What replaces IndexReader.openIfChanged in Lucene 4.0?

Posted by Benson Margulies <bi...@gmail.com>.
To reduce noise slightly I'll stay on this thread.

I'm looking at this file, and not seeing a pointer to what to do about
QueryParser. Are jar file rearrangements supposed to be in that file?
I think that I don't have the right jar yet; all I'm seeing is the
'surround' package.

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


RE: What replaces IndexReader.openIfChanged in Lucene 4.0?

Posted by Steven A Rowe <sa...@syr.edu>.
https://builds.apache.org//job/Lucene-trunk/lastSuccessfulBuild/artifact/artifacts/changes/Changes.html

-----Original Message-----
From: Benson Margulies [mailto:bimargulies@gmail.com] 
Sent: Monday, March 05, 2012 11:11 AM
To: java-user@lucene.apache.org
Subject: Re: What replaces IndexReader.openIfChanged in Lucene 4.0?

On Mon, Mar 5, 2012 at 11:07 AM, Steven A Rowe <sa...@syr.edu> wrote:
> The second item in the top section in trunk CHANGES.txt (back compat policy changes):

Could you guys put this on the web site (or a link to it)? Or try to get it to SEO more prominently?

>
> * LUCENE-2858, LUCENE-3733: IndexReader was refactored into abstract
>  AtomicReader, CompositeReader, and DirectoryReader. To open 
> Directory-
>  based indexes use DirectoryReader.open(), the corresponding method in
>  IndexReader is now deprecated for easier migration. Only 
> DirectoryReader
>  supports commits, versions, and reopening with openIfChanged(). 
> Terms,
>  postings, docvalues, and norms can from now on only be retrieved 
> using
>  AtomicReader; DirectoryReader and MultiReader extend CompositeReader,
>  only offering stored fields and access to the sub-readers (which may 
> be
>  composite or atomic). SlowCompositeReaderWrapper (LUCENE-2597) can be
>  used to emulate atomic readers on top of composites.
>  Please review MIGRATE.txt for information how to migrate old code.
>  (Uwe Schindler, Robert Muir, Mike McCandless)
>
> -----Original Message-----
> From: Benson Margulies [mailto:bimargulies@gmail.com]
> Sent: Monday, March 05, 2012 10:54 AM
> To: java-user@lucene.apache.org
> Subject: What replaces IndexReader.openIfChanged in Lucene 4.0?
>
> Sorry, I'm coming up empty in Google here.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

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


Re: What replaces IndexReader.openIfChanged in Lucene 4.0?

Posted by Benson Margulies <bi...@gmail.com>.
On Mon, Mar 5, 2012 at 11:07 AM, Steven A Rowe <sa...@syr.edu> wrote:
> The second item in the top section in trunk CHANGES.txt (back compat policy changes):

Could you guys put this on the web site (or a link to it)? Or try to
get it to SEO more prominently?

>
> * LUCENE-2858, LUCENE-3733: IndexReader was refactored into abstract
>  AtomicReader, CompositeReader, and DirectoryReader. To open Directory-
>  based indexes use DirectoryReader.open(), the corresponding method in
>  IndexReader is now deprecated for easier migration. Only DirectoryReader
>  supports commits, versions, and reopening with openIfChanged(). Terms,
>  postings, docvalues, and norms can from now on only be retrieved using
>  AtomicReader; DirectoryReader and MultiReader extend CompositeReader,
>  only offering stored fields and access to the sub-readers (which may be
>  composite or atomic). SlowCompositeReaderWrapper (LUCENE-2597) can be
>  used to emulate atomic readers on top of composites.
>  Please review MIGRATE.txt for information how to migrate old code.
>  (Uwe Schindler, Robert Muir, Mike McCandless)
>
> -----Original Message-----
> From: Benson Margulies [mailto:bimargulies@gmail.com]
> Sent: Monday, March 05, 2012 10:54 AM
> To: java-user@lucene.apache.org
> Subject: What replaces IndexReader.openIfChanged in Lucene 4.0?
>
> Sorry, I'm coming up empty in Google here.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

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


RE: What replaces IndexReader.openIfChanged in Lucene 4.0?

Posted by Steven A Rowe <sa...@syr.edu>.
The second item in the top section in trunk CHANGES.txt (back compat policy changes):
 
* LUCENE-2858, LUCENE-3733: IndexReader was refactored into abstract
  AtomicReader, CompositeReader, and DirectoryReader. To open Directory-
  based indexes use DirectoryReader.open(), the corresponding method in
  IndexReader is now deprecated for easier migration. Only DirectoryReader
  supports commits, versions, and reopening with openIfChanged(). Terms,
  postings, docvalues, and norms can from now on only be retrieved using
  AtomicReader; DirectoryReader and MultiReader extend CompositeReader,
  only offering stored fields and access to the sub-readers (which may be
  composite or atomic). SlowCompositeReaderWrapper (LUCENE-2597) can be
  used to emulate atomic readers on top of composites.
  Please review MIGRATE.txt for information how to migrate old code.
  (Uwe Schindler, Robert Muir, Mike McCandless)

-----Original Message-----
From: Benson Margulies [mailto:bimargulies@gmail.com] 
Sent: Monday, March 05, 2012 10:54 AM
To: java-user@lucene.apache.org
Subject: What replaces IndexReader.openIfChanged in Lucene 4.0?

Sorry, I'm coming up empty in Google here.

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