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

    https://github.com/apache/jena/pull/123#discussion_r50548291
  
    --- 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 --
    
    Fair enough. I will try and sketch something quickly and if you want (if 
you think it is clearer), you can use it, or not.


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

Reply via email to