lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 黄靖宇 <qingyujin...@gmail.com>
Subject Re: How to rebuild index
Date Fri, 21 Jan 2011 09:59:48 GMT
Hmm, I see. Thanks very much.

2011/1/21 Uwe Schindler <uwe@thetaphi.de>

> Hi,
>
> > "If you’re changing analyzers, you should rebuild your index using the
> new analyzer so that all documents are analyzed in the same manner."
>
> It says everything: Take your original data and re-create the index.
> Indexing is a lossy operation, so you must recreate the index using *all*
> the original data like it was done the last 2 years. Just use another
> analyzer.
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
> > -----Original Message-----
> > From: 黄靖宇 [mailto:qingyujingyu@gmail.com]
> > Sent: Friday, January 21, 2011 10:05 AM
> > To: java-user@lucene.apache.org
> > Subject: How to rebuild index
> >
> > Hi,
> > I am new to lucene. Recently I was assigned for some lucene related
> > workitems.
> > Now there is one problem. Before, we use StandardAnalyzer in our
> > application, and our application has been online for about two years.
> > Now, we must to write a Custom Analyzer to replace the StandarAnalyzer
> for
> > enhancement requirement.
> > But there are already much exists production data and the lucene
> > index(generated with StandardAnalyzer).
> > What I need to do if I change to use the new Custom Analyzer?
> > From the book "Lucene In Action". I see follow sentence:
> > "If you’re changing analyzers, you should rebuild your index using the
> new
> > analyzer so that all documents are analyzed in the same manner."
> >
> > But I don't know how to rebuild the exists index with a new Analyzer. I
> can't
> > find a API related to this.
> > Any help will be appreciated.
> > Thanks In Advance.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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