Re: Adding Docvalues to a Field

2017-05-05 Thread aravinth thangasami
Will try on it. Thanks Uwe :) On Sat, May 6, 2017 at 4:02 AM, Uwe Schindler wrote: > Hi Aravinth, > > To get rid of the partially merged (mixed) docvalues fields you can use > the following additional approach on top of my previous mail: > > > Erick was referring to Solr. To fix your issue with

RE: Adding Docvalues to a Field

2017-05-05 Thread Uwe Schindler
Hi Aravinth, To get rid of the partially merged (mixed) docvalues fields you can use the following additional approach on top of my previous mail: > Erick was referring to Solr. To fix your issue without fully indexing you can > use merging to update the whole index. To do this use the followin

Re: Adding Docvalues to a Field

2017-05-05 Thread Uwe Schindler
Hi Aravinth, Erick was referring to Solr. To fix your issue without fully indexing you can use merging to update the whole index. To do this use the following approach: Wrap your index using UninvertingReader. Then get all LeadReaders using the leaves() method. Wrap all this leaves with SlowCod

Re: Adding Docvalues to a Field

2017-05-05 Thread aravinth thangasami
Thanks Erick On Fri, May 5, 2017 at 9:19 PM, Erick Erickson wrote: > In a word, "no". You must re-index from scratch. Worse, now that you > have some segments thinking the fields are docValues and some not and > maybe some mixed, I know of no way to un-entangle them. > > I'd create a new collect

Re: Adding Docvalues to a Field

2017-05-05 Thread Erick Erickson
In a word, "no". You must re-index from scratch. Worse, now that you have some segments thinking the fields are docValues and some not and maybe some mixed, I know of no way to un-entangle them. I'd create a new collection and re-index it entirely, then use collection aliasing to point the applica

Re: Un-used index files are not getting released

2017-05-05 Thread Ian Lea
The most common cause is unclosed index readers. If you run lsof against the tomcat process id and see that some deleted files are still open, that's almost certainly the problem. Then all you have to do is track it down in your code. -- Ian. On Thu, May 4, 2017 at 10:09 PM, Siraj Haider wro

Adding Docvalues to a Field

2017-05-05 Thread aravinth thangasami
Hi all, On process of moving to Lucene 5 from Lucene 4, we faced this following issue We have enabled doc values in Lucene 5.we previously don't used doc values in Lucene 4 Using UninvertingReader, sorting works fine until the first merge happens. On merge documents in the older version without d