Advanced search (structured criteria)
leginova_advanced_searchSearch New Caledonian legal acts, codes, consolidated texts and case law with precise criteria such as keywords, dates, authorities, courts and act types.
Instructions
Structured search mirroring leginova.gouv.nc/recherche-avancee. Pick a target, then either keyword groups (all_words / any_words / exclude_words / exact_phrase) or boolean conditions (ET/OU/SAUF with a field scope), plus filters. Use it for precise requests: acts of a given type and authority over a period, decisions of a given court, articles of selected codes. IDs for themes, authorities, collectivities, act types, courts and codes come from leginova_get_catalogue. Filters apply per target: act_types/authority_ids (actes, textes_consolides), collectivity_ids (actes, codes, global), code_slugs/section_types (codes), courts/court_orders/decision_types/case_number (jurisprudence), consolidated_* (textes_consolides). The meaning of date_from/date_to follows the target: publication date (actes), application date (codes), text date (textes_consolides), hearing date (jurisprudence). There is no article-number field here: use leginova_get_code_article, which tolerates L./Lp. prefixes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number | |
| sort | No | global target only | |
| courts | No | e.g. ["COUR_APPEL", "TRIBUNAL_ADMINISTRATIF"] | |
| target | Yes | ||
| date_to | No | ||
| act_types | No | e.g. ["ARRETE", "DELIBERATION", "LOIS_DU_PAYS"] | |
| all_words | No | Every word must appear | |
| any_words | No | At least one of these words | |
| date_from | No | ||
| page_size | No | Results per page (max 50) | |
| theme_ids | No | ||
| code_slugs | No | ||
| conditions | No | Boolean conditions, evaluated in order (expert mode). Not combinable with the keyword fields. | |
| case_number | No | Jurisprudence reference number, e.g. "13-15646" | |
| court_orders | No | ||
| exact_phrase | No | Words that must appear as an exact phrase | |
| authority_ids | No | ||
| exclude_words | No | None of these words | |
| section_types | No | e.g. ["PARTIE", "LIVRE", "TITRE", "CHAPITRE"] | |
| decision_types | No | e.g. ["ARRET", "JUGEMENT", "ORDONNANCE", "DECISION"] | |
| consolidated_to | No | ||
| collectivity_ids | No | ||
| consolidated_from | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| notes | Yes | ||
| query | Yes | ||
| total | Yes | ||
| facets | No | ||
| results | Yes | ||
| site_url | Yes | ||
| page_size | Yes | ||
| best_matches | Yes |