tidwall / tile38

Real-time Geospatial and Geofencing
https://tile38.com
MIT License
9.15k stars 570 forks source link

NOFIELDS doesn't seem to work #75

Closed Yugloocamai closed 8 years ago

Yugloocamai commented 8 years ago

Using tip of master, passing NOFIELDS has no effect. It always returns all fields.

"SCAN [key] NOFIELDS" returns complete json objects

"NEARBY [key] NOFIELDS POINT 34.018161 -118.278846 10000" also returns complete objects

Perhaps I'm misunderstanding what NOFIELDS is intended to do, but adding or removing NOFIELDS does not change the response payload in any way.

tidwall commented 8 years ago

Hi @Yugloocamai,

The NOFIELDS keyword only works with the fields that where defined using FSET or FIELD.

Perhaps the IDS keyword is what you are looking for:

SCAN key IDS
NEARBY key IDS POINT 34.018161 -118.278846 10000

Which returns only the object IDs, the objects are omitted.

tidwall commented 8 years ago

@Yugloocamai Let me know if you need further help and thank for your interest in Tile38.