[jira] Commented: (SOLR-2052) Allow for a list of filter queries and a single docset filter in QueryComponent

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2052) Allow for a list of filter queries and a single docset filter in QueryComponent

Cristian Vat (Jira)

    [ https://issues.apache.org/jira/browse/SOLR-2052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971715#action_12971715 ]

Jonathan Rochkind commented on SOLR-2052:
-----------------------------------------

Very interested in this functionality -- but only if it could be combined with traditional fq's too. Would this patch allow a bit-filter as one filter, with additional ordinary fq's being additional filters on top, as well as an ordinary 'query' etc?  If so, definitely very interested.

> Allow for a list of filter queries and a single docset filter in QueryComponent
> -------------------------------------------------------------------------------
>
>                 Key: SOLR-2052
>                 URL: https://issues.apache.org/jira/browse/SOLR-2052
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 4.0
>         Environment: Mac OS X, Java 1.6
>            Reporter: Stephen Green
>            Priority: Minor
>             Fix For: 1.4.2
>
>         Attachments: SOLR-2052-2.patch, SOLR-2052.patch
>
>
> SolrIndexSearcher.QueryCommand allows you to specify a list of filter queries or a single filter (as a DocSet), but not both.  This restriction seems arbitrary, and there are cases where we can have both a list of filter queries and a DocSet generated by some other non-query process (e.g., filtering documents according to IDs pulled from some other source like a database.)
> Fixing this requires a few small changes to SolrIndexSearcher to allow both of these to be set for a QueryCommand and to take both into account when evaluating the query.  It also requires a modification to ResponseBuilder to allow setting the single filter at query time.
> I've run into this against 1.4, but the same holds true for the trunk.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]