@@ -57,6 +57,35 @@ We are only examining the last document here ("limit = 1"). It belongs to Genevi
...
@@ -57,6 +57,35 @@ We are only examining the last document here ("limit = 1"). It belongs to Genevi
But how can totalOccurrences still reach 4? "limit" specifies how many documents to search for keys. Then, the tool calculates totalOccurrences and percentContaining from _all_ the collection's documents, even those outside the "limit". This tradeoff is meant to give the most bang for our buck, when using "limit" and learning about a collection.
But how can totalOccurrences still reach 4? "limit" specifies how many documents to search for keys. Then, the tool calculates totalOccurrences and percentContaining from _all_ the collection's documents, even those outside the "limit". This tradeoff is meant to give the most bang for our buck, when using "limit" and learning about a collection.
### Analyze Documents to a Maximum Depth
Perhaps you have a potentially very deep nested object structure, and you don't want to see more than a few levels deep in the analysis.
One can apply a "maxDepth" constraint, which limits the depth variety will recursively search to find new objects.
throw"You have to supply a 'collection' variable, à la --eval 'var collection = \"animals\"'. Please see https://github.com/JamesCropcho/variety for details.";
throw"You have to supply a 'collection' variable, à la --eval 'var collection = \"animals\"'.\n"+
"Possible collection options for database specified: "+collNames+".\n"+
"Please see https://github.com/JamesCropcho/variety for details.";
}
if(db[collection].count()==0){
throw"The collection specified ("+collection+") in the database specified ("+db+") does not exist or is empty.\n"+
"Possible collection options for database specified: "+collNames+".";