This document discusses distance-based indexing for efficient similarity search in metric and almost-metric spaces. It describes the vantage point tree (VP-tree) index structure, which builds a binary search tree by recursively partitioning objects based on their distances to a randomly chosen "vantage point". The VP-tree allows pruning of sub-trees during query processing if the distance between the query and the vantage point is too large or small compared to maximum and minimum distances in the sub-tree. It also discusses how the VP-tree can be extended to almost-metric spaces where the triangle inequality holds up to a constant factor.