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: 4.0, 3.0.2
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: [email protected]
For additional commands, e-mail: [email protected]