Turns out sorting by distance happens via a custom comparator. So no physical doc value field is needed actually, it suffices if the spatial bridges expose the meta-data making sort field validation pass.