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

FieldSelector with Lucene 2.3.2

2011-03-16 Thread Chris Bamford
Hi I am trying to speed up access to the data in my results Documents and was wondering if FieldSelector might be the way forward?After my search, I end up with an ArrayList of Documents, from each of which I need to extract certain fields and their values as key/value pairs in a HashMap.

Re: Early Termination

2011-03-16 Thread mark harwood
See https://issues.apache.org/jira/browse/LUCENE-1720 - Original Message From: Alex vB To: java-user@lucene.apache.org Sent: Wed, 16 March, 2011 0:12:41 Subject: Early Termination Hi, is Lucene capable of any early termination techniques during query processing? On the forum I only fo

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