I am using mongoostastic package in node js.

My Schema is :

    homeTownAddress:
          {
            address: {type:String,default:""},
            loc2: {
                type: { type: String, default: "Point",es_type:"nested"},
                coordinates: {
                    type: [Number, Number],
                    default: [0, 0],
                    index: '2dsphere',
                    es_type: 'geo_point'
                }

            }

        }

Any help on this , will be great help for me.

0

There are 0 best solutions below