You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Ignacio Vera (Jira)" <ji...@apache.org> on 2019/10/02 10:12:00 UTC
[jira] [Created] (LUCENE-8997) Add type of triangle info to
ShapeField encoding
Ignacio Vera created LUCENE-8997:
------------------------------------
Summary: Add type of triangle info to ShapeField encoding
Key: LUCENE-8997
URL: https://issues.apache.org/jira/browse/LUCENE-8997
Project: Lucene - Core
Issue Type: Improvement
Reporter: Ignacio Vera
We are currently encoding three type of triangle in ShapeField:
* POINT: all three coordinates are equal
* LINE: two coordinates are equal
* TRIANGLE: all coordinates are different
Because we still have two unused bits, it might be worthy to encode this information in those two bits as follows:
* 0 0 : Unknown so this is an index created before adding this information. We can compute in this case the information while decoding for backwards compatibility.
* 1 0: The encoded triangle is a POINT
* 0 1: The encoded triangle is a LINE
* 1 1: The encoded triangle is a TRIANGLE
We can later leverage this information so we don't need to decode all dimensions in case of POINT and LINE and we are currently computing in some of the methods ithe type of triangle we are dealing with, This will go as well.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org