[
https://issues.apache.org/jira/browse/SOLR-16002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17514269#comment-17514269
]
ASF subversion and git services commented on SOLR-16002:
--------------------------------------------------------
Commit f90af2aa0c522055abec4eac346c562afc38bd3a in solr's branch
refs/heads/branch_9x from Michael Gibney
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=f90af2a ]
SOLR-16002: Avoid redundant `FilterQuery` caching, e.g. via `filter($query)`
syntax (#624)
(cherry picked from commit 534696cf0e83c8671a1d3ef31e2ba2e6a93d7ec0)
> FilterQuery (`filter([some_query])`) can be double-cached when used in
> certain contexts
> ---------------------------------------------------------------------------------------
>
> Key: SOLR-16002
> URL: https://issues.apache.org/jira/browse/SOLR-16002
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: main (10.0)
> Reporter: Michael Gibney
> Assignee: Michael Gibney
> Priority: Minor
> Time Spent: 4h
> Remaining Estimate: 0h
>
> {{FilterQuery}} (usually invoked by the {{filter([inner_query])}} syntax in
> the Standard Query Parser), can be double-cached if it's used in certain
> contexts. The clearest case is if you specify {{fq=filter(field_s:value)}},
> this will hit the filterCache twice:
> # once at the top/fq level, as a FilterQuery
> # once as the inner {{field_s:value}} query, wrapped by the FilterQuery.
> This might seem like an anti-pattern, but there are cases where it's really
> practical to support this usage; namely, bundling main query and fqs into a
> single query (e.g., to use as the "foreground query" for SKG/relatedness ...
> but there are likely other cases). Without the ability to consult the cache
> for wrapped clauses, such a use case hits serious problems.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]