[
https://issues.apache.org/jira/browse/LUCENE-6561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14584697#comment-14584697
]
Robert Muir commented on LUCENE-6561:
-------------------------------------
I don't think we should even encourage caching of this? Its not really designed
for that: instead its just a "state" we pass along but it has a very finite
life during the processing of the query.
If we do this then it puts additional pressure on the postings format, maybe
their impl isnt memory efficient or whatever.
> 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, 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: [email protected]
For additional commands, e-mail: [email protected]