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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.6.1, 4.7, 6.0
    • Component/s: highlighter
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: