Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Let's assume we have the following index structure:
<field name="id" type="string" indexed="true" stored="true"
required="true" />
<field name="user" type="string" indexed="true" stored="true"/>


And we would like to add a single value to this index. In cookbook it's done by such command

curl 'localhost:8983/solr/update?commit=true' -H 'Contenttype:
application/json' -d '[{"id":"1","user":{"add":"jack"}}]'


How can I add value to index from java code by passing http request?
Posted
Updated 29-Sep-13 10:36am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900