Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • 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

        Activity

        Hide
        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
        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'}
        Hide
        Jan Høydahl added a comment -

        Any plans on continuing this work?

        Show
        Jan Høydahl added a comment - Any plans on continuing this work?
        Hide
        John Lianoglou added a comment -

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

        Show
        John Lianoglou added a comment - Shame it's sat around for over a year without any indication of response from any project members.
        Hide
        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 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?

          People

          • Assignee:
            Unassigned
            Reporter:
            Yonik Seeley
          • Votes:
            15 Vote for this issue
            Watchers:
            20 Start watching this issue

            Dates

            • Created:
              Updated:

              Development