You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Evgeniy Serykh (JIRA)" <ji...@apache.org> on 2010/08/11 10:06:18 UTC

[jira] Issue Comment Edited: (SOLR-1105) Using external field content for highlighting

    [ https://issues.apache.org/jira/browse/SOLR-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897171#action_12897171 ] 

Evgeniy Serykh edited comment on SOLR-1105 at 8/11/10 4:06 AM:
---------------------------------------------------------------

fixed for solr 1.4.1

use in solrconfig.xml:
{code:xml}
<str name="f.content_ru.hl.contentField">content</str>
<str name="f.content_en.hl.contentField">content</str>

<str name="f.title_ru.hl.contentField">title</str>
<str name="f.title_en.hl.contentField">title</str>
{code}


      was (Author: sev):
    fixed for solr 1.4.1
  
> Using external field content for highlighting
> ---------------------------------------------
>
>                 Key: SOLR-1105
>                 URL: https://issues.apache.org/jira/browse/SOLR-1105
>             Project: Solr
>          Issue Type: Improvement
>          Components: highlighter
>            Reporter: Dmitry Lihachev
>             Fix For: Next
>
>         Attachments: SOLR-1105-1_4_1.patch, SOLR-1105_shared_content_field_1.3.0.patch
>
>
> 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:
> {code:xml}
> <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" />
> {code}
> The same after patching, highlighter will now get content stored in "title" field
> {code:xml}
> <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"/>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org