Hello everyone,
I think there is a typo in the tutorial Creating value range document indexes
The metadata type name is defined as contract_value, so the template code should be:
...
{% set document.metadata_value_of.contract_value|default:0 as value_corrected %}
...
Alternatively, the metadata type name should be changed to value.
Kind Regards
O.