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 [email protected] or file a JIRA ticket
with INFRA.
---