Skip to content

Instantly share code, notes, and snippets.

@robyoung
Created May 11, 2012 11:04
Show Gist options
  • Save robyoung/2659003 to your computer and use it in GitHub Desktop.
Save robyoung/2659003 to your computer and use it in GitHub Desktop.
Solr Autocomplete Query
curl 'http://govuk:8983/solr/licence-finder/select?q=autocomplete%3Amanag%2A&wt=ruby&qt=standard&rows=5&start=0&fl=title%2Clink%2Cformat&indent=on'
{
'responseHeader'=>{
'status'=>0,
'QTime'=>0,
'params'=>{
'fl'=>'title,link,format',
'indent'=>'on',
'start'=>'0',
'q'=>'autocomplete:manag*',
'wt'=>'ruby',
'qt'=>'standard',
'rows'=>'5'}},
'response'=>{'numFound'=>7,'start'=>0,'docs'=>[
{
'title'=>'Claims management'},
{
'title'=>'Claims management'},
{
'title'=>'General management consultancy'},
{
'title'=>'Property management services'},
{
'title'=>'Holding company management'}]
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment