[
https://issues.apache.org/jira/browse/SOLR-2429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007122#comment-13007122
]
Yonik Seeley commented on SOLR-2429:
------------------------------------
The annoying part here is we need more metadata than just "Query" that we use
now for a filter.
Unfortunately, SolrIndexSearcher uses List<Query> everywhere.
We could create something like a SolrQuery extends Query that wrapped a normal
query and added additional metadata (like cache options). That's a bit messier
since we'd have instanceof checks and casts everywhere though.
Another option is to create a SolrQuery class that does not extend Query -
hence methods taking List<Query> would now need to take List<SolrQuery>
{code}
class SolrQuery {
Query q;
QParser qparser;
boolean cache;
...
}
{code}
Thoughts?
> ability to not cache a filter
> -----------------------------
>
> Key: SOLR-2429
> URL: https://issues.apache.org/jira/browse/SOLR-2429
> Project: Solr
> Issue Type: New Feature
> Reporter: Yonik Seeley
>
> A user should be able to add {!cache=false} to a query or filter query.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]