{"action":"opened","issue":{"url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-service/issues/224","repository_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-service","labels_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-service/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-service/issues/224/comments","events_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-service/issues/224/events","html_url":"https://github.com/AtlasOfLivingAustralia/biocache-service/issues/224","id":325557172,"number":224,"title":"Cluster: Biocache-service generating solr queries with invalid sort and dir parameters.","user":{"login":"javier-molina","id":8326394,"avatar_url":"https://avatars1.githubusercontent.com/u/8326394?v=4","gravatar_id":"","url":"https://api.github.com/users/javier-molina","html_url":"https://github.com/javier-molina","followers_url":"https://api.github.com/users/javier-molina/followers","following_url":"https://api.github.com/users/javier-molina/following{/other_user}","gists_url":"https://api.github.com/users/javier-molina/gists{/gist_id}","starred_url":"https://api.github.com/users/javier-molina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javier-molina/subscriptions","organizations_url":"https://api.github.com/users/javier-molina/orgs","repos_url":"https://api.github.com/users/javier-molina/repos","events_url":"https://api.github.com/users/javier-molina/events{/privacy}","received_events_url":"https://api.github.com/users/javier-molina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-23T05:46:26Z","updated_at":"2018-05-23T05:46:26Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Biocache-service issues a few queries to solr such as the two below\n\n```\nhttp://aws-sc1b.ala:8983/solr/biocache/select?q=text:raptor&start=0&pageSize=20&sort=first_loaded_date&dir=desc&qc=&facets=taxon_name&facets=genus&facets=family&facets=kingdom&facets=common_name&facets=rank&facets=species_group&facets=taxonomic_issue&facets=type_status&facets=country&facets=state&facets=cl958&facets=cl959&facets=cl927&facets=sensitive&facets=geospatial_kosher&facets=collectors&facets=month&facets=occurrence_decade_i&facets=state_conservation&facets=basis_of_record&facets=multimedia&facets=occurrence_status&facets=sensitive&facets=assertions&facets=outlier_layer&facets=outlier_layer_count&facets=user_assertions&facets=duplicate_type&facets=collection_uid&facets=institution_uid&facets=data_resource_uid&flimit=10&formattedQuery=text:raptor&facet=true\n```\n\n```\nhttp://aws-sc1b.ala:8983/solr/biocache/select?q=*:*&start=0&pageSize=0&sort=score&dir=asc&qc=&flimit=-1&facet=true\n```\n\nAccording to https://wiki.apache.org/solr/CommonQueryParameters there is no dir parameter,  direction must be specified as part of the sort parameter as this: sort=field+[asc|desc] \n\nIt seems that some code in biocache-service needs to be updated so it produces the right parameters for solr.\n\n"}}
{"actor":{"display_login":"javier-molina"}}