You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/05/29 17:51:02 UTC

[jira] [Created] (LUCENE-5714) Improve tests for BBoxStrategy then port to 4x.

David Smiley created LUCENE-5714:
------------------------------------

             Summary: Improve tests for BBoxStrategy then port to 4x.
                 Key: LUCENE-5714
                 URL: https://issues.apache.org/jira/browse/LUCENE-5714
             Project: Lucene - Core
          Issue Type: Improvement
          Components: modules/spatial
            Reporter: David Smiley
            Assignee: David Smiley
             Fix For: 4.9


BBoxStrategy needs better tests before I'm comfortable seeing it in 4x.  Specifically it should use random rectangles based validation (ones that may cross the dateline), akin to the other tests.  And I think I see an equals/hashcode bug to be fixed in there too.

One particular thing I'd like to see added is how to handle a zero-area case for AreaSimilarity.  I think an additional feature in which you declare a minimum % area (relative to the query shape) would be good.

It should be possible for the user to combine rectangle center-point to query shape center-point distance sorting as well.  I think it is but I need to make sure it's possible without _having_ to index a separate center point field.

Another possibility (probably not to be addressed here) is a minimum ratio between width/height, perhaps 10%.  A long but nearly no height line should not be massively disadvantaged relevancy-wise to an equivalently long diagonal road that has a square bbox.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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