lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woody Anderson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2544) Add 'divisor' to NumericField, allows for easy storage of full precision data, but indexing *starting* at lower precision.
Date Sun, 18 Jul 2010 18:30:49 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889648#action_12889648
] 

Woody Anderson commented on LUCENE-2544:
----------------------------------------

which is two Field objects. which is what i meant, i probably should have been more precise.

at any rate, it basically adds a numeric equivalent of the DateTools.Resolution.

The patch is simple enough for me to always be able to patch releases etc. if really don't
like it, but i'm not sure what's so confusing about having one extra optional parameter to
index a timestamp as seconds but store as milliseconds, and to do that without adding new
Field(..);

> Add 'divisor' to NumericField, allows for easy storage of full precision data, but indexing
*starting* at lower precision.
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2544
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2544
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Other
>    Affects Versions: 3.0.2
>            Reporter: Woody Anderson
>            Priority: Minor
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2544.patch
>
>
> In some cases, we want to index a timestamp or some other high precision numeric at a
much lower precision, but we still want to store the full precision data.
> Rather than have to do this with two Field objects in the Document, it'd be easier to
provide NumericField with a divisor as well as prevision step. The divisor would apply before
beginning the trie logic.
> most often, this is a divide by 1, but that will happen only during the constructor or
setXXXValue() in NumericTokenStream.
> I have the patch for this, or i will after i isolate it.

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message