LoginSignup
0
0

More than 5 years have passed since last update.

Solr の managed-schema に REST API で add-field する

Posted at

公式ドキュメントがこのザマだったので。
スクリーンショット 2017-09-13 11.12.01.png

やること

  • post するといいです。具体的には以下の感じ。
$ curl -X POST -H 'Content-type:application/json' --data-binary '{
    "add-field": [
        {
            "name": "hoge",
            "type": "string",
            "stored": true,
            "indexed": true,
            "multiValued": true,
        },
        {
            "name": "fuga",
            "type": "string",
            "stored": true,
            "indexed": true
        }
    ]
}' 'http://localhost:8983/solr/core1/schema'
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0