You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ishan Chattopadhyaya (JIRA)" <ji...@apache.org> on 2018/02/10 14:22:00 UTC

[jira] [Resolved] (SOLR-3089) Make ResponseBuilder.isDistrib public

     [ https://issues.apache.org/jira/browse/SOLR-3089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ishan Chattopadhyaya resolved SOLR-3089.
----------------------------------------
       Resolution: Fixed
         Assignee: Ishan Chattopadhyaya
    Fix Version/s:     (was: 6.0)
                       (was: 4.9)
                   7.3
                   master (8.0)

Thanks to all.

> Make ResponseBuilder.isDistrib public
> -------------------------------------
>
>                 Key: SOLR-3089
>                 URL: https://issues.apache.org/jira/browse/SOLR-3089
>             Project: Solr
>          Issue Type: Improvement
>          Components: Response Writers
>            Reporter: Rok Rejc
>            Assignee: Ishan Chattopadhyaya
>            Priority: Major
>             Fix For: master (8.0), 7.3
>
>         Attachments: SOLR-3089.patch, 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org