On Fri, Oct 10, 2014 at 4:01 AM, Andy Seaborne <a...@apache.org> wrote: > > How do you know it does not work? The code (groovy?) does not read the > index.
Hey Andy, I had written a separate reader program to test using the index for queries. I did it that way to make sure I was seeing results from using the index, and not accidentally getting something that was cached in RAM or something. Anyway, as it turns out, I managed to solve the problem. As best as I can tell, the issue was this, or something close: The first time(s) I ran this program, I didn't yet have a dir.close() line in there to close the Lucene Directory. As a result, I was getting an incomplete Lucene index. Later, after I fixed that, I kept running the program but since I was creating the exact same triples (and not deleting the TDB dir between runs) Jena-Text didn't reindex those triples since they already existed. Perhaps you (or someone) can confirm if this is the way Jena Text would behave in that regard? Anyway, once I deleted my TDB store and started from scratch, everything worked exactly as expected. Thanks! Phil