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 <[email protected]> wrote: > Yeah, I definitely will look into PreAnalyzedField as you and Michail suggest. > > Thank you. > >> On Mar 30, 2017, at 19:15, Uwe Schindler <[email protected]> wrote: >> >> But that's hard to implement. I'd go for Solr instead of doing that on your >> own! > > --- > Denis Bazhenov <[email protected]> > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
