<     May 2017     >
Su Mo Tu We Th Fr Sa  
    1  2  3  4  5  6  
 7  8  9 10 11 12 13  
14 15 16 17 18 19 20  
21 22 23 24 25 26 27  
28 29 30 31
00:04 mylord joined
00:25 mylord joined
00:26 orbyt_ joined
00:47 Gwayne joined
00:47 Gwayne joined
00:49 mylord joined
00:49 nikitosiusis joined
00:53 edrocks joined
01:20 TheFuzzball joined
02:26 michaeldgagnon joined
02:30 mylord joined
02:38 cev joined
02:38 mdorenka joined
02:42 mikea joined
02:42 <mikea> how do I query with $elemMatch finding values for any key
02:42 <mikea> like
02:43 <mikea> my document is like { hwaddrs: { "eth0": "foo", "eth1": "bar" }}
02:44 <mikea> and I just want to return documents that have a X value in any key under hwaddrs
02:50 <mikea> anyone?
02:51 <joannac> You need to know what your keys are. Sounds like they should either be values, or you should have an array of values
02:51 <mikea> The couchbase query I'm trying to replicate is "select foo from bar where any obj in object_values(inventory.hwaddr_interfaces) satisfies obj == stuff end"
02:51 <joannac> (and ignore the keys)
02:51 <mikea> the problem is the keys are the interface names
02:51 <mikea> and the values are the mac addresses
02:52 <mikea> and I'm trying to select a system by mac address, regardless of which interface the address is actually on
02:56 <mikea> https://jira.mongodb.org/browse/SERVER-267
02:56 <mikea> looks like it might not be possible
03:03 <mikea> db.systems.find({ hwaddr_interfaces: { $any: { $eq: "02:42:ac:12:00:04" } } })
03:04 <mikea> that's what I'm looking for
03:27 <mikea> is there any way I can use javascript to do this inside the db?
03:43 <mikea> ended up fixing it by storing the hwaddrs as a list
03:43 <mikea> if inventory['grains']['hwaddr_interfaces']:
03:43 <mikea> inventory['grains']['hwaddrs'] = inventory['grains']['hwaddr_interfaces'].values()
03:58 mylord joined
04:05 sunny joined
04:21 soosfarm joined
04:29 mylord joined
04:44 svm_invictvs joined
04:57 edrocks joined
05:09 lpin joined
05:19 Mia joined
05:19 Mia joined
05:40 ngmvit joined
05:41 sergeyt joined
06:48 Mia joined
06:48 Mia joined
06:48 Folkol joined
06:57 sergeyt joined
06:59 kyuwonchoi joined
07:02 Lujeni joined
07:04 rendar joined
07:09 jri joined
07:18 sergeyt joined
07:24 jri_ joined
07:28 Siegfried joined
07:29 mylord joined
07:33 jri joined
07:41 jri_ joined
07:43 preludedrew joined
07:43 jri__ joined
07:44 jri joined
07:46 okapi joined
07:48 Ronen joined
07:55 verwilst joined
07:58 edrocks joined
08:00 Guest12591 joined
08:20 jri joined
08:40 undertuga joined
08:46 strugee joined
08:48 klics joined
08:50 sz0 joined
09:08 basiclaser joined
09:19 Tug_ joined
09:26 Folkol joined
09:48 samwierema joined
10:01 edrocks joined
11:05 SWAT joined
11:08 okapi joined
12:03 edrocks joined
12:03 kexmex joined
12:04 Folkol joined
12:11 kvsn joined
12:17 Waheedi joined
12:19 kvsn joined
12:23 StephenLynx joined
12:23 <kvsn> Hi guys, I'm connecting to a mongo cluster with pymongo via an ssh tunnel. Now, during setup of the connection, the host discovery mechanism does not take the tunnel into account, it tries to connect directly to the machines which fails. Any hints on how to solve this properly? Is there a way to disable the host discovery mechanism?
12:26 <kvsn> I only have the problem when I connect to a cluster, a single machine in the mongourl won't trigger the discovery. However, I'd like to be able to do writes as well, and since it's a clustered setup I'd have to connect to the primary, which can change after a while.
12:41 nettoweb__ joined
12:48 kexmex joined
12:53 artok joined
12:57 ssarah joined
12:58 freefrags joined
13:01 fels joined
13:03 ramortegui joined
13:05 <freefrags> Hi all could someone please point me in the right direction im trying to create a view with the C# driver but i cant figure out how. anyone have a simple example?
13:06 <freefrags> i wanted to add a simple lookup and create a new view
13:42 shackra joined
13:53 okapi joined
14:00 geoffb joined
14:05 cev joined
14:24 TheFuzzball joined
14:35 <jeffreylevesque_> is there anything bad with - https://bpaste.net/show/4916d1dbbcb6
14:36 YoY joined
14:40 <ngmvit> is there any option to carry out distributed transactions?
14:41 Muntaner joined
14:42 sergeyt joined
14:43 <Muntaner> hello to everyone, I'm pretty new to mongo and need some help with a query. My documents have an array, called "informations". Each entry of this array is an object with two items: {info: 'something', value: 'something'}
14:44 <Muntaner> I'd like to query for partial string matching on the "value" item of the information items
15:04 edrocks joined
15:06 hays joined
15:11 sergeyt joined
15:15 kexmex joined
15:18 okapi joined
15:22 yeitijem joined
15:32 timg__ joined
15:53 orbyt_ joined
15:59 the_voice_ joined
16:03 okapi joined
16:12 nettoweb__ joined
16:17 nettoweb__ joined
16:29 nettoweb__ joined
16:32 strugee joined
16:55 jri joined
17:07 edrocks joined
17:08 SpeakerToMeat joined
17:17 samwierema joined
17:18 svm_invictvs joined
17:21 nettoweb__ joined
17:27 TheFuzzball joined
17:33 hays joined
17:38 re1 joined
17:43 timg__ joined
17:49 timg___ joined
18:00 mylord joined
18:12 N3[2D joined
18:17 <N3[2D> I'm running into a "TypeError: schematype.castForQuery is not a function" when using findOne. I've searched stackoverflow and other places couldn't find a proper solution. Code can be found at: https://pastebin.com/S7XeAruv if anyone can point me in the direction of the issue that may cause it or a solution
18:23 TheFuzzball joined
18:24 tianon joined
18:50 mylord joined
18:58 <N3[2D> has anyone else run into that?
19:07 gentunian joined
19:10 <N3[2D> I'm not finding any valid responses as to what could be causing this issue :\
19:27 tianon joined
19:28 nettoweb__ joined
19:36 rendar joined
19:36 rendar joined
19:43 artok joined
19:53 redondos joined
20:02 mylord joined
20:31 michaeldgagnon joined
20:32 tianon joined
20:38 mylord joined
20:40 nettoweb__ joined
20:52 okapi joined
20:52 michaeldgagnon joined
21:05 orbyt_ joined
21:17 mylord joined
21:22 nettoweb__ joined
21:32 armyriad joined
21:32 StephenLynx joined
21:34 orbyt_ joined
22:00 mylord joined
22:10 edrocks joined
22:17 Waheedi joined
22:25 <N3[2D> anyone around?
22:33 TheFuzzball joined
22:41 Siegfried joined
23:25 kexmex joined
23:26 jri joined
23:51 TheFuzzball joined