Created
October 13, 2015 15:50
-
-
Save ke4roh/fcb6f3b9796519fa947b to your computer and use it in GitHub Desktop.
Solr Under The Hood Getting Started field definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl http://localhost:8983/solr/gettingstarted/schema -D - -X POST -H \ | |
'Content-type:application/json' --data-binary '{ | |
"add-field" : { | |
"name":"name", | |
"type":"text_general", | |
"stored":true | |
}, | |
"add-field" : { | |
"name":"initial_release_date", | |
"type":"tdate", | |
"stored":true | |
}, | |
"add-field" : { | |
"name":"genre", | |
"type":"text_general", | |
"stored":true, | |
"multiValued":true | |
}, | |
"add-field" : { | |
"name":"directed_by", | |
"type":"text_general", | |
"stored":true, | |
"multiValued":true | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment