Skip to content

PFGeoPoint - index is not created automatically #4813

Closed
@ranhsd

Description

@ranhsd

Hi, As much as I know PFGeoPoint field should be auto indexed by parse but it doesn't seems to work now. I don't know if it is a bug in the latest version (2.8.2).

For this project I am using MLAB as my database. My model looks like the following:

public class TFLocation : PFObject {
    @NSManaged public var zipCode : String
    @NSManaged public var location : PFGeoPoint?
}

And I see that the class was created with the coordinates values in the dashboard

screen shot 2018-06-07 at 12 33 44

When I am trying to run a nearby query I am getting the following error log (on the server side)

screen shot 2018-06-07 at 12 34 49

I go and check my database in mLab and found that the index was not auto created

screen shot 2018-06-07 at 12 35 35

This is the first time I face such issue in parse.

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions