c hash index search