lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mechravi25 <>
Subject Query regarding segment files in SOLR
Date Mon, 02 Jan 2012 12:10:32 GMT

I have a few doubts regarding the segment files. I have a optimized data in
my solr core and the following are the files there
and two other files {segments.gen,segments_2hr}.

My understanding is that those 8 files mentioned represent one segment file.
and the other two files have the information about the segment files.

My solrconfig.xml file has the following details


I am now adding only one document to the index without optimizing and i
notice that another set of segment files is getting created. In all, I
create index 11 documents individually and once the 11th document is added,
all the newly added 11 documents are combined in a new segment file.

My question is this,

In the solr wiki this is the explanation given for MergeFactor  For example,
if you set mergeFactor to 10, a new segment will be created on the disk for
every 1000 (or maxBufferedDocs) documents added to the index. When the 10th
segment of size 1000 is added, all 10 will be merged into a single segment
of size 10,000.

But for me for every document a new set of segment files is created. DOes
the explanation given in the solr wiki suitable only when the documents are
indexed continously? 

What is the purpose for maxBufferedDocs here?


View this message in context:
Sent from the Solr - User mailing list archive at

View raw message