Fixed docId retrieval from rawDocId