On 20/10/17 20:00, Chris Tomlinson wrote:
Hi,
I’m interested in looking into whether and how it might be possible to
incorporate Lucene highlighting into jena-text. I don’t see any other work, but
perhaps others have dealt with the topic already. I was thinking of some sort
of a 4th return parameter in the PF.
While examining the code I found an oddity. I was interested in seeing the
final Lucene query created in TextIndexLucene via the log.debug at line 417 but
it never fires even though the log.debug at line 249 in TextQueryPF produces
expected output. I’m guessing that somehow the use of the lambda in getOrFill
of the cache at line 267 of TextQueryPF somehow obscures the logging
properties. Maybe that’s why there’s the commented out alternative that avoids
the cache?
Because they are different loggers? As statics, they are as compiled, no
closure related.
TextIndexLucene.class and TextQueryPF.class respectively.
(I see the "no cache" code as a debugging remains - there was a cache
issue recently)
Andy
Thanks,
Chris