Search method
This method is for query in Solr. Then you have to build your query for search. Please find below different examples about that:
- Search for ndc80:
/search/ndc80
- Search for ndc80 and facet with the species field:
/search/ndc80?facets=species_f
- Search for ndc80 and facet with the species and biological role fields:
/search/ndc80?facets=species_f,pbiorole_f
- Search for ndc80, facet with the species and biological role fields and filter the species using human:
/search/Ndc80?first=0&number=10&filters=species_f:("Homo sapiens")&facets=species_f,ptype_f,pbiorole_f
- Search for ndc80, facet with the species and biological role fields and filter the species using human or mouse:
/search/Ndc80?first=0&number=10&filters=species_f:("Homo sapiens" "Mus musculus")&facets=species_f,ptype_f,pbiorole_f
- Search with a wildcard to retrieve all the information:
/search/*
- Search with a wildcard to retrieve all the information and facet with the species, biological role and interactor type fields:
/search/*?facets=species_f,pbiorole_f,ptype_f
- Search with a wildcard to retrieve all the information, facet with the species, biological role and interactor type fields and filter the interactor type using small molecule:
/search/*?facets=species_f,pbiorole_f,ptype_f&filters=ptype_f:("small molecule")
- Search with a wildcard to retrieve all the information, facet with the species, biological role and interactor type fields and filter the interactor type using small molecule and the species using human:
/search/*?facets=species_f,pbiorole_f,ptype_f&filters=ptype_f:("small molecule"),species_f:("Homo sapiens")
- Search for GO:0016491 and paginate (first is for the offset and number is how many do you want):
/search/GO:0016491?first=10&number=10