public virtual float Coord(int overlap, int maxOverlap)
{
// LUCENE-4300: in most cases of maxOverlap=1, BQ rewrites itself away,
// so coord() is not applied. But when BQ cannot optimize itself away
// for a single clause (minNrShouldMatch, prohibited clauses, etc), its
// important not to apply coord(1,1) for consistency, it might not be 1.0F
return(maxOverlap == 1 ? 1F : similarity.Coord(overlap, maxOverlap));
}