Apache Lucene open-source search software
example highlighter config in solrconfig.xml
Mike Klaasd36587fac6dd
diff --git a/example/solr/conf/solrconfig.xml b/example/solr/conf/solrconfig.xmlindex 75551a3edee..39ee7496d04 100755--- a/example/solr/conf/solrconfig.xml+++ b/example/solr/conf/solrconfig.xml@@ -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>