Skip to content

Instantly share code, notes, and snippets.

@PharkMillups
Created October 15, 2010 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PharkMillups/628572 to your computer and use it in GitHub Desktop.
Save PharkMillups/628572 to your computer and use it in GitHub Desktop.
14:35 <siculars> hey gang, how do you get the solr endpoint to output results in json in riak_search?
14:39 <jdmaturen> wt=FORMAT - Choose the format of the output. Options are "xml" and "json".
The default is "xml".
14:39 <jdmaturen> … much like the normal solr api :)
14:41 <seancribbs> siculars: wt=json yup
14:46 <siculars> hm .. so http://localhost:8098/solr/posts/select?q=tag:val returns what i
want in xml but when the query string is ?q=tag:val&wt=json i still get xml
14:48 <seancribbs> siculars: escape the &
14:48 <seancribbs> if you're in shell
14:48 <siculars> gr
14:48 <seancribbs> ;)
14:48 <siculars> grrrr. so smart, so smart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment