Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tomgullo/5794eaf5fc9dfe2b5f5c to your computer and use it in GitHub Desktop.
Save tomgullo/5794eaf5fc9dfe2b5f5c to your computer and use it in GitHub Desktop.
1. Copy solrconfig.xml to /example/solr/collection1/conf
2. Copy schema.xml to /example/solr/collection1/conf
3. (optional) If you have use special classes for geospatial copy jts.jar over to /example/solr-webapp/../WEB-INF/lib
4. In example directory run java -jar start.jar
Query:
#!/bin/sh
curl http://localhost:8983/solr/collection1/query?q=*:*
Update:
curl http://localhost:8983/solr/collection1/update?commit=true -H 'Content-type:application/json' -d '
[
{
"id" : "MyTestDocument",
"title": "title"
}
]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment