example highlighter config in solrconfig.xml

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@584243 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mike Klaas 2007-10-12 19:32:07 +00:00
parent ed5ff37639
commit d36587fac6
1 changed files with 8 additions and 0 deletions

View File

@ -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>