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

Send multiple queries through highlighter

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.4
    • None
    • highlighter
    • None

    Description

      There's been several times when I wish I could specify multiple queries through the highlighter. For example, a search over books may have an option to filter jy author. If I wanted to highlight both the primary search terms and the author match I'd have to construct an hl.q that created the desire highlight query.

      This is complicated by the fact that q might be dismax/edismax while the fq is likely going to be a lucene query. It might be rather complex to construct a single query that reflects the combination of dismax over many fields plus a specific lucene query.

      What I would prefer to do is be able to specify additional queries (hl.addlq) to the highlighter. The highlighter then highlights the results of those queries as well.

      (Unfortunately, while this is useful, its limited somewhat by this bug:
      https://issues.apache.org/jira/browse/SOLR-4812#comment-13772151)

      Attachments

        1. Solr-5256.patch
          7 kB
          Doug Turnbull

        Activity

          People

            Unassigned Unassigned
            softwaredoug Doug Turnbull
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: