Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When you index a document, several steps are performed :</p> <ul> <li>the document is analyzed,</li> <li>data is put in the RAM buffer,</li> <li>when the RAM buffer is full, data is flushed to a new segment on disk,</li> <li>if there are more than ${mergeFactor} segments, segments are merged.</li> </ul> <p>The first two steps will be run in as many threads as you have clients sending data to Solr, so if you want Solr to run three threads for these steps, all you need is to send data to Solr from three threads.</p> <p>You can configure the number of threads to use for the fourth step if you use a ConcurrentMergeScheduler (http://lucene.apache.org/java/3_0_1/api/core/org/apache/lucene/index/ConcurrentMergeScheduler.html). However, there is no mean to configure the maximum number of threads to use from Solr configuration files, so what you need is to write a custom class which call setMaxThreadCount in the constructor.</p> <p>My experience is that the main ways to improve indexing speed with Solr are :</p> <ul> <li>buying faster hardware (especially I/O),</li> <li>sending data to Solr from several threads (as many threads as cores is a good start),</li> <li>using the Javabin format,</li> <li>using faster analyzers.</li> </ul> <p>Although <a href="http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/impl/StreamingUpdateSolrServer.html">StreamingUpdateSolrServer</a> looks interesting for improving indexing performance, <a href="https://issues.apache.org/jira/browse/SOLR-1565">it doesn't support the Javabin format</a>. Since Javabin parsing is <em>much</em> faster than XML parsing, I got better performance by sending bulk updates (800 in my case, but with rather small documents) using CommonsHttpSolrServer and the Javabin format.</p> <p>You can read <a href="http://wiki.apache.org/lucene-java/ImproveIndexingSpeed">http://wiki.apache.org/lucene-java/ImproveIndexingSpeed</a> for further information.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload