lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chuck Williams (JIRA)" <>
Subject [jira] Commented: (LUCENE-762) [PATCH] Efficiently retrieve sizes of field values
Date Sat, 30 Dec 2006 00:04:23 GMT
    [ ] 
Chuck Williams commented on LUCENE-762:

Hi Grant,

Maybe even better would be to have an appropriate method on FieldSelectorResult.  E.g.:

FieldSelectorResult.readField(doc, fieldsStream, fi, binary, compressed, tokenized)

This would eliminate the tests or map lookup in performance-critical code.

> [PATCH] Efficiently retrieve sizes of field values
> --------------------------------------------------
>                 Key: LUCENE-762
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Store
>    Affects Versions: 2.1
>            Reporter: Chuck Williams
>         Assigned To: Grant Ingersoll
>            Priority: Minor
>         Attachments: SizeFieldSelector.patch
> Sometimes an application would like to know how large a document is before retrieving
it.  This can be important for memory management or choosing between algorithms, especially
in cases where documents might be very large.
> This patch extends the existing FieldSelector mechanism with two new FieldSelectorResults:
 SIZE and SIZE_AND_BREAK.  SIZE creates fields on the retrieved document that store field
sizes instead of actual values.  SIZE_AND_BREAK is especially efficient if one field comprises
the bulk of the document size (e.g., the body field) and can thus be used as a reasonable
size approximation.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message