Skip to main content
Try Lexiel for freeTry now →
How to Search Supreme Court Case Law with Semantic AI

How to Search Supreme Court Case Law with Semantic AI

Product5 min read

Keyword search in CENDOJ requires hitting the exact terms. Semantic AI search finds judgments by concept, even when you don’t know the words the court used.

by Equipo Lexiel

Table of contents
  1. The Problem with Searching Case Law in Spain
  2. Semantic Search: Search by Concept, Not Keywords
  3. How Lexiel's Search Works
  4. Which Courts the Corpus Covers
  5. Saving and Organizing Results
  6. Citation Verification

The Problem with Searching Case Law in Spain

Every lawyer knows the frustration of searching CENDOJ. The database of Spain's General Council of the Judiciary is essential, but its keyword search engine has significant limitations, it only finds judgments containing exactly the words you typed.

Semantic Search: Search by Concept, Not Keywords

AI semantic search works fundamentally differently. Instead of matching text, it understands the meaning of your query and finds conceptually related judgments.

Practical example: A semantic search for "judgments annulling apartment sales due to hidden defects when the seller was a real estate agent" finds judgments using "rescission," "defect in consent," "vendor fraud," etc., even if they don't contain your exact words.

How Lexiel's Search Works

Lexiel's case law search uses vector embeddings over its corpus of Spanish court decisions. Your query is converted to a semantic vector and matched against the vector database. Each result shows the court, date, and reference (ECLI where available), with a link to the source. If we only hold the record of a decision (court, date, ECLI) and not its text, Lexiel says so and points you to CENDOJ instead of summarizing what it has not read.

Which Courts the Corpus Covers

Case law in the corpus comes from two official channels:

  • CENDOJ (CGPJ): the Supreme Court in its four chambers (First, civil; Second, criminal; Third, administrative; Fourth, social), plus the High Courts of Justice (TSJ), Provincial Courts, and the National Court in those same four jurisdictions. Commercial matters come in through the civil jurisdiction (for example, the specialized sections of the Provincial Courts).
  • Constitutional Court: its decisions are added from the Court's own case law system, because they are not in CENDOJ.

First-instance courts are not ingested systematically. Downloads from CENDOJ respect the portal's daily limit, so the corpus grows gradually; that is why each search shows how recent the data is for each court.

You can filter by court (Supreme, Constitutional, National Court, TSJ, Provincial Court, first-instance courts), jurisdiction, reporting judge, dates, province, or region.

Saving and Organizing Results

Lexiel lets you save judgments to your collection with your own notes, ask for a summary of a specific judgment, compare two saved sources, copy or export the selected citations, and save a search with an alert for new decisions.

Citation Verification

An important difference from using ChatGPT for case law research: when Lexiel cites a judgment in an answer or a brief, it checks it against its corpus and, if not there, against the CENDOJ search engine. If it cannot confirm it, it marks it as pending and tells you clearly, so you do not file it unchecked.

Try Lexiel free · 28 days

Use code LEX-BLOG for double the standard trial period. Cancel anytime, no commitment.

Get started free

Keep reading

Weekly legal updates

Legislative changes, relevant case law, and Lexiel news. No spam. Unsubscribe anytime.

GDPR compliant. We never share your email with third parties.