Skip to content

v4 API - filtering by date #4709

Answered by mlissner
jake-anylaw asked this question in Q&A
Nov 20, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

I think you've got it, but what's a bit confusing is that the search engine has a trick that it does behind the scenes when you search for nysupct. We have a system of parent-child courts that allows us to tag cases with the greatest-possible granularity. So when you search for nysupct on the search engine, it expands your query to also include the child courts for nysupct, but when you're on the API, we don't do that. The idea is that search is fuzzy and can do nice things for users, but the API is more like a database and should do exactly what you tell it to.

The fix for this, I think, is to find the child courts for nysupct, and then filter by those in the API as well.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jake-anylaw
Comment options

@mlissner
Comment options

@jake-anylaw
Comment options

Answer selected by jake-anylaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants