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

org.apache.solr.client.solrj.beans.DocumentObjectBinder customization

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.4.1
    • 3.1.1
    • clients - java, SolrJ
    • None

    Description

      I suggest adding a way to customize DocumentObjectBinder behavior. It is not always possible to perform mapping between SolrInputDocument and beans using the default implementation. And SolrServer doesn't have a way to change the default binder for a different implementation. My suggestion is very simple: introduce an interface for binder, and add the ability to set the custom binder for the SolrServer. Please find suggested changes in the attached file. Such an addition will make the solr4J library more flexible.

      Attachments

        1. patch.zip
          7 kB
          Alexander Suslov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              01sas Alexander Suslov
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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