Closed mbohun closed 4 years ago
The following query returns 11 results:
curl -s 'https://sit-ag-bie.oztaxa.com/ws/search.json?fq=rk_kingdom:Animalia&fq=rank:phylum&pageSize=100&start=0&facets=rank&sort=scientificName' | jq '.searchResults.totalRecords' 11
HOWEVER if we try to combine the above query with q=a* then we get back 0 results:
q=a*
curl -s 'https://sit-ag-bie.oztaxa.com/ws/search.json?q=a*&fq=rk_kingdom:Animalia&fq=rank:phylum&pageSize=100&start=0&facets=rank&sort=scientificName' | jq '.searchResults.totalRecords' 0
...ALTHOUGH q (q=a*) without any fq-s works fine (plus i did verify the other/sub-sequent args are used correctly, i did try this same query with-and-without sort=scientificName and the result was clearly different (sorted-vs-unsorted)):
sort=scientificName
curl -s 'https://sit-ag-bie.oztaxa.com/ws/search.json?q=a*&pageSize=100&start=0&facets=rank&sort=scientificName' | jq '.searchResults.totalRecords' 8678
This issue is released in v0.6
The following query returns 11 results:
HOWEVER if we try to combine the above query with
q=a*
then we get back 0 results:...ALTHOUGH q (
q=a*
) without any fq-s works fine (plus i did verify the other/sub-sequent args are used correctly, i did try this same query with-and-withoutsort=scientificName
and the result was clearly different (sorted-vs-unsorted)):