[ 
https://issues.apache.org/jira/browse/SOLR-1830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847557#action_12847557
 ] 

Yonik Seeley commented on SOLR-1830:
------------------------------------

So... I went and coded up a quick class to switch factories based on a system 
property... and then realized that it was silly since we can just do this:

{code}
  <!--  solr.StandardDirectoryFactory is filesystem based, the default.
        solr.RAMDirectoryFactory is memory based and not persistent. -->
  <directoryFactory name="DirectoryFactory" 
class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
{code}

> tests should be able to use RAMDirectory
> ----------------------------------------
>
>                 Key: SOLR-1830
>                 URL: https://issues.apache.org/jira/browse/SOLR-1830
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>            Priority: Minor
>
> Tests should be able to use RAMDirectoryFactory.
> We probably want the ability to have ant switch between FS and RAM so both 
> can be tested (RAM normally, FS for nightly?)
> Some tests will need FS regardless, and those could use the same control 
> mechanism as ant, presumably a system property.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to