GeoShapeMapper extends SingleColumnMapper<String> { @Override public SortField sortField(String name, boolean reverse) { throw new IndexException("GeoShape mapper '{}' does not support simple sorting", name); } GeoShapeMapper(String field,
                          String column,
                          Boolean validated,
                          Integer maxLevels,
                          List<GeoTransformation> transformations); @Override List<IndexableField> indexableFields(String name, String value); @Override SortField sortField(String name, boolean reverse); @Override String toString(); static final int DEFAULT_MAX_LEVELS; final String column; final int maxLevels; final CompositeSpatialStrategy strategy; final List<GeoTransformation> transformations; }
@Test(expected = IndexException.class) public void testSortField() { GeoShapeMapper mapper = geoShapeMapper().column("column").maxLevels(10).build("field"); mapper.sortField("field", false); }