plazi / treatmentBank

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

search provides not treatment but article #52

Open myrmoteras opened 2 years ago

myrmoteras commented 2 years ago

Using the Search tool here http://plazi.org/treatmentbank/ and searching for Alisma gramineum I am not getting treatmennts, but the entire Flora der Schweiz vol that includes this taxon https://tb.plazi.org/GgServer/summary/36E6AC1FB8BC1FC524F55871EAF4A080 and not https://tb.plazi.org/GgServer/html/ED14B122C56673CE98A4E949626EE562

gsautter commented 2 years ago

It's listed in https://tb.plazi.org/GgServer/search?fullText.ftQuery=&fullText.matchMode=prefix&taxonomicName.taxonomicName=Alisma+gramineum&taxonomicName.isNomenclature=true&taxonomicName.exactMatch=true&taxonomicName.order=&taxonomicName.family=&taxonomicName.genus=&taxonomicName.species=&BibMetaData.docAuthor=&BibMetaData.docDate=&BibMetaData.docTitle=&BibMetaData.docOrigin=&BibMetaData.part=&BibMetaData.pageNumber=&BibMetaData.extId=&materialsCitation.location=&materialsCitation.country=&materialsCitation.stateProvince=&materialsCitation.typeStatus=All+Types&materialsCitation.collectionCode=&materialsCitation.specimenCode=&materialsCitation.LSID=&materialsCitation.longitude=&materialsCitation.latitude=&materialsCitation.degreeCircle=1&materialsCitation.elevation=&materialsCitation.elevationCircle=100&indexName=0&subIndexName=0&minSubResultSize=0 ... where is it you say it's missing?

myrmoteras commented 2 years ago

I can only report what I get starting from here http://plazi.org/treatmentbank/

image

image

gsautter commented 2 years ago

Well, you're using the full text search, not the taxon name search ... the reason you get the summary is likely that you get multiple hits within the top results, and all from the same parent document, in which case the search portal shows the summary ... the underlying raw result is this: https://tb.plazi.org/GgServer/search?fullText.ftQuery=Alisma+gramineum&fullText.matchMode=prefix&indexName=0&subIndexName=0&minSubResultSize=0&resultFormat=XML ... we defined this showing the summary instead of a list of treatments a while back, so this is expected behavior, if, admittedly, a bit odd if the summary is large.

myrmoteras commented 2 years ago

ok then, this IS our search to find treatments about a taxon in Plazi. This does not make sense, because it obfuscates all the work we do to have 750,000 treatments at hand.

So we need to change. to get treatments back, not articles. Can you and Puneet figure what has to be changed so that we get treatments? Tx

gsautter commented 2 years ago

Simple ... he should use the taxon search instead of the full text search ... same address, only different query fields, as easily extracted from the source code of https://tb.plazi.org/GgServer/search ... the query for the issue at hand would be https://tb.plazi.org/GgServer/search?taxonomicName.taxonomicName=Alisma+gramineum&taxonomicName.isNomenclature=true&taxonomicName.exactMatch=true&indexName=0&subIndexName=0&minSubResultSize=0

gsautter commented 2 years ago

It might even be advisable to add a drop-down for selecting what to search (taxa, materials citations, metadata, or full text), specifying which indexer to throw the query at ... the above taxon search does the trick for taxa, but not for a country name, etc., for obvious reasons, so a "search what?" selector might prove handy.