Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7170

move BaseGeoPointTestCase to test-framework

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.1, 7.0
    • None
    • None
    • New

    Description

      This abstract test class has hooks for basic operations:

        protected abstract void addPointToDoc(String field, Document doc, double lat, double lon);
      
        protected abstract Query newRectQuery(String field, double minLat, double maxLat, double minLon, double maxLon);
      
        protected abstract Query newDistanceQuery(String field, double centerLat, double centerLon, double radiusMeters);
      
        protected abstract Query newPolygonQuery(String field, Polygon... polygon);
      

      and hooks for quantization (quantizeLat/quantizeLon) so it can demand exact answers.

      We currently have 3 subclasses, one is in the sandbox. I don't think the sandbox/ should have to depend on spatial/ just for this base test class, and having it in test-framework is a better place.

      Attachments

        1. LUCENE-7170.patch
          114 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: