Skip to content

Instantly share code, notes, and snippets.

@ke4roh
Created October 13, 2015 15:50
Show Gist options
  • Save ke4roh/fcb6f3b9796519fa947b to your computer and use it in GitHub Desktop.
Save ke4roh/fcb6f3b9796519fa947b to your computer and use it in GitHub Desktop.
Solr Under The Hood Getting Started field definition
#!/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