Add patterns to index