lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eladmarg <...@git.apache.org>
Subject [GitHub] lucenenet issue #188: Fixed 64 Failing Facet Tests and Finished Facet Implem...
Date Thu, 29 Sep 2016 18:08:30 GMT
Github user eladmarg commented on the issue:

    https://github.com/apache/lucenenet/pull/188
  
    Hi, 
    just found a great implementation which does exactly what is expected (truly same as java)
    
    please take a look at : [CSharpTest.Net.Collections](https://github.com/csharptest/CSharpTest.Net.Collections),
there is a [nuget](https://www.nuget.org/packages/CSharpTest.Net.Collections/) package as
well.
    
    at the constructor use:
    `new LurchTable<TKey, TValue>(LurchTableOrder.Access, capacity, EqualityComparer<TKey>.Default)
    `
    the lucene get method expect for default(TValue) or null, but the LurchTable throw exception,
    so just wrap the get method with:
    ` TValue result;
    if (!lru.TryGetValue(key, out result))
    {
    return default(TValue);
    }
    return result;
    `
    all tests working, (include the LruHashMap), performance much faster.



---
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