Solr
  1. Solr
  2. SOLR-1105

Using external field content for highlighting

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.9, 5.0
    • Component/s: highlighter
    • Labels:
      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"/>
      
      1. SOLR-1105_shared_content_field_1.3.0.patch
        4 kB
        Dmitry Lihachev
      2. SOLR-1105-1_4_1.patch
        4 kB
        Evgeniy Serykh

        Activity

        Hide
        Uwe Schindler added a comment -

        Move issue to Solr 4.9.

        Show
        Uwe Schindler added a comment - Move issue to Solr 4.9.
        Hide
        Steve Rowe added a comment -

        Bulk move 4.4 issues to 4.5 and 5.0

        Show
        Steve Rowe added a comment - Bulk move 4.4 issues to 4.5 and 5.0
        Hide
        Hoss Man added a comment -

        Bulk of fixVersion=3.6 -> fixVersion=4.0 for issues that have no assignee and have not been updated recently.

        email notification suppressed to prevent mass-spam
        psuedo-unique token identifying these issues: hoss20120321nofix36

        Show
        Hoss Man added a comment - Bulk of fixVersion=3.6 -> fixVersion=4.0 for issues that have no assignee and have not been updated recently. email notification suppressed to prevent mass-spam psuedo-unique token identifying these issues: hoss20120321nofix36
        Hide
        Robert Muir added a comment -

        3.4 -> 3.5

        Show
        Robert Muir added a comment - 3.4 -> 3.5
        Hide
        Robert Muir added a comment -

        Bulk move 3.2 -> 3.3

        Show
        Robert Muir added a comment - Bulk move 3.2 -> 3.3
        Hide
        Evgeniy Serykh added a comment - - edited

        fixed for solr 1.4.1

        use in solrconfig.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>
        
        Show
        Evgeniy Serykh added a comment - - edited fixed for solr 1.4.1 use in solrconfig.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>
        Hide
        Hoss Man added a comment -

        Bulk updating 240 Solr issues to set the Fix Version to "next" per the process outlined in this email...

        http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E

        Selection criteria was "Unresolved" with a Fix Version of 1.5, 1.6, 3.1, or 4.0. email notifications were suppressed.

        A unique token for finding these 240 issues in the future: hossversioncleanup20100527

        Show
        Hoss Man added a comment - Bulk updating 240 Solr issues to set the Fix Version to "next" per the process outlined in this email... http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E Selection criteria was "Unresolved" with a Fix Version of 1.5, 1.6, 3.1, or 4.0. email notifications were suppressed. A unique token for finding these 240 issues in the future: hossversioncleanup20100527
        Hide
        Shalin Shekhar Mangar added a comment -

        Instead of baking this into the schema, should this be turned on/off through a request parameter?

        Show
        Shalin Shekhar Mangar added a comment - Instead of baking this into the schema, should this be turned on/off through a request parameter?

          People

          • Assignee:
            Unassigned
            Reporter:
            Dmitry Lihachev
          • Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:

              Development