Solr
  1. Solr
  2. SOLR-1046

nested queries in function query

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: None
    • Labels:
      None

      Description

      Allow nested queries (sub-queries of different types) from function query syntax

      1. SOLR-1046.patch
        4 kB
        Yonik Seeley

        Activity

        Hide
        Yonik Seeley added a comment -

        The code for this was in Solr for some time - I just never got around to fixing the bugs, testing and documenting it. Patch attached.

        Examples:
        // relevancy score of the sub-query specified by the qq var (lucene query by default)
        q=query($qq)&qq=+foo +bar baz

        // value of the query specified by the qq argument (a dismax query) with a default value of 1.0 for documents that don't match that query.
        q=query($qq,1)&qq=

        {!dismax qf=myfield pf=myfield}

        foo bar

        // relevancy score of the lucene query with a default value of 0.1 for any non-matching documents
        query(

        {!lucene v='body:apple +tag:[* TO *]'}

        ,0.1)

        Show
        Yonik Seeley added a comment - The code for this was in Solr for some time - I just never got around to fixing the bugs, testing and documenting it. Patch attached. Examples: // relevancy score of the sub-query specified by the qq var (lucene query by default) q=query($qq)&qq=+foo +bar baz // value of the query specified by the qq argument (a dismax query) with a default value of 1.0 for documents that don't match that query. q=query($qq,1)&qq= {!dismax qf=myfield pf=myfield} foo bar // relevancy score of the lucene query with a default value of 0.1 for any non-matching documents query( {!lucene v='body:apple +tag:[* TO *]'} ,0.1)
        Hide
        Yonik Seeley added a comment -

        committed.
        I'll work on updating the Wiki shortly.

        Show
        Yonik Seeley added a comment - committed. I'll work on updating the Wiki shortly.
        Hide
        Grant Ingersoll added a comment -

        Bulk close for Solr 1.4

        Show
        Grant Ingersoll added a comment - Bulk close for Solr 1.4

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development