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

Debug "parsedquery" output no longer handles boosts correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 6.0
    • None
    • None

    Description

      Since Lucene's removal of boosts on every query, Solr's debug output has been somewhat broken.

      http://localhost:8983/solr/techproducts/query?debugQuery=true&q=(foo_s:a^3)^4
      shows    "parsedquery":"BoostQuery(foo_s:a^3.0)",
      and
      http://localhost:8983/solr/techproducts/query?debugQuery=true&q=foo_s:a^=2
      shows    "parsedquery":"ConstantScore(foo_s:a)",
      

      Since boosts are now explicit (i.e. BoostQuery), we should probably just move to always showing boosts instead of having logic that tries to be smart about it.

      Attachments

        1. SOLR-8164.patch
          3 kB
          Yonik Seeley

        Issue Links

          Activity

            People

              yseeley@gmail.com Yonik Seeley
              yseeley@gmail.com Yonik Seeley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: