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
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
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