Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by paulsundling: http://wiki.apache.org/solr/EmbeddedSolr ------------------------------------------------------------------------------ This program is compiled against both the Solr and Lucene JAR files. This example was used with the Solr example schema and configuration. It is run using a JVM system property setting {{{-Dsolr.solr.home=...}}} (point it to Solr'e example "solr" directory). If processing batches of records, performance is much better if commits are done at intervals. For millions of documents being added you should optimize after completing indexing to reduce the number of files in the index. For example, 3 million documents resulted in 858 files with a mergeFactor of 100. See chapter 2.8 of Lucene in Action or [http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/javadoc/org/apache/lucene/index/IndexWriter.html#optimize() IndexWriter] for more information. To optimize, use the true flag for the [http://lucene.apache.org/solr/api/org/apache/solr/update/CommitUpdateCommand.html CommitUpdateCommand]. + + Indexing using Embedded Solr is faster [#head-d6f1e7a04c5b62bcb776dfcbb8950d2197a65ad8 SolrPerformanceFactors]. {{{ import org.apache.solr.request.SolrRequestHandler;
