Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by JayJennings: http://wiki.apache.org/solr/UpdateRichDocuments ------------------------------------------------------------------------------ Example of using HTTP-POST to send the PDF data over the network to the Solr server in browser: {{{ - curl http://localhost:8983/solr/update/rich?stream.type=pdf --data-binary @simple.pdf -H 'Content-type:text/plain; charset=utf-8' + curl -F "[EMAIL PROTECTED]" -F "stream.type=pdf" -F "id=102" -F "stream.fieldname=name" -F "commit=true" http://localhost:8983/solr/update/rich }}} Uploading a binary file can be more efficient than sending it over the network via HTTP. @@ -62, +62 @@ The following request will cause Solr to directly read the input file: {{{ URL in browser to add document - http://localhost:8983/solr/update/rich?stream.type=doc&stream.file=src/test/test-files/complex.doc&id=101&stream.fieldname=name&commit=true + http://localhost:8983/solr/update/rich?stream.type=doc&stream.file=SOLR_HOME/src/test/test-files/complex.doc&id=101&stream.fieldname=name&commit=true #NOTE: The full path, or a path relative to the CWD of the running solr server must be used. URL in browser to get results
