You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Lingeshm <sm...@rediffmail.com> on 2017/04/21 08:20:40 UTC

Re: Update schema.xml without restarting Solr?

Hello Team ,

I can’t change the schema name of an existing index.

I want to change the schema name from “schemaV1" to “schemaV2 for one of the
existing index

curl -XPUT http://localhost:8098/search/index/my_idx-H "Content-Type:
application/json" -d '{"schema":"schemaV2"}'

the funny part is curl is not returning anything such either error or
success. I expect the next GET to return {"schema":" schemaV2"} but it still
returns {"schema":" schemaV1"}

I am using solr 4.10.4 version.

Have you faced any such issue ??

Regards
Lingesh M



--
View this message in context: http://lucene.472066.n3.nabble.com/Update-schema-xml-without-restarting-Solr-tp484263p4331225.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Update schema.xml without restarting Solr?

Posted by Mikhail Khludnev <mk...@apache.org>.
> the funny part is curl is not returning anything such either error or
success

can you add -v or so to curl, to see http status code at least?

On Fri, Apr 21, 2017 at 11:20 AM, Lingeshm <sm...@rediffmail.com> wrote:

> Hello Team ,
>
> I can’t change the schema name of an existing index.
>
> I want to change the schema name from “schemaV1" to “schemaV2 for one of
> the
> existing index
>
> curl -XPUT http://localhost:8098/search/index/my_idx-H "Content-Type:
> application/json" -d '{"schema":"schemaV2"}'
>
> the funny part is curl is not returning anything such either error or
> success. I expect the next GET to return {"schema":" schemaV2"} but it
> still
> returns {"schema":" schemaV1"}
>
> I am using solr 4.10.4 version.
>
> Have you faced any such issue ??
>
> Regards
> Lingesh M
>
>
>
> --
> View this message in context: http://lucene.472066.n3.
> nabble.com/Update-schema-xml-without-restarting-Solr-tp484263p4331225.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Sincerely yours
Mikhail Khludnev

Re: Update schema.xml without restarting Solr?

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
I would say that all this points at existence of middle-ware in front
of Solr. Therefore, the next action would be to identify the
middle-ware and ask this question on _their_ mailing list.

Regards,
   Alex.
----
http://www.solr-start.com/ - Resources for Solr users, new and experienced


On 21 April 2017 at 08:38, Shawn Heisey <ap...@elyograg.org> wrote:
>  On 4/21/2017 2:20 AM, Lingeshm wrote:
>> I can’t change the schema name of an existing index.
>>
>> I want to change the schema name from “schemaV1" to “schemaV2 for one of the
>> existing index
>>
>> curl -XPUT http://localhost:8098/search/index/my_idx-H "Content-Type:
>> application/json" -d '{"schema":"schemaV2"}'
>>
>> the funny part is curl is not returning anything such either error or
>> success. I expect the next GET to return {"schema":" schemaV2"} but it still
>> returns {"schema":" schemaV1"}
>>
>> I am using solr 4.10.4 version.
>
> I have never seen a URL path like "/search/index/my_idx-H" for Solr.
> Typically any URL path for Solr will start with "/solr".  With a 4.x
> version, you might have changed the context path in the container, in
> newer versions the admin UI will break if that is changed.  If you are
> attempting to use the Schema API, then your URL path would contain
> "/schema" somewhere, which is missing.
>
> Can you point to a location in the Solr documentation that describes
> what you are trying to do?
>
> I have never seen anything like the JSON that you are sending.  The
> Schema API documentation for version 6.6 (not yet released) doesn't
> mention any ability to change the name.  Such a change would cause no
> difference in how the schema works even if it were possible -- it's
> cosmetic, and something somebody who uses Solr will never see.
>
> Thanks,
> Shawn
>

Re: Update schema.xml without restarting Solr?

Posted by Shawn Heisey <ap...@elyograg.org>.
 On 4/21/2017 2:20 AM, Lingeshm wrote:
> I can\u2019t change the schema name of an existing index.
>
> I want to change the schema name from \u201cschemaV1" to \u201cschemaV2 for one of the
> existing index
>
> curl -XPUT http://localhost:8098/search/index/my_idx-H "Content-Type:
> application/json" -d '{"schema":"schemaV2"}'
>
> the funny part is curl is not returning anything such either error or
> success. I expect the next GET to return {"schema":" schemaV2"} but it still
> returns {"schema":" schemaV1"}
>
> I am using solr 4.10.4 version.

I have never seen a URL path like "/search/index/my_idx-H" for Solr. 
Typically any URL path for Solr will start with "/solr".  With a 4.x
version, you might have changed the context path in the container, in
newer versions the admin UI will break if that is changed.  If you are
attempting to use the Schema API, then your URL path would contain
"/schema" somewhere, which is missing.

Can you point to a location in the Solr documentation that describes
what you are trying to do?

I have never seen anything like the JSON that you are sending.  The
Schema API documentation for version 6.6 (not yet released) doesn't
mention any ability to change the name.  Such a change would cause no
difference in how the schema works even if it were possible -- it's
cosmetic, and something somebody who uses Solr will never see.

Thanks,
Shawn