Use compound index when getting search candidates