11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1. Rename the managed-schema file to schema.xml.<br />

2. Modify solrconfig.xml to replace the schemaFactory class.<br />

a. Remove any ManagedIndexSchemaFactory definition if it exists.<br />

b. Add a ClassicIndexSchemaFactory definition as shown above<br />

3. Reload the core(s).<br />

If you are using <strong>Solr</strong>Cloud, you may need to modify the files via ZooKeeper.<br />

IndexConfig in <strong>Solr</strong>Config<br />

The section of solrconfig.xml defines low-level behavior of the Lucene index writers.<br />

By default, the settings are commented out in the sample solrconfig.xml included with <strong>Solr</strong>, which means<br />

the defaults are used. In most cases, the defaults are fine.<br />

<br />

...<br />

<br />

Parameters covered in this section:<br />

Writing New Segments<br />

Merging Index Segments<br />

Compound File Segments<br />

Index Locks<br />

Other Indexing Settings<br />

Writing New Segments<br />

ramBufferSizeMB<br />

Once accumulated document updates exceed this much memory space (defined in megabytes), then the<br />

pending updates are flushed. This can also create new segments or trigger a merge. Using this setting is<br />

generally preferable to maxBufferedDocs. If both maxBufferedDocs and ramBufferSizeMB are set in s<br />

olrconfig.xml, then a flush will occur when either limit is reached. The default is 100Mb.<br />

100<br />

maxBufferedDocs<br />

Sets the number of document updates to buffer in memory before they are flushed as a new segment. This<br />

may also trigger a merge. The default <strong>Solr</strong> configuration sets to flush by RAM usage ( ramBufferSizeMB).<br />

1000<br />

useCompoundFile<br />

Controls whether newly written (and not yet merged) index segments should use the Compound File<br />

Segment format. The default is false.<br />

false<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

440

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!