geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
430 stars 489 forks source link

Formatter / JSON / Index document. #8347

Open fxprunayre opened 2 months ago

fxprunayre commented 2 months ago

To facilitate access to the index document content (which is useful for facet configuration), add a new formatter. The index mapping being dynamic, some fields are created depending on the metadata content eg. thesaurus. Accessing the index document is usually done through Kibana when installed but this formatter can facilitate access.

eg. http://localhost:8080/geonetwork/srv/api/records/7128b9b9-75e8-4318-a14a-d64eff6a8887/formatters/json+index

image

Checklist

Funded by SPW

sonarcloud[bot] commented 2 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
19.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud