Thanks for the clarification. 

I use 

<config>
        <luceneMatchVersion>${lucene.version}</luceneMatchVersion>

in the solrconfig.xml  and pass -Dlucene.version when I launch solr, to keep 
the versions.



> On Oct 12, 2017, at 11:01 PM, Erick Erickson <erickerick...@gmail.com> wrote:
> 
> You can use the IndexUpgradeTool that ships with each version of Solr
> (well, actually Lucene) to, well, upgrade your index. So you can use
> the IndexUpgradeTool that ships with 5x to upgrade from 4x. And the
> one that ships with 6x to upgrade from 5x. etc.
> 
> That said, none of that is necessary _if_ you
>> have the Lucene version in solrconfig.xml be the one that corresponds to 
>> your current Solr. I.e. a solrconfig for 6x should have a luceneMatchVersion 
>> of 6something.
>> you update your index enough to rewrite all segments before moving to the 
>> _next_ version. When Lucene sees merges a segment, it writes the new segment 
>> according to the luceneMatchVersion in solrconfig.xml. So as long as you are 
>> on a version long enough for all segments to be merged into new segments, 
>> you don't have to worry.
> 
> Best,
> Erick
> 
> On Thu, Oct 12, 2017 at 8:29 PM, Harry Yoo <hyunat...@gmail.com> wrote:
>> I should have read this. My project has been running from apache solr 4.x, 
>> and moved to 5.x and recently migrated to 6.6.1. Do you think solr will take 
>> care of old version indexes as well? I wanted to make sure my indexes are 
>> updated with 6.x lucence version so that it will be supported when i move to 
>> solr 7.x
>> 
>> Is there any best practice managing solr indexes?
>> 
>> Harry
>> 
>>> On Sep 22, 2015, at 8:21 PM, Walter Underwood <wun...@wunderwood.org> wrote:
>>> 
>>> Don’t do anything. Solr will automatically clean up the deleted documents 
>>> for you.
>>> 
>>> wunder
>>> Walter Underwood
>>> wun...@wunderwood.org
>>> http://observer.wunderwood.org/  (my blog)
>>> 
>>> 
>>>> On Sep 22, 2015, at 6:01 PM, CrazyDiamond <crazy_diam...@mail.ru> wrote:
>>>> 
>>>> my index is updating frequently and i need to remove unused documents from
>>>> index after update/reindex.
>>>> Optimizaion is very expensive so what should i do?
>>>> 
>>>> 
>>>> 
>>>> --
>>>> View this message in context: 
>>>> http://lucene.472066.n3.nabble.com/is-there-a-way-to-remove-deleted-documents-from-index-without-optimize-tp4230691.html
>>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>> 
>> 

Reply via email to