code: public HashMap<Integer, Integer> getAllNumberOfPositions(String field,
        int docBase) throws IOException {
      HashMap<Integer, Integer> numbers = new HashMap<Integer, Integer>();
      if (fieldReferences.containsKey(field)) {
        FieldReferences fr = fieldReferences.get(field);
        IndexInput inIndexDoc = indexInputList.get("doc");
        inIndexDoc.seek(fr.refIndexDoc);
        IndexDoc doc;
        for (int i = 0; i < fr.numberOfDocs; i++) {
          doc = new IndexDoc(null);
          numbers.put((doc.docId + docBase),
              (1 + doc.maxPosition - doc.minPosition));
        }
      }
      return numbers;
    }
docs: Gets the all number of positions.
  
  @param field
  the field
  @param docBase
  the doc base
  @return the all number of positions
  @throws IOException
  Signals that an I/O exception has occurred.