Simplified the SEARCH_* enum.

now we use -1 for backward and 1 for forward which is easier to use in the
most cases.