I see the confusion now. What I did was this:
db.createCollection("test"); { "ok" : 1 } db.getCollection("test").insert({"some.key": 1}); Mon Jan 3 15:10:09 uncaught exception: can't have . in field names [some.key]
This was discussed (and resolved under the following bug): http://jira.mongodb.org/browse/SERVER-1988 It was actually a bug that you could insert keys that contained a dot, and it now errors on it as of Dec 17th 2010. On Mon, Jan 3, 2011 at 3:38 PM, Gergely Nagy <algernon@balabit.hu> wrote:
On Mon, 2011-01-03 at 22:28 +0100, Gergely Nagy wrote:
On Mon, 2011-01-03 at 15:14 -0600, Martin Holste wrote:
Great idea to have a dedicated, user-configurable sub-key. One suggestion: I think that key names cannot contain dots in Mongo.
They can. Database names can't contain dots, but collection and key names can contain pretty much anything.
Actually, nevermind that. It appears mongodb will happily store key names with dots, but we can't query them.
I'll see what I can do: will probably go with splitting into sub-documents.
-- |8]
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html