﻿using System.Linq;
using Raven.Client.Indexes;

namespace Raven.TimeZones
{
    public class ZoneShapesIndex : AbstractIndexCreationTask<ZoneShape>
    {
        public ZoneShapesIndex()
        {
            Map = shapes => from shape in shapes
                            select new
                                {
                                    shape.Zone,
                                    _ = SpatialGenerate("location", shape.Shape)
                                };
        }
    }
}

﻿using System.Linq;
using Raven.Abstractions.Indexing;
using Raven.Client.Indexes;

namespace Raven.TimeZones
{
    public class ZoneShapesIndex : AbstractIndexCreationTask<ZoneShape>
    {
        public ZoneShapesIndex()
        {
            Map = shapes => from shape in shapes
                            select new
                                {
                                    shape.Zone,
                                    _ = SpatialGenerate("location", shape.Shape, SpatialSearchStrategy.GeohashPrefixTree, 3)
                                };
        }
    }
}

Use a lower maxTreeLevel precision
Use a lower maxTreeLevel precision

https://groups.google.com/d/topic/ravendb/a6xFRI8nKZc/discussion
