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

Michael McCandless commented on LUCENE-6699:
--------------------------------------------

Hmm I'm still seeing test failures w/ the patch, e.g.:

{noformat}
ago 18, 2015 11:28:37 PM 
com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler
 uncaughtException
ADVERTENCIA: Uncaught exception in thread: Thread[T0,5,TGRP-TestGeo3DPointField]
java.lang.AssertionError: T0: iter=71 id=5758 docID=1056 
lat=-0.7503052868590764 lon=0.03113194606309409 expected true but got: false 
deleted?=false
  point1=[X=0.731126293194162, Y=0.022768740606807995, Z=-0.6818621032520755], 
iswithin=true
  point2=[X=0.731126292820613, Y=0.0227687404615659, Z=-0.6818621031259476], 
iswithin=true
  query=PointInGeo3DShapeQuery: field=point:PlanetModel: PlanetModel.SPHERE 
Shape: GeoCircle: {planetmodel=PlanetModel.SPHERE, 
center=[X=0.22316407597143118, Y=0.8640521337091807, Z=-0.45123353757054624], 
radius=1.0586809798482488(60.65795199607921)}
        at __randomizedtesting.SeedInfo.seed([BE582B0DCB72C9AE]:0)
        at org.junit.Assert.fail(Assert.java:93)
        at 
org.apache.lucene.bkdtree3d.TestGeo3DPointField$4._run(TestGeo3DPointField.java:617)
        at 
org.apache.lucene.bkdtree3d.TestGeo3DPointField$4.run(TestGeo3DPointField.java:514)

EEEENOTE: reproduce with: ant test  -Dtestcase=TestGeo3DPointField 
-Dtests.method=testRandomMedium -Dtests.seed=BE582B0DCB72C9AE -Dtests.slow=true 
-Dtests.linedocsfile=/lucenedata/hudson.enwiki.random.lines.txt.fixed 
-Dtests.locale=es_VE -Dtests.timezone=Africa/Algiers -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
.I....ENOTE: test params are: 
codec=FastDecompressionCompressingStoredFields(storedFieldsFormat=CompressingStoredFieldsFormat(compressionMode=FAST_DECOMPRESSION,
 chunkSize=13655, maxDocsPerChunk=627, blockSize=8), 
termVectorsFormat=CompressingTermVectorsFormat(compressionMode=FAST_DECOMPRESSION,
 chunkSize=13655, blockSize=8)), sim=DefaultSimilarity, locale=es_VE, 
timezone=Africa/Algiers
NOTE: Linux 3.13.0-46-generic amd64/Oracle Corporation 1.8.0_40 
(64-bit)/cpus=8,threads=1,free=428823904,total=514850816
NOTE: All tests run in this JVM: [TestGeo3DPointField]
NOTE: reproduce with: ant test  -Dtestcase=TestGeo3DPointField 
-Dtests.seed=BE582B0DCB72C9AE -Dtests.slow=true 
-Dtests.linedocsfile=/lucenedata/hudson.enwiki.random.lines.txt.fixed 
-Dtests.locale=es_VE -Dtests.timezone=Africa/Algiers -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
{noformat}

> Integrate lat/lon BKD and spatial3d
> -----------------------------------
>
>                 Key: LUCENE-6699
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6699
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>         Attachments: Geo3DPacking.java, LUCENE-6699.patch, LUCENE-6699.patch, 
> LUCENE-6699.patch, LUCENE-6699.patch, LUCENE-6699.patch, LUCENE-6699.patch, 
> LUCENE-6699.patch, LUCENE-6699.patch, LUCENE-6699.patch, LUCENE-6699.patch, 
> LUCENE-6699.patch, LUCENE-6699.patch, LUCENE-6699.patch, LUCENE-6699.patch, 
> LUCENE-6699.patch, LUCENE-6699.patch, LUCENE-6699.patch, LUCENE-6699.patch, 
> LUCENE-6699.patch
>
>
> I'm opening this for discussion, because I'm not yet sure how to do
> this integration, because of my ignorance about spatial in general and
> spatial3d in particular :)
> Our BKD tree impl is very fast at doing lat/lon shape intersection
> (bbox, polygon, soon distance: LUCENE-6698) against previously indexed
> points.
> I think to integrate with spatial3d, we would first need to record
> lat/lon/z into doc values.  Somewhere I saw discussion about how we
> could stuff all 3 into a single long value with acceptable precision
> loss?  Or, we could use BinaryDocValues?  We need all 3 dims available
> to do the fast per-hit query time filtering.
> But, second: what do we index into the BKD tree?  Can we "just" index
> earth surface lat/lon, and then at query time is spatial3d able to
> give me an enclosing "surface lat/lon" bbox for a 3d shape?  Or
> ... must we index all 3 dimensions into the BKD tree (seems like this
> could be somewhat wasteful)?



--
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