You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 05:49:12 UTC

[jira] [Updated] (LUCENE-3056) Support Query Rewriting Caching

     [ https://issues.apache.org/jira/browse/LUCENE-3056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley updated LUCENE-3056:
---------------------------------

    Fix Version/s:     (was: 4.7)
                   4.8

> Support Query Rewriting Caching
> -------------------------------
>
>                 Key: LUCENE-3056
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3056
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: 4.0-ALPHA
>            Reporter: Chris Male
>             Fix For: 4.8
>
>         Attachments: LUCENE-3056.patch, LUCENE-3056.patch
>
>
> Out of LUCENE-3041, its become apparent that using a Visitor / Walker isn't right for caching the rewrites of Querys.  Although we still intend to introduce the Query / Walker for advanced query transformations, rewriting still serves a purpose for very specific implementation detail writing.  As such, it can be very expensive.  So I think we should introduce first class support for rewrite caching.  I also feel the key is to make the caching as transparent as possible, to reduce the strain on Query implementors.
> The TermState idea gave me the idea of maybe making a RewriteState / RewriteCache / RewriteInterceptor, which would be consulted for rewritten Querys.  It would then maintain an internal cache that it would check.  If a value wasn't found, it'd then call Query#rewrite, and cache the result.
> By having this external rewrite source, people could 'pre' rewrite Querys if they were particularly expensive but also common.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org