Inheritance: SpatialStrategy
示例#1
0
            public IEnumerable<Param> ParamsProvider()
            {
                var ctorArgs = new List<Param>();

                SpatialContext ctx = SpatialContext.GEO;
                SpatialPrefixTree grid;
                SpatialStrategy strategy;

                grid = new QuadPrefixTree(ctx, 25);
                strategy = new RecursivePrefixTreeStrategy(grid, "recursive_quad");
                ctorArgs.Add(new Param(strategy));

                grid = new GeohashPrefixTree(ctx, 12);
                strategy = new TermQueryPrefixTreeStrategy(grid, "termquery_geohash");
                ctorArgs.Add(new Param(strategy));

                strategy = new PointVectorStrategy(ctx, "pointvector");
                ctorArgs.Add(new Param(strategy));

                strategy = new BBoxStrategy(ctx, "bbox");
                ctorArgs.Add(new Param(strategy));

                return ctorArgs;
            }
示例#2
0
 public BBoxSimilarityValueSource(BBoxStrategy strategy, BBoxSimilarity similarity)
 {
     this.strategy   = strategy;
     this.similarity = similarity;
 }
 public BBoxSimilarityValueSource(BBoxStrategy strategy, BBoxSimilarity similarity)
 {
     this.strategy = strategy;
     this.similarity = similarity;
 }