Re: How to get hits coordinates in Lucene 4.4.0

2013-08-13 Thread Lingviston
I'm currently using this snippet (with older Highlighter): HitPositionCollector collector = new HitPositionCollector(); highlighter = new Highlighter(collector, scorer); highlighter.setTextFragmenter(new SimpleSpanFragmenter(scorer,

Re: How to get hits coordinates in Lucene 4.4.0

2013-08-12 Thread Lingviston
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

Re: How to get hits coordinates in Lucene 4.4.0

2013-08-12 Thread Lingviston
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

How to get hits coordinates in Lucene 4.4.0

2013-08-12 Thread Lingviston
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