Re: Optimizing to only 1 segment

2010-12-27 Thread Li Li
oh, you mean lucene 4 trunk. LogByteSizeMergePolicy's default size is 2048MB(2GB) I did like this LogByteSizeMergePolicy mp=new LogByteSizeMergePolicy(); mp.setMaxMergeMB(100); 2010/12/27 Rok Rejc : > Okej the same thing happens if i run optimize in java: > >        File

Re: Optimizing to only 1 segment

2010-12-27 Thread Rok Rejc
Okej the same thing happens if i run optimize in java: File file = new File("e:\\myIndex\\index"); Directory directory = FSDirectory.open(file); Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_40); IndexWriterConfig config = new IndexWriterConfig(Version.LU

Re: Optimizing to only 1 segment

2010-12-26 Thread Rok Rejc
Hi, there is nothing in the log, and the optimize finishes successfully: 0 17 I run optmize through browser by entering url http://localhost:8080/myindex/update?optimize=true or http://localhost:8080/myindex/update?stream.body= Thanks. On Mon, Dec 27, 2010 at 7:12 AM, Li Li wrote: > mayb

Re: Optimizing to only 1 segment

2010-12-26 Thread Li Li
maybe you can consult log files and it may show you something btw how do you post your command? do you use curl 'http://localhost:8983/solr/update?optimize=true' ? or posting a xml file? 2010/12/27 Rok Rejc : > On Mon, Dec 27, 2010 at 3:26 AM, Li Li wrote: > >> see maxMergeDocs(maxMergeSize) in s

Re: Optimizing to only 1 segment

2010-12-26 Thread Rok Rejc
On Mon, Dec 27, 2010 at 3:26 AM, Li Li wrote: > see maxMergeDocs(maxMergeSize) in solrconfig.xml. if the segment's > documents size is larger than this value, it will not be merged. > I see that in my solrconfig.xml, but it is commented and marked as deprecated. I have uncommented this setting (

Re: Optimizing to only 1 segment

2010-12-26 Thread Lance Norskog
Is the optimize finished? By default, the optimize command goes in and the HTTP request returns. You have to add attributes to the command. On Sun, Dec 26, 2010 at 9:23 AM, Rok Rejc wrote: > Hi all, > > I have created an index, commited the data and after that I had run the > optimize with defau

Re: Optimizing to only 1 segment

2010-12-26 Thread Li Li
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 : > Hi all, > > I have created an index, commited the data and after that I had run the > optimize with default parameters: > > http://localhost:8