Hi, > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Hi Pasha, > I think the advice you gave is for an earlier version.
You are right. > With the latest version things have moved around and you > would have to: > //use a max fragment size > size of text to ensure you > get all text in one fragment > highlighter.setTextFragmenter(SimpleFragmenter(400000)); > // call getBestFragment.... > String result =highlighter.getBestFragment(tokenStream,text); Why you have not made it in one call? For example - String result = highlighter.highlightAll(tokenStream, text). Or: highlighter.setTextFragmenter(new OneFragmentFragmenter()); String result =highlighter.getBestFragment(tokenStream,text); I ask because in your example i should calculate the size of the initial text in any case. I do not want to do it :) One call will allow to write more solid and dense code. Pasha Bizhan http://lucenedotnet.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
