Item12838: Make fast highlighting work in SolrPlugin
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: SolrPlugin
Branches: trunk
SolrPlugin will try useFastVectorHighlighter=true by default, however is not configured for this feature (leaving lots of complaints in the log).
The following will need to be changed:
Index: SolrPlugin/solr/multicore/conf/schema.xml
===================================================================
--- SolrPlugin/solr/multicore/conf/schema.xml (revision 17466)
+++ SolrPlugin/solr/multicore/conf/schema.xml (working copy)
@@ -1158,7 +1158,7 @@
<field name="author" type="string" />
<field name="contributor" type="string" multiValued="true" />
<field name="version" type="float" indexed="false" />
- <field name="text" type="text_generic" />
+ <field name="text" type="text_generic" stored="true" termVectors="true" termPositions="true" termOffsets="true" />
<field name="date" type="tdate" />
<field name="createauthor" type="string" />
<field name="createdate" type="tdate" />
Index: SolrPlugin/solr/multicore/conf/solrconfig.xml
===================================================================
--- SolrPlugin/solr/multicore/conf/solrconfig.xml (revision 17466)
+++ SolrPlugin/solr/multicore/conf/solrconfig.xml (working copy)
@@ -1545,7 +1545,6 @@
<!-- Configure the single fragListBuilder -->
<fragListBuilder name="single"
- default="true"
class="solr.highlight.SingleFragListBuilder"/>
<!-- default tag FragmentsBuilder -->
The fragListBuilder has two defaults defined right now. The second is usually not what one wants.
--
StephanOsthold - 02 Apr 2014
What about the other
fragListBuilder
still having a
default="true"
? Can we remove this parameter as well?
--
MichaelDaum - 02 Apr 2014
The other should stay. It does what one would usually expect in the preview and is a good default.
--
StephanOsthold - 02 Apr 2014