You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2011/07/14 12:24:59 UTC

[jira] [Resolved] (LUCENE-3309) Add narrow API for loading stored fields, to replace FieldSelector

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

Michael McCandless resolved LUCENE-3309.
----------------------------------------

    Resolution: Fixed

> Add narrow API for loading stored fields, to replace FieldSelector
> ------------------------------------------------------------------
>
>                 Key: LUCENE-3309
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3309
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/index
>            Reporter: Michael McCandless
>             Fix For: Field Type branch
>
>         Attachments: LUCENE-3309.patch, LUCENE-3309.patch, LUCENE-3309.patch
>
>
> I think we should "invert" the FieldSelector API, with a "push" API
> whereby FieldsReader invokes this API once per field in the document
> being visited.
> Implementations of the API can then do arbitrary things like save away
> the field's size, load the field, clone the IndexInput for later lazy
> loading, etc.
> This very thin API would be a mirror image of the very thin index time
> API we now have (IndexableField) and, importantly, it would have no
> dependence on our "user space" Document/Field/FieldType impl, so apps
> are free to do something totally custom.
> After we have this, we should build the "sugar" API that rebuilds a
> Document instance (ie IR.document(int docID)) on top of this new thin
> API.  This'll also be a good test that the API is sufficient.
> Relevant discussions from IRC this morning at
> http://colabti.org/irclogger/irclogger_log/lucene-dev?date=2011-07-13#l76

--
This message is automatically generated by JIRA.
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