lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject svn commit: r584243 - /lucene/solr/trunk/example/solr/conf/solrconfig.xml
Date Fri, 12 Oct 2007 19:32:48 GMT
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>
 



Mime
View raw message