Created
February 18, 2015 16:05
-
-
Save tomgullo/5794eaf5fc9dfe2b5f5c to your computer and use it in GitHub Desktop.
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
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