Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Our QParser framework currently gets parameters from localParams. JSON integration would allow specifying parameters to the parsers in JSON.

      1. SOLR-4351.patch
        36 kB
        Yonik Seeley

        Issue Links

          Activity

          Hide
          manuel lenormand Manuel Lenormand added a comment -

          Is there any way to convert any Query object into a json representation instead of building it by my own? Is there any jsonQueryBuilder?

          Has anyone found bugs or unimplemented functionalities in this Jira before I get it into test environment?

          Show
          manuel lenormand Manuel Lenormand added a comment - Is there any way to convert any Query object into a json representation instead of building it by my own? Is there any jsonQueryBuilder? Has anyone found bugs or unimplemented functionalities in this Jira before I get it into test environment?
          Hide
          prometheas John Lianoglou added a comment -

          Shame it's sat around for over a year without any indication of response from any project members.

          Show
          prometheas John Lianoglou added a comment - Shame it's sat around for over a year without any indication of response from any project members.
          Hide
          janhoy Jan Høydahl added a comment -

          Any plans on continuing this work?

          Show
          janhoy Jan Høydahl added a comment - Any plans on continuing this work?
          Hide
          yseeley@gmail.com Yonik Seeley added a comment -

          Here's a quick prototype.
          QParser was changed to take Object instead of String. ObjectSolrParams is a new SolrParams implementation that can deal with objects rather than just strings, and JSON is used to populate that.

          Lots of stuff "just works" since it simply builds on our QParser framework and all of the existing QParser implementations.

          Examples of what currently works:

          {'term':{'id':'11'}}
          {'field':{'text':'Now Cow'}}
          {'prefix':{'text':'brow'}}
          {'frange':{'v':'mul(foo_i,2)', 'l':20,'u':24}}}
          {'join':{'from':'qqq_s', 'to':'www_s', 'v':'id:10'}}
          {'join':{'from':'qqq_s', 'to':'www_s', 'v':{'term':{'id':'10'}}}}
          {'lucene':'text:Cow -id:1'}
          
          Show
          yseeley@gmail.com Yonik Seeley added a comment - Here's a quick prototype. QParser was changed to take Object instead of String. ObjectSolrParams is a new SolrParams implementation that can deal with objects rather than just strings, and JSON is used to populate that. Lots of stuff "just works" since it simply builds on our QParser framework and all of the existing QParser implementations. Examples of what currently works: {'term':{'id':'11'}} {'field':{'text':'Now Cow'}} {'prefix':{'text':'brow'}} {'frange':{'v':'mul(foo_i,2)', 'l':20,'u':24}}} {'join':{'from':'qqq_s', 'to':'www_s', 'v':'id:10'}} {'join':{'from':'qqq_s', 'to':'www_s', 'v':{'term':{'id':'10'}}}} {'lucene':'text:Cow -id:1'}

            People

            • Assignee:
              yseeley@gmail.com Yonik Seeley
              Reporter:
              yseeley@gmail.com Yonik Seeley
            • Votes:
              17 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development