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

Remove SolrRequest.getBasePath setBasePath

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • SolrJ

    Description

      SolrRequest has a getBasePath & setBasePath. The naming is poor; it's the URL base to the Solr node like "http://localhost:8983/solr". It's only recognized by HttpSolrClient; LBSolrClient (used by CloudSolrClient) ignores it and will in fact mutate the passed in request to its liking, which is rather ugly because it means a request cannot be used concurrently if the user wants to. But moreover I think there's a conceptual discordance of placing this concept on SolrRequest given that some clients want to route requests to nodes they choose. I propose removing this from SolrRequest and instead adding a method specific to HttpSolrClient. Almost all existing usages of setBasePath immediately execute the request on an HttpSolrClient, so should be easy to change.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m