code: func (s *RelatedDocsHandler) getIndex(p Pages) *related.InvertedIndex {
  	for _, ci := range s.postingLists {
  		if pagesEqual(p, ci.p) {
  			return ci.postingList
  		}
  	}
  	return nil
  }
docs: // This assumes that a lock has been acquired.