Results 1 to 4 of 4

Thread: MongoDB, is possible set GeospatialIndex in model?

  1. #1
    Join Date
    Feb 2012
    Location
    vercelli
    Posts
    7

    Default MongoDB, is possible set GeospatialIndex in model?

    In Spring Data MongoDB is possible set GeospatialIndex in model?

    example:

    @Document
    public class User implements Base {

    @Id
    private String id;
    private String firstname;
    private String lastname;
    @GeospatialIndex ???????????
    private double[] locationPoint;
    }

    tnx!

  2. #2
    Join Date
    May 2011
    Location
    Madrid (Spain)
    Posts
    101

  3. #3
    Join Date
    Feb 2012
    Location
    vercelli
    Posts
    7

    Default

    hello,
    sorry I said bad
    I would like to know if I can define an index with Geospatial @annotation in the model
    as is done with the indexes on the individual field (see annotation @index)
    Thank you

    es:

    @Index
    private String name;
    @GeospatialIndex (exist this?)
    private double[] location

  4. #4
    Join Date
    Feb 2012
    Location
    vercelli
    Posts
    7

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •