public Integer getNumberOfTokens ( String field , int docId ) { if ( fieldReferences . containsKey ( field ) ) { IndexDoc doc = getDoc ( field , docId ) ; if ( doc != null ) { return doc . size ; } } return null ; }
Gets the number of tokens .