lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <ysee...@gmail.com>
Subject Re: How to create a core by API?
Date Thu, 26 Mar 2015 18:48:04 GMT
On Thu, Mar 26, 2015 at 1:45 PM, Mark E. Haase <mehaase@gmail.com> wrote:
> I'm not saying you're wrong. The configSet parameter doesn't work at all in
> my set up, so you might be right... I'm just wondering where that's
> documented.

Trying on current trunk, I got it to work:

/opt/code/lusolr_trunk/solr$ curl -XPOST
"http://localhost:8983/solr/admin/cores?action=CREATE&name=demo3&instanceDir=demo3&configSet=basic_configs"

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <lst name="responseHeader"><int name="status">0</int><int
name="QTime">769</int></lst><str name="core">demo3</str>
</response>

Although I'm not thrilled with a different parameter name  for cloud
vs non-cloud.  I come from the camp that believes that overloading is
both natural and easily understood (e.g.  I don't find "foo" + "bar"
and 1.5 + 2.5 both using "+" confusing).

-Yonik

Mime
View raw message