I'm currently using this snippet (with older Highlighter):
HitPositionCollector collector = new HitPositionCollector();
highlighter = new Highlighter(collector,
scorer);
highlighter.setTextFragmenter(new
SimpleSpanFragmenter(scorer,
I think that's OK for me. I just need to know the right way to get them.
Notice that queries must support boolean operators, *, ? and qoutes.
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to-get-hits-coordinates-in-Lucene-4-4-0-tp4083913p4084046.html
Sent from the Luce
Like I said I will work with pdf files. So I will draw highlights by myself
over the rendered pdf file (as far as I know lucene can't work with pdf by
default).
Yes, offsets is what I'm looking for.
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to-get-hits-coordinate
Hi, I'm trying to use Lucene in my Android project. To start with I've
created a small demo app. It works with .txt files but I need to work with
.pdf. So analyzing my code I understand that it will have some issues with
.pdfs due to memory management. However the question I want to ask here is
not