lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Updated: (LUCENE-2380) Add FieldCache.getTermBytes, to load term data as byte[]
Date Sat, 19 Jun 2010 13:31:24 GMT


Yonik Seeley updated LUCENE-2380:

    Attachment: LUCENE-2380_direct_arr_access.patch

This patch adds the ability to get at the raw arrays from the Direct* classes, and using those
fixes the performance regressions in the "fc" faceting I was seeing.

To do this, it adds this to DocTermsIndex.  Anyone have a better solution?
    /** @lucene.internal */
    public abstract PackedInts.Reader getDocToOrd();

> Add FieldCache.getTermBytes, to load term data as byte[]
> --------------------------------------------------------
>                 Key: LUCENE-2380
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 4.0
>         Attachments: LUCENE-2380.patch, LUCENE-2380.patch, LUCENE-2380.patch, LUCENE-2380.patch,
LUCENE-2380_direct_arr_access.patch, LUCENE-2380_enum.patch, LUCENE-2380_enum.patch
> With flex, a term is now an opaque byte[] (typically, utf8 encoded unicode string, but
not necessarily), so we need to push this up the search stack.
> FieldCache now has getStrings and getStringIndex; we need corresponding methods to load
terms as native byte[], since in general they may not be representable as String.  This should
be quite a bit more RAM efficient too, for US ascii content since each character would then
use 1 byte not 2.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message