Split up index code and move into vault.search ns.