Add search schema generation and test