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

Using query function in bf parameter in the DisMaxQParser forces the use of parameter dereferencing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: search
    • Labels:
      None

      Description

      The DisMaxQParser parses the bf parameter using the SolrPluginUtils.parseFieldBoosts(...) function. This function tokenizes the string based on whitespaces and then bulilds a map mapping fields to their boost values. Unfortunately, the the *

      {!...}

      * form of a query contains whitespaces and therefore the parsing of the boost function fails.

      This should be considered as a bug as effectively it forces the use of parameter dereferencing which in many cases is not ideal.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                uboness Uri Boness
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: