[
https://issues.apache.org/jira/browse/SOLR-3089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16150256#comment-16150256
]
Abhishek Kumar Singh edited comment on SOLR-3089 at 9/1/17 9:14 AM:
--------------------------------------------------------------------
I am using SOLR 6.5.0 and am still facing the same issue.
I feel the patch should be merged.
was (Author: asingh2411):
I am using SOLR 6.50 and am still facing the same issue.
I feel the patch should be merged.
> Make ResponseBuilder.isDistrib public
> -------------------------------------
>
> Key: SOLR-3089
> URL: https://issues.apache.org/jira/browse/SOLR-3089
> Project: Solr
> Issue Type: Improvement
> Components: Response Writers
> Affects Versions: 4.0-ALPHA
> Reporter: Rok Rejc
> Fix For: 4.9, 6.0
>
> Attachments: Solr-3089.patch
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]