docs: Object extractKey(DocumentExtractor extractor, int docIndex) {
        String strKey;
        try {
           strKey = (String) extractor.extract(docIndex).getId();
        } catch (IOException e) {
           throw new SearchException("Error while extracting key", e);
        }
  
        return keyTransformationHandler.stringToKey(strKey);
     }