A simple paragraph indexing function