DOCS-2353 maxDistance in the near doc and non-negative value