-
-
Save ashald/d12e6f6d54725fcf5e4ce4198837c2ed to your computer and use it in GitHub Desktop.
solr testing Transfer-Encoding: chunked
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
export SOLRUPDATE='http://localhost:8983/solr/testingCore/update?wt=json&commit=true' | |
export SOLRQUERY='http://localhost:8983/solr/testingCore/select?wt=json&q=*:*' | |
curl $SOLRUPDATE --data-binary '[{"id": "1"},{"id": "2"}]' -H 'Content-Type: application/json' -X POST -H "Transfer-Encoding: chunked" | |
#>> response {"responseHeader":{"status":0,"QTime":295}} | |
curl $SOLRQUERY | |
#>> {"responseHeader":{"status":0,"QTime":15,"params":{"q":"*:*","wt":"json"}},"response":{"numFound":2,"start":0,"maxScore":1.0,"docs":[{"id":"1","_version_":1570026155898044416},{"id":"2","_version_":1570026155878121472}]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment