Re: How to rebuild index

2011-01-21 Thread Jack Krupansky
The best thing is to re-index from your original source data, but if that is not available, you can also re-index stored fields, assuming that you created the index using stored fields for text fields. You would have to write custom code to retrieve the stored values (not the actual terms since

Re: How to rebuild index

2011-01-21 Thread Erdinc Akkaya
First of all try it on different folder than your current index folder. new analyzer will make different index but same data. First you should create index on different folder than just replace your new index with current index files. If it fits, then replace the code and it will work. 2011/1/21 黄

Re: How to rebuild index

2011-01-21 Thread 黄靖宇
Hmm, I see. Thanks very much. 2011/1/21 Uwe Schindler > 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

RE: How to rebuild index

2011-01-21 Thread Uwe Schindler
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 orig

Re: How to rebuild index

2011-01-21 Thread Lahiru Samarakoon
HI You were using a system for two years and it used an index created using lucene with the StandardAnalyzer. So, There must be an index creation code with your system. Anyway,Since you have the book “*Lucene in action*” you can find how to create an index by reading chapter 2 (Indexing). Please