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

Patch to set IndexWriter.defaultInfoStream from solr.xml

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: None
    • Labels:
      None

      Description

      Lucene IndexWriters use an infoStream to log detailed info about indexing operations for debugging purpose. This patch is an extremely simple way to allow logging this info to a file from within Solr: After applying the patch, set the new "defaultInfoStreamFilePath" attribute of the solr element in solr.xml to the path of the file where you'd like to save the logging information.

      Note that, in a multi-core setup, all cores will end up logging to the same infoStream log file. This may not be desired. (But it does justify putting the setting in solr.xml rather than solrconfig.xml.)

        Attachments

        1. SOLR-1145.patch
          1 kB
          Chris Harris
        2. SOLR-1145.patch
          4 kB
          Chris Harris
        3. SOLR-1145.patch
          4 kB
          Mark Miller
        4. SOLR-1145.patch
          5 kB
          Mark Miller

          Activity

            People

            • Assignee:
              markrmiller@gmail.com Mark Miller
              Reporter:
              ryguasu Chris Harris
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: