Re: SpatialRecursivePrefixTreeFieldType Spatial Searching

2013-06-05 Thread Chris Atkinson
Everything is working great now. Thanks David On Wed, Jun 5, 2013 at 12:07 AM, David Smiley (@MITRE.org) < dsmi...@mitre.org> wrote: > maxDistErr should be like 0.3 based on earlier parts of this discussion > since > your data is to one of a couple hours of the day, not whole days. If it > was

Re: SpatialRecursivePrefixTreeFieldType Spatial Searching

2013-06-04 Thread David Smiley (@MITRE.org)
maxDistErr should be like 0.3 based on earlier parts of this discussion since your data is to one of a couple hours of the day, not whole days. If it was whole days, you would use 1. Changing this requires a re-index. So does changing worldBounds if you do so. distErrPct should be 0. Changing i

Re: SpatialRecursivePrefixTreeFieldType Spatial Searching

2013-06-04 Thread Chris Atkinson
Hi David, Thanks for your continued help. I think that you have nailed it on the head for me. I'm 100% sure that I had previously tried that query without success. I'm not sure if perhaps I had wrong distErrPct or maxDistErr values... It's getting late, so I'm going to call it a night (I'm on GM

Re: SpatialRecursivePrefixTreeFieldType Spatial Searching

2013-06-04 Thread Smiley, David W.
So "availability" is the absence of any other document's indexed time duration overlapping with your availability query duration. So I think you should negate an overlaps query. The overlaps query looks like: Intersects(-Inf start end Inf). And remember the slight buffering needed as described o

Re: SpatialRecursivePrefixTreeFieldType Spatial Searching

2013-06-04 Thread Chris Atkinson
Here is an example I have tried. So let's assume that I want to checkIn on the 30th day, and leave on the 115th day. My query would be: -availability_spatial:"Intersects( 30 0 3650 115 )" However, that wouldn't match anything. Here is an example document below so you can see. (I've not negat

Re: SpatialRecursivePrefixTreeFieldType Spatial Searching

2013-06-04 Thread Chris Atkinson
Thanks David. Query times are really quick and my index is only 20Mb now which is about what I would expect. I'm having some problems figuring out what type of query I want to find *Available* properties with this new points system. I'm storing bookings against each document. So I have X Y coordi

Re: SpatialRecursivePrefixTreeFieldType Spatial Searching

2013-06-03 Thread Smiley, David W.
Hi Chris: Have you read: http://wiki.apache.org/solr/SpatialForTimeDurations You're modeling your data sub-optimally. Full precision rectangles (distErrPct=0) doesn't scale well and you're seeing that. You should represent your durations as a point and it will take up a fraction of the space (se

Re: SpatialRecursivePrefixTreeFieldType Spatial Searching

2013-06-03 Thread Chris Atkinson
Also, here is a sample query, and the debugQuery output fq={!cost=200}*:* -availability_spatial:"Intersects(182.6 0 199.4 1)" Incase the formatting is bad, here is a raw past of the debugQuery: http://pastie.org/pastes/872/text?key=ksjyboect4imrha0rck8sa 0 8171 true true *:* 1370259235