add cmdline parameters for searching previously generated index