Hi Buri,

You upload your XML schema file via an HTTP PUT request:

curl -XPUT -iH 'Content-Type: application/xml' '
http://localhost:8098/search/schema/my-test-schema' --data-binary
@my-test-schema.xml

Then, you can associate the schema with an index:

curl -XPUT -iH 'Content-Type: application/json'
http://localhost:8098/search/index/my-test-index -d
'{"schema":"my-test-schema"}'

--
Luke Bakken
CSE
[email protected]


On Fri, Mar 21, 2014 at 3:58 PM, Buri Arslon <[email protected]> wrote:

> I found this:
>
> ./lib/yokozuna-v0.14.0-41-gf1fd688/priv/default_schema.xml
>
> is that the right directory to store custom schemas?
>
>
> On Fri, Mar 21, 2014 at 4:26 PM, Buri Arslon <[email protected]> wrote:
>
>> I mean, where do I store my custom schemas?
>>
>>
>> On Fri, Mar 21, 2014 at 4:20 PM, Buri Arslon <[email protected]> wrote:
>>
>>> Hi guys!
>>>
>>> Where does Riak store solr schemas (xml files)? I can't find in the docs:
>>>
>>> http://docs.basho.com/riak/2.0.0pre11/dev/using/search/
>>> http://docs.basho.com/riak/2.0.0pre11/dev/advanced/search-schema/
>>>
>>>
>>> Thanks,
>>> -- Buriwoy
>>>
>>
>>
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to