Solr
  1. Solr
  2. SOLR-2128

full parameter dereferencing for function queries

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major 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
        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
        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.
        Hide
        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
        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
        Yonik Seeley added a comment -

        committed.

        Show
        Yonik Seeley added a comment - committed.
        Show
        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
        Koji Sekiguchi added a comment -

        Reopening to incorporate this into 3x.

        Show
        Koji Sekiguchi added a comment - Reopening to incorporate this into 3x.
        Hide
        Koji Sekiguchi added a comment -

        branch_3x: Committed revision 1003739.

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

        Bulk close for 3.1.0 release

        Show
        Grant Ingersoll added a comment - Bulk close for 3.1.0 release

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development