You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2015/06/12 21:07:01 UTC
[jira] [Commented] (LUCENE-6561) Add a TermContextCache to
IndexSearcher
[ https://issues.apache.org/jira/browse/LUCENE-6561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14583910#comment-14583910 ]
Robert Muir commented on LUCENE-6561:
-------------------------------------
I have concerns, there used to be a terms dict cache, and we removed it because it caused things like concurrency slowdowns and other issues.
Generally speaking I don't think a cache is beneficial...
> Add a TermContextCache to IndexSearcher
> ---------------------------------------
>
> Key: LUCENE-6561
> URL: https://issues.apache.org/jira/browse/LUCENE-6561
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Alan Woodward
> Attachments: LUCENE-6561.patch
>
>
> TermContexts can be quite expensive to build, and if you have fairly complex queries that re-use the same terms you can end up spending a lot of time re-building the same ones over and over again. It would be nice to be able to cache them on an IndexSearcher, so that they can be re-used.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org