boost_function method for SearchQuery