Highlighter *********** .. highlight:: xml Subversion ========== Check out the highligher from the Subversion repository: http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/highlighter Maven 2 ======= Convert the highlighter project to Maven 2 by copying this ``pom.xml`` file to the root of the highlighter project: :: 4.0.0 org.apache.lucene lucene-highlighter Lucene Highlighter 2.0.0 This is the highlighter for apache lucene java http://lucene.apache.org The Apache Software License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0.txt repo Apache Software Foundation http://www.apache.org org.apache.lucene lucene-core 2.0.0 compile src/java Build the project and install to the Maven 2 repository: :: mvn install Include in your project using this Maven 2 dependency: :: org.apache.lucene lucene-highlighter 2.0.0 Sample ====== - Here is some sample code from *Lucene in Action*: HighlightIt.java_. - Here is the sample code from the highlighter project: HighlighterTest.java_ .. _HighlightIt.java: ../../misc/howto/lucene/HighlightIt.java .. _HighlighterTest.java: http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java