![]() ![]() The example above introduces several new concepts. Example: :"Drosophila" AND body:"RNA"&fl=id,abstract Suppose we want all the article DOIs ( id ) and abstracts with ‘Drosophila’ in the title and ‘RNA’ in the body of the article. With knowledge of available fields complex queries can be constructed. For example if we wanted information regarding all articles with ‘DNA’ in the title of the article we would construct the following URL. ![]() The ‘q’ parameter defines the field(s) that will be searched and by what criteria. All Solr searches will need to have the parameter ‘q’ ( for query ) specified. Parameters passed to the endpoint will be identical to those described in the Solr documentation. The construction of PLOS search queries deviates from the standard Solr query URL by using ‘ search‘ instead of ‘ select‘ when making request to the end point. A full Solr query language explanation can be found here and a tutorial here. These examples are not intended to be a full explanation on the use of Solr. These examples use the search API to search the PLOS corpus of scientific articles.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |