plazi / treatmentBank

Repository devoted to house keeping of treatmentBank
0 stars 0 forks source link

saving search results from general search #47

Open myrmoteras opened 2 years ago

myrmoteras commented 2 years ago

@gsautter is there a way to save the search results (ie. get a list of all the treatments that include a certain search terms like "roosting" https://tb.plazi.org/GgServer/search?fullText.ftQuery=roosting ) eg the treatment UUID, taxon name, article UUID?

gsautter commented 2 years ago

The "[link]" gives you a link that will repeat the exact same search, but that latter result will reflect the status of the collection at that point in time, not when the first search happened, so we don't have a permalink for a given search result at a given moment ... never was a requirement, either. If you want the raw data instead of an HTML page, simply append &resultFormat=XML to the query (e.g. https://tb.plazi.org/GgServer/search?fullText.ftQuery=roosting&resultFormat=XML) ... the &cacheControl=force parameter works as well, by the way.