Throwing an exception if the user tries to search on a board without search enabled