TIBHannover / ols4

The upcoming next version of the Ontology Lookup Service (OLS)
http://www.ebi.ac.uk/ols4/
Apache License 2.0
2 stars 0 forks source link

Facet Data is missing from the search call response (v1) #17

Open deepananbu opened 2 weeks ago

deepananbu commented 2 weeks ago

Describe the bug When this endpoint is used for the search: https://www.ebi.ac.uk/ols4/api/search?q=data&start=0&groupField=iri&rows=10 There is no facet count data (it only has the search results)

To Reproduce call https://www.ebi.ac.uk/ols4/api/search?q=data&start=0&groupField=iri&rows=10

Expected behavior facet data needs to be included in the response

Screenshots N/A

Upload minimal complete example N/A

Additional context It should respond like v2 API: https://www.ebi.ac.uk/ols4/api/v2/entities?search=data&size=10&page=0&facetFields=ontologyId where the facetFieldsToCount field contains facet data.

I tried also to include facetFields param, but no luck: https://www.ebi.ac.uk/ols4/api/search?q=data&start=0&groupField=iri&rows=10&facetFields=ontologyId