Refactor/searcher

If we had ``.to_i`` at the end of this line we could get rid of the type cast in the setter