policy for hasher and search method