-
There are some differences when using the search api https://www.courtlistener.com/api/rest/v3/search/ and the web search https://www.courtlistener.com/?q.
Is this intended? Are there any work arounds for getting orderby to work better for the api? |
Beta Was this translation helpful? Give feedback.
Answered by
mlissner
Sep 3, 2024
Replies: 1 comment 2 replies
-
Can you provide some queries that show these characteristics, please? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks. Super helpful. The reason this differs is because the front end is using our new Elastic search engine, but the API is using our older Solr engine. We're working to upgrade v3 of the API to use Elastic too, so it'll match the front end as well, but that's difficult for backwards compatibility reasons (watch your email for more on this though).
While we work on that, v4 of the API is where it's at:
https://www.courtlistener.com/api/rest/v4/search/?q=chapter%3A11%20document_type%3A%22PACER%20Document%22%20short_description%3A%22disclosure%20statement%22%20-short_description%3AApproving&type=r&order_by=score%20desc&available_only=on&court=almb%20alnb%20alsb%20akb%20arb%20areb%20arwb%…