RE: Re:RE: About highlighter

2011-03-18 Thread Pierre GOSSE
another issue (apparently unrelated, but who knows ?) See https://issues.apache.org/jira/browse/LUCENE-2874 Pierre De : Cescy [mailto:ee07b...@gmail.com] Envoyé : vendredi 18 mars 2011 07:32 À : java-user; Pierre GOSSE Objet : Re:RE: About highlighter Yes, I only search the "contents"

RE: About highlighter

2011-03-17 Thread Pierre GOSSE
Ian Lea [mailto:ian@gmail.com] Envoyé : mercredi 16 mars 2011 22:29 À : java-user@lucene.apache.org Objet : Re: About highlighter I know nothing about highlighting but that 500 looks like a good place to start investigating. -- Ian. On Tue, Mar 15, 2011 at 8:47 PM, Cescy wrote: > Hi,

Re: About highlighter

2011-03-16 Thread Ian Lea
I know nothing about highlighting but that 500 looks like a good place to start investigating. -- Ian. On Tue, Mar 15, 2011 at 8:47 PM, Cescy wrote: > Hi, > > > My highlight code is shown as following: > > >  QueryScorer scorer = new QueryScorer(query); >  Highlighter highlighter = new Highlig

About highlighter

2011-03-16 Thread Gong Li
Hi, My highlight code is shown as following: QueryScorer scorer = new QueryScorer(query); Highlighter highlighter = new Highlighter(simpleHTMLFormatter, scorer); highlighter.setTextFragmenter(new SimpleSpanFragmenter(scorer, 500)); String contents = doc.get("contents"); TokenStream toke

About highlighter

2011-03-15 Thread Cescy
Hi, My highlight code is shown as following: QueryScorer scorer = new QueryScorer(query); Highlighter highlighter = new Highlighter(simpleHTMLFormatter, scorer); highlighter.setTextFragmenter(new SimpleSpanFragmenter(scorer, 500)); String contents = doc.get("contents"); TokenStream t