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

Please change method visibility of getSolrWriter in DataImportHandler to public (or at least protected)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 4.0
    • None
    • None
    • Linux 3.13.9-200.fc20.x86_64
      Solr 4.6.0

    Description

      I've been using the org.apache.solr.handler.dataimport.DataImportHandler for a bit and it's an excellent model and architecture. I'd like to extend the usage of it to plugin my own DIHWriter, but, the code doesn't allow for it. Please change ~line 227 in the DataImportHander class to be:

      public SolrWriter getSolrWriter

      instead of:

      private SolrWriter getSolrWriter

      or, at a minimum, protected, so that I can extend DataImportHandler and override this method.

      Thank you sincerely in advance for the quick turn-around on this. If the change can be made in 4.6.0 and upstream, that'd be ideal.

      Thanks!

      Attachments

        1. SOLR-5981.patch
          4 kB
          Shawn Heisey

        Issue Links

          Activity

            People

              jdyer James Dyer
              aaronlab Aaron LaBella
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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