don't use DirectPostingsFormat for Legacy geopoint tests: it just uses tons of RAM

This commit is contained in:
Robert Muir 2016-04-18 08:51:41 -04:00
parent c57db02580
commit 730a04723f
1 changed files with 2 additions and 0 deletions

View File

@ -24,12 +24,14 @@ import org.apache.lucene.geo.Polygon;
import org.apache.lucene.geo.Rectangle; import org.apache.lucene.geo.Rectangle;
import org.apache.lucene.spatial.geopoint.document.GeoPointField; import org.apache.lucene.spatial.geopoint.document.GeoPointField;
import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding; import org.apache.lucene.spatial.geopoint.document.GeoPointField.TermEncoding;
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
/** /**
* random testing for GeoPoint query logic (with deprecated numeric encoding) * random testing for GeoPoint query logic (with deprecated numeric encoding)
* @deprecated remove this when TermEncoding.NUMERIC is removed * @deprecated remove this when TermEncoding.NUMERIC is removed
*/ */
@Deprecated @Deprecated
@SuppressCodecs("Direct") // can easily create too many postings and blow direct sky high
public class TestLegacyGeoPointQuery extends BaseGeoPointTestCase { public class TestLegacyGeoPointQuery extends BaseGeoPointTestCase {
@Override @Override