lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Ritchie" <br...@jivesoftware.com>
Subject RE: VOTE: Mark Harwood for Sandbox Committer
Date Fri, 09 Apr 2004 02:09:14 GMT
I've been using the previous version, glad to see it's being improved.

+1

Regards,

Bruce Ritchie
http://www.jivesoftware.com/  

> -----Original Message-----
> From: Erik Hatcher [mailto:erik@ehatchersolutions.com] 
> Sent: April 8, 2004 8:25 PM
> To: Lucene List
> Subject: VOTE: Mark Harwood for Sandbox Committer
> 
> I propose Mark Harwood as a sandbox committer so he can 
> maintain his excellent Hilighter package that I just committed there.
> 
> +1
> 
> 	Erik
> 
> 
> Begin forwarded message:
> 
> > From: markharw00d@yahoo.co.uk
> > Date: April 8, 2004 6:09:32 PM EDT
> > To: lucene-user@jakarta.apache.org
> > Subject: Highlighter package v2 RC1
> > Reply-To: "Lucene Users List" <lucene-user@jakarta.apache.org>
> >
> > I've reworked the highlighter package to address some issues 
> > (inability to pass fieldnames to analyzers, limiting 
> tokenization of 
> > large docs) and have refactored it to be more modular so that folks 
> > can provide alternative implementations of the main functions 
> > (tokenizing, fragmenting and scoring) if required.
> >
> > This is not backwards compatible with earlier releases but this new 
> > version should hopefully provide a much more robust framework going 
> > forward.
> > If people feel comfortable with this version I am happy to 
> put this in 
> > the sandbox Any feedback is appreciated.
> >
> > Code here:
> > http://www.inperspective.com/lucene/highlighter2/highlighter2.zip
> >
> > Javadocs here:
> > http://www.inperspective.com/lucene/highlighter2/index.html
> >
> > Quick code example:
> >
> >   IndexSearcher searcher = new IndexSearcher(ramDir);
> >   Query query = QueryParser.parse("Kenne*", FIELD_NAME, analyzer);
> >   query=query.rewrite(reader); //required to expand search terms
> >   Hits hits = searcher.search(query);
> >
> >   Highlighter highlighter =new Highlighter(new QueryScorer(query));
> >   for (int i = 0; i < hits.length(); i++)
> >   {
> >     String text = hits.doc(i).get(FIELD_NAME);
> >     TokenStream tokenStream=analyzer.tokenStream(FIELD_NAME,new
> > StringReader(text));
> >     // Get 3 best fragments and seperate with a "..."
> >     String result =
> > highlighter.getBestFragments(tokenStream,text,3,"...");
> >     System.out.println(result);
> >   }
> >
> >
> > Cheers
> > Mark
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
> 
> 
> 

Mime
View raw message