fix returning size elements instead of size_per_shard, add better search() settings handling, with typed values