Is the optimize finished? By default, the optimize command goes in and
the HTTP request returns. You have to add attributes to the <optimize>
command.

On Sun, Dec 26, 2010 at 9:23 AM, Rok Rejc <rokrej...@gmail.com> wrote:
> 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=directoryrea...@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
>



-- 
Lance Norskog
goks...@gmail.com

Reply via email to