getting doc ids back