Socorro:SOLR API: Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
= Writing Solr Queries =
Solr Admin page available at:
http://cm-hadoop24.mozilla.org:8983/solr/admin
Solr Admin Schema page available at:
http://cm-hadoop24.mozilla.org:8983/solr/admin/schema.jsp
== Rules ==
* Must url-encode strings according to RFC 1738
* Date/timestamps must adhere to ISO 8601
== Notes ==
Use facet.field=os_name in order to get a count for each of the OS's
Use facet.field=os_version in order to get a count for each of the OS versions
Use &wt=json to return a query in json
Use AND/OR to query for more than 1 value in a specific field:
* http://cm-hadoop24.mozilla.org:8983/solr/select/?q=product:firefox+OR+thunderbird
Use NOT to remove 1 value from a specific field:
* http://cm-hadoop24.mozilla.org:8983/solr/select/?q=product:thunderbird+NOT+firefox
Use parenthesis to query for more than 1 value in more than 1 field:
http://cm-hadoop24.mozilla.org:8983/solr/select/?q=%28product:firefox+OR+thunderbird%29%20AND%20signature:flash
= Python APIs =  
= Python APIs =  


1,241

edits