You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Woody Anderson (JIRA)" <ji...@apache.org> on 2010/07/18 05:08:49 UTC
[jira] Updated: (LUCENE-2544) Add 'divisor' to NumericField, allows
for easy storage of full precision data, but indexing *starting* at lower
precision.
[ https://issues.apache.org/jira/browse/LUCENE-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Woody Anderson updated LUCENE-2544:
-----------------------------------
Attachment: LUCENE-2544.patch
decided to leave numerictokenstream untouched and simply modify internals of NumericField. makes the diff very small.
> 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.0.2, 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