Github user bwmcbride commented on a diff in the pull request:

    https://github.com/apache/jena/pull/123#discussion_r50635465
  
    --- Diff: 
jena-text/src/main/java/org/apache/jena/query/text/TextDatasetFactory.java ---
    @@ -191,5 +213,50 @@ public static DatasetGraph 
createSolrIndex(DatasetGraph base, SolrServer server,
             TextIndex index = createSolrIndex(server, entMap) ;
             return create(base, index, true) ; 
         }
    + 
    +    protected static class LuceneIndexMap {
    +           
    +           private static HashMap<Object, WeakReference<TextIndex>> map = 
new HashMap<Object, WeakReference<TextIndex>>();
    +
    +           protected synchronized TextIndex get(Directory directory) {
    --- End diff --
    
    Thanks for the sketch.  I've tried something based on it and does look 
better.  Will push shortly.


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

Reply via email to