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

Nicolas Helleringer commented on LUCENE-1777:
---------------------------------------------

In TestCartesian there is code that validates this :

{code}
  public void testRange() throws IOException, InvalidGeoException {
    searcher = new IndexSearcher(directory, true);

    final double[] milesToTest = new double[] {6.0, 0.5, 0.001, 0.0};
    final int[] expected = new int[] {7, 1, 0, 0};
{code}

So for me it is closed

> Error on distance query where miles < 1.0
> -----------------------------------------
>
>                 Key: LUCENE-1777
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1777
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/spatial
>    Affects Versions: 2.9
>            Reporter: Glen Stampoultzis
>            Assignee: Chris Male
>         Attachments: LUCENE-1777.patch
>
>
> If miles is under 1.0 distance query will break.
> To reproduce modify the file
> http://svn.apache.org/viewvc/lucene/java/trunk/contrib/spatial/src/test/org/apache/lucene/spatial/tier/TestCartesian.java?revision=794721
> And set the line:
> final double miles = 6.0;
> to 
> final double miles = 0.5;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to