Github user ajs6f commented on a diff in the pull request:
https://github.com/apache/jena/pull/123#discussion_r50546226
--- Diff:
jena-text/src/main/java/org/apache/jena/query/text/assembler/TextIndexLuceneAssembler.java
---
@@ -61,7 +74,12 @@ public TextIndex open(Assembler a, Resource root, Mode
mode) {
if ( n.isLiteral() ) {
String literalValue = n.asLiteral().getLexicalForm() ;
if (literalValue.equals("mem")) {
- directory = new RAMDirectory() ;
+ // on RAMDirectory per node, not one per invocation
+ directory = ramDirectories.get(root);
+ if (directory == null) {
+ directory = new RAMDirectory() ;
+ ramDirectories.put(root, (RAMDirectory) directory);
--- End diff --
Sorry-- didn't look hard enough!
---
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.
---