Use the shell script to support multiple search methods