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/13 09:11:20 UTC

[jira] [Updated] (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 updated LUCENE-7311:
---------------------------------
    Attachment: LUCENE-7311.patch

I updated the patch so that it can be applied on a recent master checkout.

Things are a bit simpler since the first iteration on this issue since we removed aute-prefix terms, Weight.getValueForNormalization, Weight.normalize. Are we good to go now?

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