You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Arup Chauhan (Jira)" <ji...@apache.org> on 2026/02/11 19:36:00 UTC

[jira] [Commented] (SOLR-18039) knn QParser should support multiple parents.preFilter params

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

Arup Chauhan commented on SOLR-18039:
-------------------------------------

Hi, I’d be happy to take this if it’s still available.

The approach outlined in the description (supporting multiple parents.preFilter values via getParams, refactor common filter parsing into a helper, and ensure setIsFilter(true) before {{getQuery()}} seems clear. 

I’ll start with a small PR and add tests.

 

Please let me know if that works. Thanks!

> knn QParser should support multiple parents.preFilter params
> ------------------------------------------------------------
>
>                 Key: SOLR-18039
>                 URL: https://issues.apache.org/jira/browse/SOLR-18039
>             Project: Solr
>          Issue Type: Improvement
>          Components: vector-search
>            Reporter: Chris M. Hostetter
>            Priority: Major
>
> Followup to SOLR-17736...
> {quote} [This...] only support a single instance of {{parents.preFilter}} - but the regular {{preFilter}} can be specified multiple times.
>  * This feels inconsistent?
>  * It should be fairly easy to change {{localParams.get(PARENTS_PRE_FILTER)}} to {{localParams.getParams(PARENTS_PRE_FILTER)}} and then refactor some of the "loop over a String[] to produce a List<Query> of filters" logic out of {{AbstractVectorQParserBase.getFilterQuery()}} into a helper method that could be used here (and then just build a BooleanQuery from that List<Query>
>  * Either way: when the {{{}parents.preFilter{}}}(s) are parsed, you should make sure {{setIsFilter(true)}} is called on the subQuery QParser (before calling {{getQuery()}} - that can help other QParsers optimize what they return.{quote}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org