Your indices, as a graph, in four steps.
Name the indices that make up your data. The mapping assistant reads their mappings and runs a few aggregations, suggests the entities and relationships across them with the reason for each, checks the result against the data, and registers it. Your indices are read, never changed.
On your engine, or on recorded samples.
The page calls YANG-DB's /fuse/mapping API from your browser. Without an engine it shows answers recorded from a real one on six sample datasets, marked recorded.
Your engine
- The engine answers at
/health - The mapping assistant is installed (YANG-DB 0.12 or later)
The engine allows requests from any origin. If your browser blocks http:// from an https:// page, open docs/map/index.html from a clone instead.
Or from a terminal
The same four steps, with the pair written to files you can edit in between:
tools/map_index.py suggest 'logs-*' 'otel-v1-apm-span-*' --name Traces tools/map_index.py validate Traces --apply tools/map_index.py register Traces tools/map_index.py queries Traces
The samples: python3 examples/mapping/load_samples.py loads a normalized shop and indices written without a mapping; the traces, flights and Dragons examples load theirs. Guide: Map your existing indices. API: spec.
Which indices make up your data?
Names and patterns, any number. Indices with the same fields under one pattern are one type; links between indices are found from their values.
The suggested graph.
Every element comes with its confidence and the evidence for it. Click one to see why, and to rename it. The choices below are what the data couldn't settle.
Pick a sample or suggest a graph for your indices first.
Choices
None yet.
Names
Rename a type or a property in the panel above; the names are listed here.
Notes
Will it work on your data?
Errors stop a registration: a text-typed id, ids that aren't unique, a link field that isn't there. Warnings explain a cost. Recommendations go further: index template changes, patterns for rolling indices, where queries should start.
Findings
Not run yet.
Recommendations
Not run yet.
Register it, then ask it something.
Registering checks again, adds the ontology and the index provider to the engine's catalog, and initialises them. A pair with an error is refused unless you force it. Then one query per relationship shows it answers.
First queries
After registering.