[ https://issues.apache.org/jira/browse/LUCENE-8521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16637409#comment-16637409 ]
Nicholas Knize commented on LUCENE-8521: ---------------------------------------- Attached patch changes LatLonShape encoding to 7 dimensions of size {{Long.BYTES}}. The first 4 dimensions are the bounding box of the triangle encoded as {{Integer.BYTES}} size. (leading zeros are compressed while building the common prefix of the nodes). The remaining 3 dimensions are the three vertices of the triangle encoded as {{Long.BYTES}} size in the form of X1Y1 X2Y2 X3Y3. With selective indexing provided by LUCENE-8496 the index is built as a 2 dimension bounding box, and the data dimensions are used when computing the triangle relation with the target query (Polygon or BoundingBox). > Change LatLonShape encoding to use selective indexing > ----------------------------------------------------- > > Key: LUCENE-8521 > URL: https://issues.apache.org/jira/browse/LUCENE-8521 > Project: Lucene - Core > Issue Type: New Feature > Reporter: Nicholas Knize > Priority: Major > Attachments: LUCENE-8521.patch > > > LUCENE-8496 allows for selecting the first n dimensions to be used forĀ > building the index and the remaining dimensions to be used as data > dimensions. This feature changesĀ {{LatLonShape}} encoding to a 7 dimension > encoding instead of 6; where the first 4 are index dimensions defining the > bounding box of the {{LatLonShape.Triangle}} and the remaining 3 data > dimensions defining the vertices of the triangle. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org