File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1259,7 +1259,7 @@ document as generated by the query.
1259
1259
## Geo data modeling
1260
1260
1261
1261
To demonstrate Geospatial queries we create a new entity class ` Location ` with a field ` location ` of type ` org.springframework.data.geo.Point ` . We
1262
- also have to create a geo index on this field. We can do so by annotating the field with ` @GeoIndexed ` . As you probably
1262
+ also have to create a geo index on this field. We can do so by annotating the field with ` @GeoIndexed(geoJson = true) ` . As you probably
1263
1263
remember we have already used an index in our ` Character ` class, but we annotated the type and not the affected fields.
1264
1264
Spring Data ArangoDB offers two ways of defining an index. With ` @<IndexType>Indexed ` annotations indexes for single
1265
1265
fields can be defined. If the index should include multiple fields the ` @<IndexType>Index ` annotations can be used on
@@ -1284,7 +1284,7 @@ public class Location {
1284
1284
@Id
1285
1285
private String id;
1286
1286
private final String name;
1287
- @GeoIndexed
1287
+ @GeoIndexed ( geoJson = true )
1288
1288
private final Point location;
1289
1289
1290
1290
public Location (final String name , final Point location ) {
You can’t perform that action at this time.
0 commit comments