You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by dsmiley <gi...@git.apache.org> on 2018/02/07 15:42:56 UTC

[GitHub] lucene-solr pull request #302: LUCENE-8126: Spatial prefix tree based on S2 ...

Github user dsmiley commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/302#discussion_r166657498
  
    --- Diff: lucene/spatial-extras/src/test/org/apache/lucene/spatial/spatial4j/Geo3dRptTest.java ---
    @@ -50,8 +53,20 @@
       private RecursivePrefixTreeStrategy rptStrategy;
     
       private void setupGeohashGrid() {
    -    this.grid = new GeohashPrefixTree(ctx, 2);//A fairly shallow grid
    -    this.rptStrategy = newRPT();
    +    int type = random().nextInt(4);
    +    if (type == 0) {
    +      this.grid = new GeohashPrefixTree(ctx, 2);//A fairly shallow grid
    +      this.rptStrategy = newRPT();
    +    } else if (type == 1) {
    +      this.grid = new QuadPrefixTree(ctx, 5);//A fairly shallow grid
    +      this.rptStrategy = newRPT();
    +    }
    +    else {
    --- End diff --
    
    remove CR


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org