Github user bwmcbride commented on a diff in the pull request:
https://github.com/apache/jena/pull/123#discussion_r50545658
--- 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 --
... and would give a compilation error on line 85.
Its easy to get rid of the cast if its a problem, but not like that.
---
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.
---