Solr
  1. Solr
  2. SOLR-3089

Make ResponseBuilder.isDistrib public

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.9, 5.0
    • Component/s: Response Writers
    • Labels:
      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

        Activity

        Rok Rejc created issue -
        Robert Muir made changes -
        Field Original Value New Value
        Fix Version/s 4.1 [ 12321141 ]
        Fix Version/s 4.0 [ 12314992 ]
        Mark Miller made changes -
        Fix Version/s 5.0 [ 12321664 ]
        Fix Version/s 4.1 [ 12321141 ]
        Fix Version/s 4.2 [ 12323893 ]
        Robert Muir made changes -
        Fix Version/s 4.3 [ 12324128 ]
        Fix Version/s 5.0 [ 12321664 ]
        Fix Version/s 4.2 [ 12323893 ]
        Uwe Schindler made changes -
        Fix Version/s 4.4 [ 12324324 ]
        Fix Version/s 4.3 [ 12324128 ]
        Hide
        Steve Rowe added a comment -

        Bulk move 4.4 issues to 4.5 and 5.0

        Show
        Steve Rowe added a comment - Bulk move 4.4 issues to 4.5 and 5.0
        Steve Rowe made changes -
        Fix Version/s 5.0 [ 12321664 ]
        Fix Version/s 4.5 [ 12324743 ]
        Fix Version/s 4.4 [ 12324324 ]
        Adrien Grand made changes -
        Fix Version/s 4.6 [ 12325000 ]
        Fix Version/s 5.0 [ 12321664 ]
        Fix Version/s 4.5 [ 12324743 ]
        Uwe Schindler made changes -
        Fix Version/s 4.7 [ 12325573 ]
        Fix Version/s 4.6 [ 12325000 ]
        David Smiley made changes -
        Fix Version/s 4.8 [ 12326254 ]
        Fix Version/s 4.7 [ 12325573 ]
        Hide
        Uwe Schindler added a comment -

        Move issue to Solr 4.9.

        Show
        Uwe Schindler added a comment - Move issue to Solr 4.9.
        Uwe Schindler made changes -
        Fix Version/s 4.9 [ 12326731 ]
        Fix Version/s 5.0 [ 12321664 ]
        Fix Version/s 4.8 [ 12326254 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Rok Rejc
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development