lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chand2048 <...@git.apache.org>
Subject [GitHub] lucenenet pull request: Use CompareOrdinal to compare field_rename...
Date Wed, 11 Feb 2015 17:12:04 GMT
Github user Chand2048 commented on the pull request:

    https://github.com/apache/lucenenet/pull/95#issuecomment-73920815
  
    The test I was working on was Lucene.Next.Index.TestPrefixCodedTerms.TestMergeRandom
    I added a huge amount of test code to narrow down the problem and found that the MergedIterator's
use of the PriorityQueue ended up returning terms out of order. An alternate solution would
be to modify the random Unicode string generator to not include \0 chars. This also fixed
it but digging deeper the default comparison for java is ordinal so this should match a port
better.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message