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

/termfreq paging is confusing #536

Open
jan-niestadt opened this issue Jan 7, 2025 · 0 comments
Open

/termfreq paging is confusing #536

jan-niestadt opened this issue Jan 7, 2025 · 0 comments
Labels
enhancement webservice Relates to BlackLab Server, our web service

Comments

@jan-niestadt
Copy link
Member

The /termfreq operation returns a page of results but doesn't indicate how many results there are in total. You can page through them using first and number, but if first is >= number of results, first is set to its default value 0.

http://svatai01.ivdnt.loc/blacklab-server/chn-refcorpus/termfreq?annotation=pos&number=10&first=100

Better would be to simply return an empty list when first is set too high. It would also be useful to report the total number of results in the response. Probably change this response in the new api V4 (/corpora/...)

@jan-niestadt jan-niestadt added enhancement webservice Relates to BlackLab Server, our web service labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement webservice Relates to BlackLab Server, our web service
Projects
None yet
Development

No branches or pull requests

1 participant