Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taxon search: stratigraphy filter field #883

Open
Erikdzo opened this issue Oct 11, 2022 · 1 comment
Open

Taxon search: stratigraphy filter field #883

Erikdzo opened this issue Oct 11, 2022 · 1 comment
Assignees
Labels
api API development / support needed bug Something isn't working

Comments

@Erikdzo
Copy link
Member

Erikdzo commented Oct 11, 2022

What field is used for stratigraphy filtering in Solr taxon endpoint? Currently stratigraphy_hierarchy is used in the front-end but it does not exist in Solr, leading to errors.

@Erikdzo Erikdzo added the bug Something isn't working label Oct 11, 2022
@ollehints ollehints added the api API development / support needed label Jan 14, 2023
@ollehints
Copy link
Member

We cannot use stratigraphy_hierarchi as the age range is provided by two stratigraphic units - where it appears (FAD), and disappears (LAD). Added couple of index fields, easiest is to use numeric fields fad_age_base and lad_age_top.
Stratigraphic search should take the age range from a chronostratigraphic units that a user is interested in and then check for overlap with the age range of the taxon.
For instance, a user wants to find all taxa that occur in the Ordovician. He then selects Ordovician from autocomplete, frontend gets also base and top numeric ages (https://api.geoloogia.info/solr/stratigraphy?q=*&fq=stratigraphy_en:Ordovician&fl=stratigraphy_en,stratigraphy,age_base,age_top): 485.4 and 443.8
Then the stratigraphic filter would be:
https://api.geoloogia.info/solr/taxon?q=*&fq=fad_age_base:[443.8%20TO%20*]&fq=lad_age_top:[*%20TO%20485.4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API development / support needed bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants