Build the spans for each lines after indexing
(to avoid ANR for large doc)