mirror of https://github.com/apache/lucene.git
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:
parent
ed5ff37639
commit
d36587fac6
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue