Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
DefaultSolrHighlighter uses stored field content to highlight. It has some disadvantages, because index grows up fast when using multilingual indexing due to several fields has to be stored with same content. This patch allows DefaultSolrHighlighter to use "contentField" attribute to loockup content in external field.
Excerpt from old schema:
<field name="title" type="text" stored="true" indexed="true" /> <field name="title_ru" type="text_ru" stored="true" indexed="true" /> <field name="title_en" type="text_en" stored="true" indexed="true" /> <field name="title_de" type="text_de" stored="true" indexed="true" />
The same after patching, highlighter will now get content stored in "title" field
<field name="title" type="text" stored="true" indexed="true" /> <field name="title_ru" type="text_ru" stored="false" indexed="true" contentField="title"/> <field name="title_en" type="text_en" stored="false" indexed="true" contentField="title"/> <field name="title_de" type="text_de" stored="false" indexed="true" contentField="title"/>
Attachments
Attachments
Issue Links
- is duplicated by
-
SOLR-5276 highlighter working using stemmed tokens from another field and text from another
- Closed
- is related to
-
SOLR-16111 hl.queryFieldPattern support (advanced alternative to hl.requireFieldMatch)
- Closed
- requires
-
LUCENE-7768 UnifiedHighlighter: Use a different stored field, possibly shared
- Open