The current implementation parses PieceCID from the Graphsync metadata.
According to the direction set in the design doc for In Spark v2, we will drop support for Graphsync and require IPNI advertisements to build ContextID from the piece info.
The piece indexer must accommodate that change and use ContextID as the lookup key. This requires changes both in the indexer and the REST API.