Skip to content

Instantly share code, notes, and snippets.

@sebnmuller
Created August 28, 2014 07:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sebnmuller/689fcbc009e376ec325f to your computer and use it in GitHub Desktop.
Save sebnmuller/689fcbc009e376ec325f to your computer and use it in GitHub Desktop.
Postman collection with various useful Solr HTTP requests
{"version":1,"collections":[{"id":"04bbd880-89d1-6b8e-493b-3a5897c3a627","name":"Solr","timestamp":1408609487361,"order":["1318faeb-455d-5933-04aa-03497ef65620","a586f9c9-924f-9e94-4adf-63b656d65ce3","20459ac6-9805-280c-aaef-18b9dcc27a66","ce6d7ede-ddac-d58b-b479-2c6378d5e815","45e38352-938e-6f6b-0daf-d7603f307d3d","2df3df54-f7a3-4807-80b3-7ce8cfcae45d","2ae918e7-8c7e-34af-a67b-404b57d6b403","1c16e9c1-20f5-b102-a8f2-530cfaa7616e","3b6052b6-e184-2613-f114-ef317bc8a179"],"requests":[{"collectionId":"04bbd880-89d1-6b8e-493b-3a5897c3a627","id":"1318faeb-455d-5933-04aa-03497ef65620","name":"Add to index multiple","description":"Add multiple documents to the index","url":"http://localhost:8983/solr/update/json?wt=json","method":"POST","headers":"Content-Type: text/json\n","data":"{\n\"add\": {\n\t\"doc\" : {\n\t\t\"id\":\"1\",\n\t\t\"first_name\":\"christopher\",\n \"last_name\":\"walkin\"\n\t}\n},\n\"add\": {\n\t\"doc\" : {\n\t\t\"id\":\"2\",\n\t\t\"first_name\":\"kristoffer\",\n \"last_name\":\"runnin\"\n\t}\n},\n\"add\": {\n\t\"doc\" : {\n\t\t\"id\":\"3\",\n\t\t\"first_name\":\"kristopher\",\n \"last_name\":\"sittin\"\n\t}\n},\n\"add\": {\n\t\"doc\" : {\n\t\t\"id\":\"4\",\n\t\t\"first_name\":\"christoffer\",\n \"last_name\":\"joggin\"\n\t}\n},\n \t\n\"commit\":{}\n}","dataMode":"raw","timestamp":0,"version":2,"time":1409212276691},{"collectionId":"04bbd880-89d1-6b8e-493b-3a5897c3a627","id":"1c16e9c1-20f5-b102-a8f2-530cfaa7616e","name":"Retrieve all","description":"Return all documents","url":"http://localhost:8983/solr/select?q=*:*&omitHeader=true","method":"GET","headers":"","data":[],"dataMode":"params","timestamp":0,"version":2,"time":1409210361559},{"collectionId":"04bbd880-89d1-6b8e-493b-3a5897c3a627","id":"20459ac6-9805-280c-aaef-18b9dcc27a66","name":"Delete by ID","description":"Delete document(s) by ID","url":"http://localhost:8983/solr/update/json?wt=json","method":"POST","headers":"Content-Type: text/json\n","data":"{\n\t\"delete\": { \"query\":\"id:1\" },\n \"commit\": {}\n}\n","dataMode":"raw","timestamp":0,"version":2,"time":1409212283333},{"collectionId":"04bbd880-89d1-6b8e-493b-3a5897c3a627","id":"2ae918e7-8c7e-34af-a67b-404b57d6b403","name":"Reload core","description":"Reloads the Solr core","url":"http://localhost:8983/solr/admin/cores?action=RELOAD&core=collection1","method":"GET","headers":"","data":[],"dataMode":"params","timestamp":0,"version":2,"time":1409210114359},{"collectionId":"04bbd880-89d1-6b8e-493b-3a5897c3a627","id":"2df3df54-f7a3-4807-80b3-7ce8cfcae45d","name":"Query by ID","description":"Retrieve document(s) by ID","url":"http://localhost:8983/solr/select?q=id:1&omitHeader=true","method":"GET","headers":"","data":"{\n\t\"delete\": { \"query\":\"id:1\" },\n \"commit\": {}\n}\n","dataMode":"raw","timestamp":0,"version":2,"time":1409212302912},{"collectionId":"04bbd880-89d1-6b8e-493b-3a5897c3a627","id":"3b6052b6-e184-2613-f114-ef317bc8a179","name":"Non-phonetic query","description":"Retrieve document(s) by field value","url":"http://localhost:8983/solr/select?q=christopher&qf=first_name&defType=edismax&omitHeader=true","method":"GET","headers":"","data":"{\n\t\"delete\": { \"query\":\"id:1\" },\n \"commit\": {}\n}\n","dataMode":"raw","timestamp":0,"version":2,"time":1409212316927},{"collectionId":"04bbd880-89d1-6b8e-493b-3a5897c3a627","id":"45e38352-938e-6f6b-0daf-d7603f307d3d","name":"Phonetic Query Debugged","description":"Debugged phonetic query","url":"http://localhost:8983/solr/select?q=christopher&qf=first_name first_phonetic&defType=edismax&fl=*&debugQuery=true&omitHeader=true","method":"GET","headers":"","data":"{\n\t\"delete\": { \"query\":\"id:1\" },\n \"commit\": {}\n}\n","dataMode":"raw","timestamp":0,"version":2,"time":1409212294387},{"collectionId":"04bbd880-89d1-6b8e-493b-3a5897c3a627","id":"a586f9c9-924f-9e94-4adf-63b656d65ce3","name":"Clear index","description":"Delete entire index","url":"http://localhost:8983/solr/update/json?wt=json","method":"POST","headers":"Content-Type: text/json\n","data":"{\n\t\"delete\": { \"query\":\"id:*\" },\n \"commit\": {}\n}\n","dataMode":"raw","timestamp":0,"version":2,"time":1409211801292},{"collectionId":"04bbd880-89d1-6b8e-493b-3a5897c3a627","id":"ce6d7ede-ddac-d58b-b479-2c6378d5e815","name":"Index from DB","description":"Indexes from database","url":"http://localhost:8983/solr/collection1/dataimport?command=full-import","method":"GET","headers":"","data":[],"dataMode":"params","timestamp":0,"version":2,"time":1409210291104}]}],"environments":[],"headerPresets":[],"globals":[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment