You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by kl...@apache.org on 2007/10/12 21:32:48 UTC

svn commit: r584243 - /lucene/solr/trunk/example/solr/conf/solrconfig.xml

Author: klaas
Date: Fri Oct 12 12:32:07 2007
New Revision: 584243

URL: http://svn.apache.org/viewvc?rev=584243&view=rev
Log:
example highlighter config in solrconfig.xml

Modified:
    lucene/solr/trunk/example/solr/conf/solrconfig.xml

Modified: lucene/solr/trunk/example/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/example/solr/conf/solrconfig.xml?rev=584243&r1=584242&r2=584243&view=diff
==============================================================================
--- lucene/solr/trunk/example/solr/conf/solrconfig.xml (original)
+++ lucene/solr/trunk/example/solr/conf/solrconfig.xml Fri Oct 12 12:32:07 2007
@@ -312,6 +312,14 @@
      </str>
      <int name="ps">100</int>
      <str name="q.alt">*:*</str>
+     <!-- example highlighter config, enable per-query with hl=true -->     
+     <str name="hl.fl">text features name</str>
+     <!-- for this field, we want no fragmenting, just highlighting -->
+     <str name="f.name.hl.fragsize">0</str>
+     <!-- instructs Solr to return the field itself if no query terms are
+          found -->
+     <str name="f.name.hl.alternateField">name</str>
+     <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->
     </lst>
   </requestHandler>