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

Verbose parameter's names for QParsers

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: query parsers
    • Labels:
      None

      Description

      SOLR-11244 enabled a powerful and easy to construct Query DSL for Solr. Thefore we may consider using verbose names for parameters of QParsers to make the query more easy to understand. For example

      curl -XGET http://localhost:8983/solr/query -d '
      { 
          "query" : {
              "boost" : {
                  "query" : {
                      "lucene" : {
                          "operator" : "AND",
                          "default_field" : "cat_s",
                          "query" : "A"
                      }
                  }
                  "function" : "log(popularity)"
              }
          }
      }
      

      In my opinion we should support both verbose and shorthand names for Query DSL

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              caomanhdat Cao Manh Dat
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: