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

Robert Muir commented on LUCENE-7179:
-------------------------------------

{quote}
Unless there's ideas for lossless compression of 64 bit signed double precision 
to 32 bit unsigned space I'm not sure this discussion will be any more 
productive. 
{quote}

We don't need it to be lossless, just well-defined. If i were to try, my first 
stab would be:
* Use same quantization methods as LatLonPoint to quantize each component from 
a 64-bit double to a 32-bit integer.
* Run NumericUtils on each component so it sorts correctly.
* Interleave those and treat it in your head like its a unsigned 64-bit long.



> GeoPoint and LatLonPoint test data should quantize once
> -------------------------------------------------------
>
>                 Key: LUCENE-7179
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7179
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Nicholas Knize
>         Attachments: LUCENE-7179.patch
>
>
> {{LatLonPoint}} and {{GeoPointField}} tests pre quantizes test data to ensure 
> consistency with indexed (encoded) data. The pre quantized data then becomes 
> indexed, undergoing another quantization. To guarantee numerical stability 
> this should be changed such that the test data is quantized after indexing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to