Github user davhdavh commented on the issue:
https://github.com/apache/lucenenet/pull/203
A small bug in the port in `Term.ToString(BytesRef termText)`. The call to
`termText.Utf8ToString(); ` will never throw, it should use the system
utf8encoder instead: `return new System.Text.UTF8Encoding(false,
true).GetString(termText.Bytes, termText.Offset, termText.Length);`. but IHMO,
it is still fundamentally broken, ran into this on an int that happens to have
a valid utf8 encoding when serialized to bytes.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---