Compares two byte arrays, starting at their 0th elements, and returns the number of common elements before encountering a difference.
the number of common elements
StringHelper Class | Lucene.Net.Util Namespace