lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-2868) It should be easy to make use of TermState; rewritten queries should be shared automatically
Date Wed, 08 Jun 2011 08:07:58 GMT

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

Karl Wright updated LUCENE-2868:
--------------------------------

    Attachment: LUCENE-2868.patch

Updated for latest trunk

> It should be easy to make use of TermState; rewritten queries should be shared automatically
> --------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2868
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2868
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/query/scoring
>            Reporter: Karl Wright
>            Assignee: Simon Willnauer
>         Attachments: LUCENE-2868.patch, LUCENE-2868.patch, LUCENE-2868.patch, lucene-2868.patch,
lucene-2868.patch, query-rewriter.patch
>
>
> When you have the same query in a query hierarchy multiple times, tremendous savings
can now be had if the user knows enough to share the rewritten queries in the hierarchy, due
to the TermState addition.  But this is clumsy and requires a lot of coding by the user to
take advantage of.  Lucene should be smart enough to share the rewritten queries automatically.
> This can be most readily (and powerfully) done by introducing a new method to Query.java:
> Query rewriteUsingCache(IndexReader indexReader)
> ... and including a caching implementation right in Query.java which would then work
for all.  Of course, all callers would want to use this new method rather than the current
rewrite().

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message