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

full parameter dereferencing for function queries

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      We should be able to specify function parameters as $foo (where foo is another request parameter).
      Ideally the parameter could itself be a full function.

      1. SOLR-2128.patch
        8 kB
        Yonik Seeley

        Activity

        Hide
        gsingers Grant Ingersoll added a comment -

        Bulk close for 3.1.0 release

        Show
        gsingers Grant Ingersoll added a comment - Bulk close for 3.1.0 release
        Hide
        koji Koji Sekiguchi added a comment -

        branch_3x: Committed revision 1003739.

        Show
        koji Koji Sekiguchi added a comment - branch_3x: Committed revision 1003739.
        Hide
        koji Koji Sekiguchi added a comment -

        Reopening to incorporate this into 3x.

        Show
        koji Koji Sekiguchi added a comment - Reopening to incorporate this into 3x.
        Show
        jthomerson Jeremy Thomerson added a comment - yeah - committed with r1000000! https://blogs.apache.org/foundation/entry/the_asf_hits_its_millionth http://twitter.com/TheASF/status/25220780033
        Hide
        yseeley@gmail.com Yonik Seeley added a comment -

        committed.

        Show
        yseeley@gmail.com Yonik Seeley added a comment - committed.
        Hide
        yseeley@gmail.com Yonik Seeley added a comment -

        Here's the patch that implements this feature via nested queries.
        As an example, you can now do stuff like this:

        http://localhost:8983/solr/select?defType=func&fl=id,score&q=add($v1,$v2)&v1=mul(2,3)&v2=10

        Show
        yseeley@gmail.com Yonik Seeley added a comment - Here's the patch that implements this feature via nested queries. As an example, you can now do stuff like this: http://localhost:8983/solr/select?defType=func&fl=id,score&q=add($v1,$v2)&v1=mul(2,3)&v2=10
        Hide
        yseeley@gmail.com Yonik Seeley added a comment -

        Some of the motivation for this is to make spatial search easier by enabling users to reference other parameters in the request such as the point or distance.

        Show
        yseeley@gmail.com Yonik Seeley added a comment - Some of the motivation for this is to make spatial search easier by enabling users to reference other parameters in the request such as the point or distance.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development