api now returning doc ids