: /tmp # ls /xxx/solr/data/32455077/index | wc   ---------------> this is the 
start point, 150 seg files
:      150      150     946
: /tmp # time curl


the number of files i nthe index directory is not the "number of 
segments"

the number of segments is an internal lucene concept that impacts the the 
number of files, but it is not an actual file count.  A segment can 
consist of multiple files depending on how your schema.xml is configured 
(and wether you are using the compound file format)

You can see the current number of segments by looking at the stats page...

http://localhost:8983/solr/admin/stats.jsp
SolrIndexReader{this=64a7c45e,r=ReadOnlyDirectoryReader@64a7c45e,refCnt=1,segments=10}
 

...that's from the solr example, where the index directory at the 
time of that request actually contained 93 files.


-Hoss

Reply via email to