Created
July 2, 2012 18:08
-
-
Save lenada/3034651 to your computer and use it in GitHub Desktop.
sample websolr update request
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
curl http://hostname/solr/xxxxxxxxxxx/update -H "Content-Type: text/xml" --data-binary '<add allowDups="false" overwritePending="true" overwriteCommitted="true"><doc><field name="id">easybib_4562eb2ace54c7e846baca223705eff8</field><field name="source">journal</field><field name="json">{"_id":"4562eb2ace54c7e846baca223705eff8","_rev":"1-3133123208","source":"journal","pubtype":{"main":"pubjournal","suffix":"pubdatabase"},"pubjournal":{"nonconsecutive":"","end":"61","start":"61","title":"Time Canada","issue":"16","restarts":"","series":"","seriesnumber":"","volume":"162","year":"2003"},"journal":{"title":"This is Your Brain on Rejection"},"pubdatabase":{"dayaccessed":"30","monthaccessed":"october","yearaccessed":"2006","city":"","db":"EBSCOhost","library":"","searchtext":"","searchtype":"","service":""},"reference_number":"200612141352101165","contributors":[{"function":"author","first":"Mark","middle":"R","last":"Leary"}],"annotation":[]}</field><field name="datasource">easybib</field><field name="source_boost">1</field><field name="article_title">This Is Your Brain On Rejection</field><field name="publication_type">pubjournal</field><field name="source_title">Time Canada</field><field name="publication_date">2003</field><field name="contributor_full">Mark R Leary</field><field name="online">other</field><field name="source_list">200612141352101165</field><field name="group_count">2</field><field name="master">1</field><field name="group_code">c225e005398e2c645dc21c8179909700</field><field name="table">citation_2006_50</field></doc></add>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment