Skip to content

Commit ebe43f0

Browse files
committed
docs upd
1 parent 337dc20 commit ebe43f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ document as generated by the query.
12591259
## Geo data modeling
12601260

12611261
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
12631263
remember we have already used an index in our `Character` class, but we annotated the type and not the affected fields.
12641264
Spring Data ArangoDB offers two ways of defining an index. With `@<IndexType>Indexed` annotations indexes for single
12651265
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 {
12841284
@Id
12851285
private String id;
12861286
private final String name;
1287-
@GeoIndexed
1287+
@GeoIndexed(geoJson = true)
12881288
private final Point location;
12891289

12901290
public Location(final String name, final Point location) {

0 commit comments

Comments
 (0)