Solr
  1. Solr
  2. SOLR-9733

JSON Request filter param should support queries in JSON syntax

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JSON Request API
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      Currently, the top level "filter" in the JSON Request API is implemented by copying those values back to "fq" parameters, since that is what other components currently check.

      We should do a better job of isolating the creation of filters so other components don't have to know/care how they were created (i.e. what parameters were used, what syntax was used, etc).

      After that, it will be much easier to support filter queries in JSON syntax:
      {
      query : "myquery",
      filter : [ {term :

      {field:myfield, val:myval}

      , "another filter" ],
      limit : 10
      }

        Issue Links

          Activity

          Hide
          Yonik Seeley added a comment - - edited

          I linked SOLR-9682 since it's one of the first examples of a JSON Query (type "param" which just parses a query from a request parameter).

          From an API POV, the "filter" at the top level should support the exact same syntax/semantics as the "filter" within the "domain" block of a JSON Facet.

          Show
          Yonik Seeley added a comment - - edited I linked SOLR-9682 since it's one of the first examples of a JSON Query (type "param" which just parses a query from a request parameter). From an API POV, the "filter" at the top level should support the exact same syntax/semantics as the "filter" within the "domain" block of a JSON Facet.

            People

            • Assignee:
              Unassigned
              Reporter:
              Yonik Seeley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development