Doc: add another example for custom indices