highlighting

2006-09-23 Thread Stelios Eliakis
rer fragmentScore=(QueryScorer) highlighter.getFragmentScorer(); TokenStream tokenStream = new StandardAnalyzer().tokenStream("contents", new StringReader(text)); String result = highlighter.getBestFragment(tokenStream,text); System.out.println(result); Thanks in advance -- Stelios Eliakis

Re: highlighting

2006-09-25 Thread Stelios Eliakis
Score(); I take 0.0. why? 3)Moreover, for some docs lucene don't returns any fragment even if the query exist in the document. why? :) Thanks in advance Stelios Eliakis On 9/26/06, Doron Cohen <[EMAIL PROTECTED]> wrote: "Stelios Eliakis" <[EMAIL PROTECTED]> wrote

highlight optimization

2006-10-09 Thread Stelios Eliakis
esult = highlighter.getBestFragment(tokenStream,text) text parameter must be String so I open the document and convert it to String. Of course it is time consuming. Is there a different way? Thanks in advance, -- Stelios Eliakis