Hi.

Thanks for the reply. Of course each document go into exactly one shard.

> On Mar 31, 2017, at 15:01, Erick Erickson <erickerick...@gmail.com> wrote:
> 
> I don't believe addIndexes does much except rewrite the
> segments file (i.e. the file that tells Lucene what
> the current segments are).
> 
> That said, if you're desperate you can optimize/force-merge.
> 
> Do note, though, that no deduplication is done. So if the
> indexes you're merging have docs with the same
> <uniqueKey> you'll have duplicate documents. That's not
> a problem if you merge shards properly. "Properly" here means
> that the hash ranges of the merged shards exactly span the
> ranges of the merged segments.
> 
> And if you're merging them all down to one segment the ranges
> don't matter.
> 
> Best,
> Erick
> 
> On Thu, Mar 30, 2017 at 6:09 PM, Denis Bazhenov <dot...@gmail.com> wrote:
>> Yeah, I definitely will look into PreAnalyzedField as you and Michail 
>> suggest.
>> 
>> Thank you.
>> 
>>> On Mar 30, 2017, at 19:15, Uwe Schindler <u...@thetaphi.de> wrote:
>>> 
>>> But that's hard to implement. I'd go for Solr instead of doing that on your 
>>> own!
>> 
>> ---
>> Denis Bazhenov <dot...@gmail.com>
>> 
>> 
>> 
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
> 

---
Denis Bazhenov <dot...@gmail.com>






---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to