Open myrmoteras opened 4 years ago
I am not sure I fully understand the problem described above (because I am not a taxonomist), but let me tell you what is being queried: When you search for treatmentTitle=Chiroptera
a search is conducted for all the records where the treatmentTitle field in the database starts with chiroptera (note the lowercase match). That is all. There is no other constraint placed on the search. It is not a search for a title where chiroptera appears anywhere. The title has to start with chiroptera.
Perhaps we need to redifine the "Taxon" search to mean not "search taxon name" (i.e., effectively Treatment title starts with X") but something broader to mean "search for term X in any taxonomic level field" so that "Chiroptera" will return all treatments with Chiroptera in order, genus, species or any taxon level field up to kingdom. Is this what is desired? @myrmoteras
When I search for the bat order Chiroptera, I only get in the taxon search those treatments at order level
http://z2.punkish.org/v2/treatments?facets=true&stats=true&treatmentTitle=Chiroptera
Is this like this, or shouldn't it deliver all the taxa, and then allow faceted search at the taxonomic rank requested?