lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Li <fancye...@gmail.com>
Subject Re: Optimizing to only 1 segment
Date Mon, 27 Dec 2010 02:26:34 GMT
see maxMergeDocs(maxMergeSize) in solrconfig.xml. if the segment's
documents size is larger than this value, it will not be merged.

2010/12/27 Rok Rejc <rokrejc82@gmail.com>:
> Hi all,
>
> I have created an index, commited the data and after that I had run the
> optimize with default parameters:
>
> http://localhost:8080/myindex/update?stream.body=<optimize/>
>
> I was suprised that after the optimizing was finished there was 21 segments
> in the index:
>
> reader : SolrIndexReader{this=724a2dd4,r=DirectoryReader@724a2dd4,refCnt=1,segments=21}
>
>
> If I understand the documentation correctly the default maxSegments is 1.
> Nothing helps even if I put the parameter in the command:
>
> http://localhost:8080/myindex/update?maxSegments=1&stream.body=<optimize/>
>
> Am I missing something?
>
> I am using the trunk version with SimpleFSDirectory
>
> Thanks, Rok
>

Mime
View raw message