SOLR-4952: TestSolrDeletionPolicy1 can't directly use solrconfig.snippet.randomindexconfig.xml - but it can leverage the random sys props directly

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1511128 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2013-08-06 21:43:54 +00:00
parent b5152fcfc2
commit e778f261ad
1 changed files with 21 additions and 6 deletions

View File

@ -25,12 +25,27 @@
<requestHandler name="standard" class="solr.StandardRequestHandler"/>
<indexConfig>
<useCompoundFile>${useCompoundFile:false}</useCompoundFile>
<deletionPolicy class="solr.SolrDeletionPolicy">
<str name="keepOptimizedOnly">true</str>
<str name="maxCommitsToKeep">3</str>
<str name="maxCommitAge">100MILLISECONDS</str>
</deletionPolicy>
<!-- we can't include solrconfig.snippet.randomindexconfig.xml because we need
to configure an explicit deletion policy, but we still wnat to randomize as much
as possible.
-->
<mergePolicy class="${solr.tests.mergePolicy:org.apache.solr.util.RandomMergePolicy}" />
<useCompoundFile>${useCompoundFile:false}</useCompoundFile>
<maxBufferedDocs>${solr.tests.maxBufferedDocs}</maxBufferedDocs>
<maxIndexingThreads>${solr.tests.maxIndexingThreads}</maxIndexingThreads>
<ramBufferSizeMB>${solr.tests.ramBufferSizeMB}</ramBufferSizeMB>
<mergeScheduler class="${solr.tests.mergeScheduler}" />
<lockType>single</lockType>
<deletionPolicy class="solr.SolrDeletionPolicy">
<str name="keepOptimizedOnly">true</str>
<str name="maxCommitsToKeep">3</str>
<str name="maxCommitAge">100MILLISECONDS</str>
</deletionPolicy>
</indexConfig>
</config>