lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-4230) When pulling DocsAndPositionsEnum you should state whether you need payloads
Date Sun, 29 Jul 2012 21:45:33 GMT

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

Michael McCandless updated LUCENE-4230:
---------------------------------------

    Attachment: LUCENE-4230.patch

New patch, making the default docsAndPositions return payloads and
offsets, and then caller can "optimize" if they don't need either or
both (I optimized MultiPhraseQuery/PhraseQuery/SloppyPhraseQuery).

Also, we no longer return null if the caller wants offsets but they
were not indexed (caller can consult FieldInfo if they need to know),
and instead return -1 (offsets) and null (payloads) if they weren't
indexed.

Separately we can optimize other places that don't need payloads.

                
> When pulling DocsAndPositionsEnum you should state whether you need payloads
> ----------------------------------------------------------------------------
>
>                 Key: LUCENE-4230
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4230
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 5.0
>
>         Attachments: LUCENE-4230.patch, LUCENE-4230.patch, LUCENE-4230.patch
>
>
> Payloads are extra-costly today because when pulling a
> DocsAndPositionsEnum, the codec has no way to know if you need access
> to the payloads.  Tracking the payloads, even if the app never
> retrieves them, is often costly...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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