lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (SOLR-2429) ability to not cache a filter
Date Tue, 15 Mar 2011 19:40:30 GMT


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>

class SolrQuery {
  Query q;
  QParser qparser;
  boolean cache;


> ability to not cache a filter
> -----------------------------
>                 Key: SOLR-2429
>                 URL:
>             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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message