org.apache.solr.search

## Interface ExtendedQuery

- All Known Subinterfaces:
    PostFilter
  All Known Implementing Classes:
    AbstractReRankQuery, AnalyticsQuery, CollapsingQParserPlugin.CollapsingPostFilter, ExportQParserPlugin.ExportQuery, ExtendedQueryBase, FilterQuery, FunctionRangeQuery, RankQuery, SolrConstantScoreQuery, SolrRangeQuery, WrappedQuery

      public interface ExtendedQuery

  The ExtendedQuery interface provides extra metadata to a query. Implementations of ExtendedQuery must also extend Query.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `getCache()` Should this query be cached in the query cache or filter cache.
    `boolean` | `getCacheSep()` If true, the clauses of this boolean query should be cached separately.
    `int` | `getCost()` Returns the cost of this query, used to order checking of filters that are not cached.
    `void` | `setCache(boolean cache)`
    `void` | `setCacheSep(boolean cacheSep)`
    `void` | `setCost(int cost)`

- - ### Method Detail

    - #### getCache

          boolean getCache()

      Should this query be cached in the query cache or filter cache.

    - #### setCache

          void setCache(boolean cache)

    - #### getCost

          int getCost()

      Returns the cost of this query, used to order checking of filters that are not cached. If getCache()==false && getCost()>=100 && this instanceof PostFilter, then the PostFilter interface will be used for filtering.

    - #### setCost

          void setCost(int cost)

    - #### getCacheSep

          boolean getCacheSep()

      If true, the clauses of this boolean query should be cached separately. This is not yet implemented.

    - #### setCacheSep

          void setCacheSep(boolean cacheSep)

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.