lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Question about SearcherManager.maybeReopen() method.
Date Thu, 07 Nov 2013 10:59:54 GMT
It sounds like you are somehow copying over index files from one index to
another?

You shouldn't do that; use IW.addIndexes instead.

Or maybe give a bigger picture of how your application works with Lucene?

Mike McCandless

http://blog.mikemccandless.com


On Wed, Nov 6, 2013 at 6:46 PM, Alexei Morgado <AMorgado@rccl.com> wrote:

> Hi guys,
>
> I have a question about a problem we had with the
> SearcherManager.maybeReopen() method. This works as charm except when the
> segments in the previous index has the exact same names as the segments in
> the new one. In this case the maybeReopen() doesn't load the new index,
> even though the isSearcherCurrent returns false, meaning it sees that the
> new physical one is different from the old one. We are using lucene 3.5 and
> we cannot upgrade that easily. Do you guys have any solution for this? Any
> help will be greatly appreciated :):
>
>
>
>
> Thanks in advance,
>
> Alexei Morgado.
> Sr. JEE developer at Royal Caribbean.
>

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