GeoPointMapper extends MultipleColumnMapper { @Override public SortField sortField(String name, boolean reverse) { throw new IndexException("GeoPoint mapper '{}' does not support simple sorting", name); } GeoPointMapper(String field, Boolean validated, String latitude, String longitude, Integer maxLevels); @Override List<IndexableField> indexableFields(Columns columns); @Override SortField sortField(String name, boolean reverse); @Override String toString(); static final int DEFAULT_MAX_LEVELS; final String latitude; final String longitude; final int maxLevels; final CompositeSpatialStrategy strategy; }
@Test(expected = IndexException.class) public void testSortField() { GeoPointMapper mapper = geoPointMapper("lat", "lon").build("field"); mapper.sortField("field", false); }