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

Make ResponseBuilder.isDistrib public

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.3, 8.0
    • Response Writers
    • None

    Description

      Hi,

      i have posted this issue on a mailing list but i didn't get any response.

      I am trying to write distributed search component (a class that extends SearchComponent). I have checked FacetComponent and TermsComponent. If I want that search component works in a distributed environment I have to set ResponseBuilder's isDistrib to true, like this (this is also done in TermsComponent for example):

      public void prepare(ResponseBuilder rb) throws IOException {
      SolrParams params = rb.req.getParams();
      String shards = params.get(ShardParams.SHARDS);
      if (shards != null)

      { List<String> lst = StrUtils.splitSmart(shards, ",", true); rb.shards = lst.toArray(new String[lst.size()]); rb.isDistrib = true; }

      }

      If I have my component outside the package org.apache.solr.handler.component this doesn't work. Is it possible to make isDistrib public (or is this the wrong procedure/behaviour/design)?

      Many thanks,
      Rok

      Attachments

        1. Solr-3089.patch
          0.5 kB
          Frank Wesemann
        2. SOLR-3089.patch
          3 kB
          Abhishek Kumar Singh

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ichattopadhyaya Ishan Chattopadhyaya
            rrejc Rok Rejc
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment