Skip to content

Instantly share code, notes, and snippets.

@gadamc
Created June 13, 2013 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gadamc/5776308 to your computer and use it in GitHub Desktop.
Save gadamc/5776308 to your computer and use it in GitHub Desktop.
I called this design doc == geonames, view == nopoliticalinfo
function(doc){
if(doc.text && !doc.countryName && !doc.adminName1 && doc.geo && typeof doc["geo"]["coordinates"][0] === 'number' && typeof doc["geo"]["coordinates"][1] === 'number')
emit( doc._id, 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment