You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2016/07/20 15:50:20 UTC

[jira] [Resolved] (LUCENE-7311) TermWeight shoud seek terms lazily

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

Adrien Grand resolved LUCENE-7311.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 6.2
                   master (7.0)

> TermWeight shoud seek terms lazily
> ----------------------------------
>
>                 Key: LUCENE-7311
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7311
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: master (7.0), 6.2
>
>         Attachments: LUCENE-7311.patch, LUCENE-7311.patch
>
>
> Currently the terms are seeked eagerly in TermQuery.createWeight when creating the TermContext. This might be wasteful when scores are not needed since the query might be cached on some segments, thus seeking the term on these segments is not needed. We could change TermWeight to only seek terms in Weight.scorer when scores are not needed.



--
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