From f6d7daf2397927fa43686d1c7cc4e36bb4b6208a Mon Sep 17 00:00:00 2001 From: Koji Sekiguchi Date: Sat, 9 Jan 2010 04:57:20 +0000 Subject: [PATCH] SOLR-1268: Incorporate FastVectorHighlighter git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@897383 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 8 +- example/solr/conf/solrconfig.xml | 6 + ...cene-fast-vector-highlighter-2.9.1-dev.jar | 2 + .../solr/common/params/HighlightParams.java | 5 + src/java/org/apache/solr/core/SolrCore.java | 4 +- .../highlight/DefaultSolrHighlighter.java | 365 +++++++++++------- .../apache/solr/highlight/GapFragmenter.java | 2 - ...ultiColoredScoreOrderFragmentsBuilder.java | 62 +++ .../MultiColoredSimpleFragmentsBuilder.java | 62 +++ .../highlight/ScoreOrderFragmentsBuilder.java | 59 +++ .../solr/highlight/SimpleFragListBuilder.java | 59 +++ .../highlight/SimpleFragmentsBuilder.java | 55 +++ .../solr/highlight/SolrFragListBuilder.java | 42 ++ .../solr/highlight/SolrFragmentsBuilder.java | 43 +++ .../solr/highlight/SolrHighlighter.java | 9 + .../highlight/FastVectorHighlighterTest.java | 70 ++++ .../solr/highlight/HighlighterTest.java | 7 + src/test/test-files/solr/conf/solrconfig.xml | 8 + 18 files changed, 726 insertions(+), 142 deletions(-) create mode 100644 lib/lucene-fast-vector-highlighter-2.9.1-dev.jar create mode 100644 src/java/org/apache/solr/highlight/MultiColoredScoreOrderFragmentsBuilder.java create mode 100644 src/java/org/apache/solr/highlight/MultiColoredSimpleFragmentsBuilder.java create mode 100644 src/java/org/apache/solr/highlight/ScoreOrderFragmentsBuilder.java create mode 100644 src/java/org/apache/solr/highlight/SimpleFragListBuilder.java create mode 100644 src/java/org/apache/solr/highlight/SimpleFragmentsBuilder.java create mode 100644 src/java/org/apache/solr/highlight/SolrFragListBuilder.java create mode 100644 src/java/org/apache/solr/highlight/SolrFragmentsBuilder.java create mode 100644 src/test/org/apache/solr/highlight/FastVectorHighlighterTest.java diff --git a/CHANGES.txt b/CHANGES.txt index ae9a768d632..5a904f08731 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -81,6 +81,8 @@ New Features * SOLR-1697: PluginInfo should load plugins w/o class attribute also (noble) +* SOLR-1268: Incorporate FastVectorHighlighter (koji) + Optimizations ---------------------- @@ -188,9 +190,11 @@ Other Changes * SOLR-1674: Improve analysis tests and cut over to new TokenStream API. (Robert Muir via Mark Miller) -* SOLR-1661 : Remove adminCore from CoreContainer . removed deprecated methods setAdminCore(), getAdminCore() (noble) +* SOLR-1661: Remove adminCore from CoreContainer . removed deprecated methods setAdminCore(), getAdminCore() (noble) -* SOLR-1704 : Google collections moved from clustering to core (noble) +* SOLR-1704: Google collections moved from clustering to core (noble) + +* SOLR-1268: Add Lucene 2.9-dev r888785 FastVectorHighlighter contrib jar to lib. (koji) Build ---------------------- diff --git a/example/solr/conf/solrconfig.xml b/example/solr/conf/solrconfig.xml index 3022be053c2..ee81b4f7397 100755 --- a/example/solr/conf/solrconfig.xml +++ b/example/solr/conf/solrconfig.xml @@ -957,6 +957,12 @@ ]]> + + + + + + + + + + + +