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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment