Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-465

Add configurable DirectoryProvider so that alternate Directory implementations can be specified via solrconfig.xml

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.4
    • None
    • None

    Description

      Solr is presently hard-coded to use the FSDirectory implementation in Lucene. Other Directory implementations are possible. This patch creates a new DirectoryProvider interface and extends SolrCore to load an implementation of it from solrconfig.xml (if specified). If not specified, then it will fallback to the FSDirectory.

      A DirectoryProvider plugin can be configured in solrconfig.xml with the following XML:
      <directoryProvider class="class.name">
      <!-- Parameters as required by the implementation -->
      </directoryProvider>

      This patch was created against solr trunk checked out on 11/20/2007. Most of it is new code and should apply cleanly or with minor relocation. If it does not, let me know and I will update.

      Attachments

        1. SOLR-465.patch
          0.7 kB
          Mark Miller
        2. SOLR-465.patch
          2 kB
          Mark Miller
        3. SOLR-465.patch
          1 kB
          Mark Miller
        4. SOLR-465.patch
          0.8 kB
          Mark Miller
        5. SOLR-465.patch
          30 kB
          Mark Miller
        6. SOLR-465.patch
          31 kB
          Mark Miller
        7. SOLR-465-fixes.patch
          2 kB
          Andrey Klochkov
        8. solr-directory-provider.patch
          13 kB
          TJ Laurenzo

        Issue Links

          Activity

            People

              yseeley@gmail.com Yonik Seeley
              tlaurenzomq TJ Laurenzo
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.25h
                  0.25h
                  Remaining:
                  Remaining Estimate - 0.25h
                  0.25h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified