Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5564

hl.maxAlternateFieldLength should apply to original field when fallback field does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.6.1, 4.7, 6.0
    • highlighter
    • None

    Description

      For a customer we use f.body.hl.alternateField=teaser&hl.maxAlternateFieldLength=100
      But some articles do not have the teaser field filled at all, so for queries that do not match the body, we get the full huge body returned in the frontend.

      If the highlighter has tried to fallback to the alternateField, then hl.maxAlternateFieldLength should always apply, even to text from the original field if alternateFIeld does not exist.

      Attachments

        1. SOLR-5564.patch
          2 kB
          Jan Høydahl

        Activity

          People

            janhoy Jan Høydahl
            janhoy Jan Høydahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: