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

Patch to set IndexWriter.defaultInfoStream from solr.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: