Created
June 13, 2013 18:49
-
-
Save gadamc/5776308 to your computer and use it in GitHub Desktop.
I called this design doc == geonames, view == nopoliticalinfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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