[
https://issues.apache.org/jira/browse/LUCENENET-227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Garski updated LUCENENET-227:
-------------------------------------
Attachment: TestIndexableBinaryStringTools.patch
Here's the patch. A few things to note:
The IndexableBinaryStringTools class is a utility that is new in 2.9 and is not
utilized within the core of Lucene and "Provides support for converting byte
sequences to Strings and back again. The resulting Strings preserve the
original byte sequences' sort order."
The Java classes used for the conversion are ByteBuffer and CharBuffer, of
which there is no equivalent in .NET. The original conversion replaced them
with MemoryStreams, however in converting a string to binary one would probably
not drop it into a MemoryStream first so I used List<byte> and List<char> to
perform the conversion as the conversion requires access to the underlying
arrays of the MemoryStream, which is not always possible depending on how it
was instantiated.
> TestIndexableBinaryStringTools - 4 failing tests
> ------------------------------------------------
>
> Key: LUCENENET-227
> URL: https://issues.apache.org/jira/browse/LUCENENET-227
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Michael Garski
> Attachments: TestIndexableBinaryStringTools.patch
>
>
> There are four failing tests in
> Lucene.Net.Util.TestIndexableBinaryStringTools:
> TestAllNullInput
> TestEmptyInput
> TestEncodedSortability
> TestRandomBinaryRoundTrip
> I'm starting to work on these now and will post updates with progress/issues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.