init

Function init 

Source
pub async fn init(index_type: IndexType)
Expand description

Initialise the dynamic field registry for index_type, from the disk cache if it is fresh, otherwise from the API.

Safe to call multiple times — the work is done at most once. Errors are swallowed; the registry will simply be empty.