lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3065) NumericField should be stored in binary format in index (matching Solr's format)
Date Wed, 04 May 2011 14:46:03 GMT


Uwe Schindler updated LUCENE-3065:

    Attachment: LUCENE-3065.patch

I added some javadocs to Document class:
- getField() / getFields() is deprecated [we may change this in ]

Some thoughts:
- maybe we should make getField()/getFields() simply return null or does not include the Field
into the returned array, if its not instanceof Field? We can add that to documentation, that
lazy loaded and numerical fields are not returned.
- I would also like to add a method Document.getNumericValue(s), that returns Number[] or
Number like the NumericField one. Like above getField() it can return null/empty array if
the field name has no numeric Fields?

The CHANGES entry may also be extended, currently it under "bugs" - we shold move.

> NumericField should be stored in binary format in index (matching Solr's format)
> --------------------------------------------------------------------------------
>                 Key: LUCENE-3065
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Uwe Schindler
>            Priority: Minor
>             Fix For: 3.2, 4.0
>         Attachments: LUCENE-3065.patch, LUCENE-3065.patch, LUCENE-3065.patch, LUCENE-3065.patch,
LUCENE-3065.patch, LUCENE-3065.patch, LUCENE-3065.patch
> (Spinoff of LUCENE-3001)
> Today when writing stored fields we don't record that the field was a NumericField, and
so at IndexReader time you get back an "ordinary" Field and your number has turned into a
string.  See
> We have spare bits already in stored fields, so, we should use one to record that the
field is numeric, and then encode the numeric field in Solr's more-compact binary format.
> A nice side-effect is we fix the long standing issue that you don't get a NumericField
back when loading your document.

This message is automatically generated by JIRA.
For more information on JIRA, see:

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

View raw message