Since you're using SolrJ anyway just use the
CollectionsAdminRequest. You can see
examples of it's use in the test cases, take a look
at CollectionsApiSolrJTests..

Best,
Erick

On Wed, Feb 10, 2016 at 5:55 AM, vidya <vidya.nade...@tcs.com> wrote:
> Hi
>
>   I want to connect to solrCloud server from java program using
> zookeeperHost variable. I know that data can be indexed and searched from a
> collection using java program. but Can i able to create a collection
> initially from java program?
>
>
> My problem is that i cannot access solr web page, i'm getting an error like
> "defected tokens detected". So, i wanted to connect to solr using solrj API.
> For that I need to create a collection initially.Got struck here.
>
> Anyone can help me.
> Thanks in advance
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solrj-collection-creation-tp4256380.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to