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

relatedness() values can be wrong when using 'prefix'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.6
    • None
    • None

    Description

      Another relatedness() bug found in json facet's while working on increased test coverage for SOLR-13132.
      if the prefix option is used when doing a terms facet, then the relatedess() calculations can be wrong in some situations – most notably when using limit:-1 but i'm pretty sure the bug also impacts the code paths where the (first) sort (or prelim_sort is computed against the relatedness() values.

      Real world impacts of this bug should be relatively low since i can't really think of any practical usecases for using relatedness() in conjunction with prefix

      Attachments

        1. SOLR-14477.patch
          69 kB
          Chris M. Hostetter
        2. SOLR-14477.patch
          25 kB
          Chris M. Hostetter
        3. SOLR-14477.patch
          6 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: