[ 
https://issues.apache.org/jira/browse/SOLR-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yonik Seeley updated SOLR-1046:
-------------------------------

    Attachment: SOLR-1046.patch

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)

> nested queries in function query
> --------------------------------
>
>                 Key: SOLR-1046
>                 URL: https://issues.apache.org/jira/browse/SOLR-1046
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-1046.patch
>
>
> Allow nested queries (sub-queries of different types) from function query 
> syntax

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to