locomotivecms-search 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmExZjQ0NWRjNWMyOGI3MjAzNTA2Y2RmOGM0ZDVmMmY5NjZkYTBjYw==
4
+ MTM5NjIxNTVlMDUzZjdjMDFkMDg5NTU2OGE2M2E3OTNjZjA2ZWFiYQ==
5
5
  data.tar.gz: !binary |-
6
- M2E5YjEzNDJhZjE5MjBjNzYxZjIyZGM3OGIzY2I2ODc1NWZjZGYwZg==
6
+ NTg3MjkwNjFhMDQ0NWIzYmJlZDVmYWVhY2Q1OTVmOGRlYzcwMTcyMA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MmIxODE3MWIzOTI4Y2NkNzc5M2RjMmQ5ZjQ5MDQ2ZjA4ZjRlYjZjNDUyMDlj
10
- MzIxOGNlNzY2NzY5YmFmODY4ODJkYzNkNzE2OGMzYjRmNjAzNGJlMmJiZTA2
11
- YWUxMjEyNWE2OWJjMDMzMTc4NjRkMjIzZjYxNGJjYzY0MzkwMmU=
9
+ ZWIwZGIzMmNjZTNlYmFlODUwMWFmMDMyZTg1YjcyMGE3MGRmZjhjMTBmZjg0
10
+ MTBkNjg2ZDgxYmI5NGE2NTBjZWI0ZjU1ZmJlY2YzOTE0Nzc0MmVjZTVlMWYw
11
+ YjcwY2VkMmYyNTY1YWQzYTJhYTVkZTcxYzA0NmRmZDAxNzVhMTA=
12
12
  data.tar.gz: !binary |-
13
- YjMwODY1YTMyNzVlOGE3MjYxZjhhZGFiZmM5NGJkMzgxMmQ5MjVlOTcyZmJk
14
- MDRlYTBiOTlmYjU0ZjQzZjkzMWZlNGM0Mjc1NmE3ZGVjNDc3MDgyMTZiMGUw
15
- M2UyZjIwZDdjMzU4MTZlYWY2ODgyZGViYmE3MDE3YmI3NTM4NTI=
13
+ ODYyMmE1NTBkMmExODk1ZmI4MTRhZTUzNWRlMTI5YWE0YWVmMjQyZWIxMDQz
14
+ OWQ0NDQ4YzEwZGY2NDc0Mjk5NjRiMmU4MzFlOTc3NTU1MzMzOTEyOGRhNmUx
15
+ Mjg5ZjA3OTkxZDMyOTNmMTMxZmUzYTY4ZjdiOTJhYWVkZDAyMTg=
@@ -13,4 +13,12 @@ Locomotive::ContentEntry.class_eval do
13
13
  def content_type_slug
14
14
  content_type.slug
15
15
  end
16
+
17
+ def indexable_id
18
+ if respond_to?(:site_id)
19
+ "site_#{site_id}_#{content_type_slug}_#{id}"
20
+ else
21
+ "#{content_type_slug}_#{id}"
22
+ end
23
+ end
16
24
  end
@@ -4,4 +4,12 @@ Locomotive::Page.class_eval do
4
4
  include Locomotive::Search::Extension
5
5
 
6
6
  search_by [:title, store: [:title, :slug, :site_id]], unless: :not_found?
7
+
8
+ def indexable_id
9
+ if respond_to?(:site_id)
10
+ "site_#{site_id}_page_#{id}"
11
+ else
12
+ "page_#{id}"
13
+ end
14
+ end
7
15
  end
@@ -1,5 +1,5 @@
1
1
  module Locomotive
2
2
  module Search
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -65,5 +65,5 @@ Locomotive.configure do |config|
65
65
  # config.rack_cache = false
66
66
  #
67
67
  # Note: by default, rack/cache is disabled in the Heroku platform
68
- config.search_engine = :mongoid
68
+ Locomotive.config.search_engine = SEARCH_ENGINE
69
69
  end
@@ -8228,3 +8228,1100 @@ MONGODB locomotive_search_test['system.namespaces'].find({})
8228
8228
  MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
8229
8229
  MONGODB locomotive_search_test['system.namespaces'].find({})
8230
8230
  MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
8231
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8232
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8233
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8234
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1)
8235
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8236
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8237
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8238
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8239
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8240
+ Creating scope :root. Overwriting existing method Locomotive::Page.root.
8241
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8242
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8243
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8244
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8245
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_accounts"}).limit(-1)
8246
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8247
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_accounts", "query"=>{:email=>"admin@locomotiveapp.org"}, "fields"=>nil}).limit(-1)
8248
+ MONGODB locomotive_search_test['locomotive_accounts'].insert([{"locale"=>"en", "_id"=>BSON::ObjectId('517651fbc82cd1f480000002'), "name"=>"Admin", "email"=>"admin@locomotiveapp.org", "password_salt"=>"KDDxeomPQyCuZ9V89s6b", "encrypted_password"=>"7b1ec9ba1ab2dc916dde2af151f4d1c0d20d594a", "updated_at"=>2013-04-23 09:18:51 UTC, "created_at"=>2013-04-23 09:18:51 UTC}])
8249
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8250
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_sites"}).limit(-1)
8251
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test"}, "fields"=>nil}).limit(-1)
8252
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test.example.com"], "_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-04-23 09:18:51 UTC, "updated_at"=>2013-04-23 09:18:51 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('517651fbc82cd1f480000003'), "account_id"=>BSON::ObjectId('517651fbc82cd1f480000002')}]}])
8253
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8254
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_pages"}).limit(-1)
8255
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8256
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000004')}}, {:_id=>1}).limit(-1)
8257
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('517651fcc82cd1f480000004'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "serialized_template"=>{"en"=><BSON::Binary:70130024578080>}, "updated_at"=>2013-04-23 09:18:52 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 09:18:52 UTC}])
8258
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('517651fcc82cd1f480000004')}).sort([[:position, :asc]])
8259
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000004')]}}).sort([[:position, :asc]])
8260
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000004')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8261
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8262
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"active_search_mongoid_models"}).limit(-1)
8263
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('517651fcc82cd1f480000004')}).limit(-1).sort([[:_id, :asc]])
8264
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>BSON::ObjectId('517651fbc82cd1f480000001')}, "_id"=>BSON::ObjectId('517651fcc82cd1f480000005'), "_original_type"=>"Locomotive::Page", "_original_id"=>BSON::ObjectId('517651fcc82cd1f480000004'), "_keywords"=>["en:home", "en:page"]}])
8265
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8266
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000006')}}, {:_id=>1}).limit(-1)
8267
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000006')}}).sort([[:position, :asc]])
8268
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70130031029700 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000006')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70130031028980 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8269
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('517651fcc82cd1f480000006'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "serialized_template"=>{"en"=><BSON::Binary:70130023611360>}, "updated_at"=>2013-04-23 09:18:52 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 09:18:52 UTC}])
8270
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000006')]}}).sort([[:position, :asc]])
8271
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('517651fcc82cd1f480000006')}).sort([[:position, :asc]])
8272
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000006')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8273
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('517651fbc82cd1f480000001')}, "fields"=>nil}).limit(-1)
8274
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('517651fcc82cd1f480000007'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "serialized_item_template"=><BSON::Binary:70130023110000>, "slug"=>"examples", "updated_at"=>2013-04-23 09:18:52 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('517651fcc82cd1f480000008'), "created_at"=>2013-04-23 09:18:52 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('517651fcc82cd1f480000008'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 09:18:52 UTC, "created_at"=>2013-04-23 09:18:52 UTC}]}])
8275
+ MONGODB locomotive_search_test['locomotive_content_types'].update({"_id"=>BSON::ObjectId('517651fcc82cd1f480000007')}, {"$push"=>{"entries_custom_fields"=>{"text_formatting"=>"html", "position"=>0, "required"=>false, "localized"=>false, "ui_enabled"=>true, "searchable"=>false, "_id"=>BSON::ObjectId('517651fcc82cd1f480000009'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Stuff", "type"=>"text", "name"=>"stuff", "updated_at"=>2013-04-23 09:18:52 UTC, "created_at"=>2013-04-23 09:18:52 UTC}}})
8276
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8277
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_entries"}).limit(-1)
8278
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f48000000a')}, :_slug=>"findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry517651fcc82cd1f480000007"]}})
8279
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"findable-entry", :content_type_id=>BSON::ObjectId('517651fcc82cd1f480000007')}, "fields"=>nil}).limit(-1)
8280
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70130031510240 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry517651fcc82cd1f480000007"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70130031509980 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8281
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('517651fcc82cd1f48000000a'), "_type"=>"Locomotive::ContentEntry517651fcc82cd1f480000007", "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry517651fcc82cd1f480000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('517651fcc82cd1f480000007'), "_slug"=>"findable-entry", "updated_at"=>2013-04-23 09:18:52 UTC, "site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 09:18:52 UTC}])
8282
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::ContentEntry517651fcc82cd1f480000007", :_original_id=>BSON::ObjectId('517651fcc82cd1f48000000a')}).limit(-1).sort([[:_id, :asc]])
8283
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :content_type_slug=>"examples"}, "_id"=>BSON::ObjectId('517651fcc82cd1f48000000b'), "_original_type"=>"Locomotive::ContentEntry517651fcc82cd1f480000007", "_original_id"=>BSON::ObjectId('517651fcc82cd1f48000000a'), "_keywords"=>["findable", "entry"]}])
8284
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f48000000c')}, :_slug=>"hidden", :_type=>{"$in"=>["Locomotive::ContentEntry517651fcc82cd1f480000007"]}})
8285
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"hidden", :content_type_id=>BSON::ObjectId('517651fcc82cd1f480000007')}, "fields"=>nil}).limit(-1)
8286
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70130031300180 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry517651fcc82cd1f480000007"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70130031299920 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8287
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>2, "_visible"=>true, "_id"=>BSON::ObjectId('517651fcc82cd1f48000000c'), "_type"=>"Locomotive::ContentEntry517651fcc82cd1f480000007", "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry517651fcc82cd1f480000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('517651fcc82cd1f480000007'), "_slug"=>"hidden", "updated_at"=>2013-04-23 09:18:52 UTC, "site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 09:18:52 UTC}])
8288
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::ContentEntry517651fcc82cd1f480000007", :_original_id=>BSON::ObjectId('517651fcc82cd1f48000000c')}).limit(-1).sort([[:_id, :asc]])
8289
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :content_type_slug=>"examples"}, "_id"=>BSON::ObjectId('517651fcc82cd1f48000000d'), "_original_type"=>"Locomotive::ContentEntry517651fcc82cd1f480000007", "_original_id"=>BSON::ObjectId('517651fcc82cd1f48000000c'), "_keywords"=>["hidden"]}])
8290
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8291
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"findable", :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :parent_id=>BSON::ObjectId('517651fcc82cd1f480000004')}, "fields"=>nil}).limit(-1)
8292
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('517651fcc82cd1f480000004'), :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f48000000e')}}, {:_id=>1}).limit(-1)
8293
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000004')]}})
8294
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('517651fcc82cd1f480000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('517651fcc82cd1f48000000e'), "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "parent_id"=>BSON::ObjectId('517651fcc82cd1f480000004'), "serialized_template"=>{"en"=><BSON::Binary:70130003131760>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 09:18:52 UTC, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "created_at"=>2013-04-23 09:18:52 UTC}])
8295
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f48000000e')]}}).sort([[:position, :asc]])
8296
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('517651fcc82cd1f48000000e')}).sort([[:position, :asc]])
8297
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f48000000e')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8298
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('517651fcc82cd1f48000000e')}).limit(-1).sort([[:_id, :asc]])
8299
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>BSON::ObjectId('517651fbc82cd1f480000001')}, "_id"=>BSON::ObjectId('517651fcc82cd1f48000000f'), "_original_type"=>"Locomotive::Page", "_original_id"=>BSON::ObjectId('517651fcc82cd1f48000000e'), "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}])
8300
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8301
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"search", :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :parent_id=>BSON::ObjectId('517651fcc82cd1f480000004')}, "fields"=>nil}).limit(-1)
8302
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('517651fcc82cd1f480000004'), :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000010')}}, {:_id=>1}).limit(-1)
8303
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('517651fcc82cd1f480000004'), :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000010')}}).sort([[:position, :asc]])
8304
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70130053361060 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>BSON::ObjectId('517651fcc82cd1f480000004'), :site_id=>BSON::ObjectId('517651fbc82cd1f480000001'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000010')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70130053360800 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8305
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000004')]}})
8306
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('517651fcc82cd1f480000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('517651fcc82cd1f480000010'), "raw_template"=>{"en"=>" <ul>\n {% for result in site.search %}\n {% if result.content_type_slug == 'examples' %}\n <li><a href=\"/examples/{{result._slug}}\">{{ result.name }}</a></li>\n {% else %}\n <li><a href=\"/{{result.slug}}\">{{ result.title }}</a></li>\n {% endif %}\n {% endfor %}\n </ul>\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "parent_id"=>BSON::ObjectId('517651fcc82cd1f480000004'), "serialized_template"=>{"en"=><BSON::Binary:70130004313520>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 09:18:52 UTC, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "created_at"=>2013-04-23 09:18:52 UTC}])
8307
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000010')]}}).sort([[:position, :asc]])
8308
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('517651fcc82cd1f480000010')}).sort([[:position, :asc]])
8309
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000010')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8310
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('517651fcc82cd1f480000010')}).limit(-1).sort([[:_id, :asc]])
8311
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>BSON::ObjectId('517651fbc82cd1f480000001')}, "_id"=>BSON::ObjectId('517651fcc82cd1f480000011'), "_original_type"=>"Locomotive::Page", "_original_id"=>BSON::ObjectId('517651fcc82cd1f480000010'), "_keywords"=>["en:search"]}])
8312
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8313
+ MONGODB locomotive_search_test['locomotive_sites'].find({:_id=>BSON::ObjectId('517651fbc82cd1f480000001')}).limit(-1).sort([[:_id, :asc]])
8314
+ MONGODB locomotive_search_test['locomotive_pages'].update({"_id"=>BSON::ObjectId('517651fcc82cd1f480000004')}, {"$set"=>{"raw_template"=>{"en"=>"\n <form action=\"/{{ locale }}/search\" method=\"GET\">\n <label for=\"search\">Search</label>\n <input type=\"text\" name=\"search\" id=\"search\">\n <input type=\"submit\" value=\"Search\">\n </form>"}, "serialized_template"=>{"en"=><BSON::Binary:70130017026600>}}})
8315
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000004')]}}).sort([[:position, :asc]])
8316
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('517651fcc82cd1f480000004')}).limit(-1).sort([[:_id, :asc]])
8317
+ MONGODB locomotive_search_test['active_search_mongoid_models'].update({"_id"=>BSON::ObjectId('517651fcc82cd1f480000005')}, {"$set"=>{"_stored"=>{"title"=>{"en"=>"Home page"}, "slug"=>{"en"=>"index"}, "site_id"=>BSON::ObjectId('517651fbc82cd1f480000001')}}})
8318
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8319
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test2"}, "fields"=>nil}).limit(-1)
8320
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test2.example.com"], "_id"=>BSON::ObjectId('517651fcc82cd1f480000012'), "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-04-23 09:18:51 UTC, "updated_at"=>2013-04-23 09:18:52 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('517651fcc82cd1f480000013'), "account_id"=>BSON::ObjectId('517651fbc82cd1f480000002')}]}])
8321
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('517651fcc82cd1f480000012'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8322
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('517651fcc82cd1f480000012'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000014')}}, {:_id=>1}).limit(-1)
8323
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('517651fcc82cd1f480000014'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('517651fcc82cd1f480000012'), "serialized_template"=>{"en"=><BSON::Binary:70130054188240>}, "updated_at"=>2013-04-23 09:18:52 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 09:18:52 UTC}])
8324
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fcc82cd1f480000012'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000014')]}}).sort([[:position, :asc]])
8325
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('517651fcc82cd1f480000014')}).sort([[:position, :asc]])
8326
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000014')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8327
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('517651fcc82cd1f480000014')}).limit(-1).sort([[:_id, :asc]])
8328
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>BSON::ObjectId('517651fcc82cd1f480000012')}, "_id"=>BSON::ObjectId('517651fcc82cd1f480000015'), "_original_type"=>"Locomotive::Page", "_original_id"=>BSON::ObjectId('517651fcc82cd1f480000014'), "_keywords"=>["en:home", "en:page"]}])
8329
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('517651fcc82cd1f480000012'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8330
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('517651fcc82cd1f480000012'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000016')}}, {:_id=>1}).limit(-1)
8331
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('517651fcc82cd1f480000012'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000016')}}).sort([[:position, :asc]])
8332
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70130003328520 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('517651fcc82cd1f480000012'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000016')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70130003328260 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8333
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('517651fcc82cd1f480000016'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('517651fcc82cd1f480000012'), "serialized_template"=>{"en"=><BSON::Binary:70130051900520>}, "updated_at"=>2013-04-23 09:18:52 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 09:18:52 UTC}])
8334
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fcc82cd1f480000012'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000016')]}}).sort([[:position, :asc]])
8335
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('517651fcc82cd1f480000016')}).sort([[:position, :asc]])
8336
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000016')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8337
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"rickroll", :site_id=>BSON::ObjectId('517651fcc82cd1f480000012'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8338
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('517651fcc82cd1f480000012'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000017')}}, {:_id=>1}).limit(-1)
8339
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('517651fcc82cd1f480000012'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000017')}}).sort([[:position, :asc]])
8340
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70130025061160 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('517651fcc82cd1f480000012'), :_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f480000017')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70130025060900 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8341
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[]}})
8342
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('517651fcc82cd1f480000017'), "raw_template"=>{"en"=>"Rickroll"}, "title"=>{"en"=>"This should never show up in the search, even if it would be findable"}, "slug"=>{"en"=>"rickroll"}, "site_id"=>BSON::ObjectId('517651fcc82cd1f480000012'), "serialized_template"=>{"en"=><BSON::Binary:70130031051160>}, "updated_at"=>2013-04-23 09:18:52 UTC, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "created_at"=>2013-04-23 09:18:52 UTC}])
8343
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fcc82cd1f480000012'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000017')]}}).sort([[:position, :asc]])
8344
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('517651fcc82cd1f480000017')}).sort([[:position, :asc]])
8345
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('517651fcc82cd1f480000017')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8346
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('517651fcc82cd1f480000017')}).limit(-1).sort([[:_id, :asc]])
8347
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>BSON::ObjectId('517651fcc82cd1f480000012')}, "_id"=>BSON::ObjectId('517651fcc82cd1f480000018'), "_original_type"=>"Locomotive::Page", "_original_id"=>BSON::ObjectId('517651fcc82cd1f480000017'), "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}])
8348
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('517651fcc82cd1f480000012')}, "fields"=>nil}).limit(-1)
8349
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('517651fcc82cd1f480000019'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('517651fcc82cd1f480000012'), "serialized_item_template"=><BSON::Binary:70130031076340>, "slug"=>"examples", "updated_at"=>2013-04-23 09:18:52 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('517651fcc82cd1f48000001a'), "created_at"=>2013-04-23 09:18:52 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('517651fcc82cd1f48000001a'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 09:18:52 UTC, "created_at"=>2013-04-23 09:18:52 UTC}]}])
8350
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('517651fcc82cd1f48000001b')}, :_slug=>"not-findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry517651fcc82cd1f480000019"]}})
8351
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"not-findable-entry", :content_type_id=>BSON::ObjectId('517651fcc82cd1f480000019')}, "fields"=>nil}).limit(-1)
8352
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70130024469880 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry517651fcc82cd1f480000019"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70130024469440 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8353
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('517651fcc82cd1f48000001b'), "_type"=>"Locomotive::ContentEntry517651fcc82cd1f480000019", "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry517651fcc82cd1f480000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('517651fcc82cd1f480000019'), "_slug"=>"not-findable-entry", "updated_at"=>2013-04-23 09:18:52 UTC, "site_id"=>BSON::ObjectId('517651fcc82cd1f480000012'), "_label_field_name"=>"name", "created_at"=>2013-04-23 09:18:52 UTC}])
8354
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::ContentEntry517651fcc82cd1f480000019", :_original_id=>BSON::ObjectId('517651fcc82cd1f48000001b')}).limit(-1).sort([[:_id, :asc]])
8355
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>BSON::ObjectId('517651fcc82cd1f480000012'), :content_type_slug=>"examples"}, "_id"=>BSON::ObjectId('517651fcc82cd1f48000001c'), "_original_type"=>"Locomotive::ContentEntry517651fcc82cd1f480000019", "_original_id"=>BSON::ObjectId('517651fcc82cd1f48000001b'), "_keywords"=>["not", "findable", "entry"]}])
8356
+ Started GET "/" for 127.0.0.1 at 2013-04-23 11:18:52 +0200
8357
+ Processing by Locomotive::Public::PagesController#show as HTML
8358
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8359
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8360
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), :depth=>0, "fullpath.en"=>{"$in"=>["index"]}}).sort([[:position, :asc]])
8361
+ Rendered text template (0.0ms)
8362
+ Completed 200 OK in 26ms (Views: 21.0ms)
8363
+ Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-04-23 11:18:52 +0200
8364
+ Processing by Locomotive::Public::PagesController#show as HTML
8365
+ Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"}
8366
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8367
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8368
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), :depth=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}).sort([[:position, :asc]])
8369
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({"_stored.site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), :_keywords=>{"$in"=>["findable", "en:findable"]}})
8370
+ Rendered text template (0.0ms)
8371
+ Completed 200 OK in 5ms (Views: 0.3ms)
8372
+ Started GET "/findable" for 127.0.0.1 at 2013-04-23 11:18:52 +0200
8373
+ Processing by Locomotive::Public::PagesController#show as HTML
8374
+ Parameters: {"path"=>"findable"}
8375
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8376
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8377
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), :depth=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}).sort([[:position, :asc]])
8378
+ Rendered text template (0.0ms)
8379
+ Completed 200 OK in 4ms (Views: 0.4ms)
8380
+ Started GET "/" for 127.0.0.1 at 2013-04-23 11:18:52 +0200
8381
+ Processing by Locomotive::Public::PagesController#show as HTML
8382
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8383
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8384
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), :depth=>0, "fullpath.en"=>{"$in"=>["index"]}}).sort([[:position, :asc]])
8385
+ Rendered text template (0.0ms)
8386
+ Completed 200 OK in 3ms (Views: 0.2ms)
8387
+ Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-04-23 11:18:52 +0200
8388
+ Processing by Locomotive::Public::PagesController#show as HTML
8389
+ Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"}
8390
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8391
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8392
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), :depth=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}).sort([[:position, :asc]])
8393
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({"_stored.site_id"=>BSON::ObjectId('517651fbc82cd1f480000001'), :_keywords=>{"$in"=>["not", "found", "en:not", "en:found"]}})
8394
+ Rendered text template (0.0ms)
8395
+ Completed 200 OK in 3ms (Views: 0.3ms)
8396
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8397
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8398
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_accounts"}).limit(-1)
8399
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8400
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
8401
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8402
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
8403
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8404
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"active_search_mongoid_models"}).limit(-1)
8405
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8406
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8407
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8408
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_entries"}).limit(-1)
8409
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8410
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8411
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8412
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1)
8413
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8414
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8415
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8416
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8417
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8418
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8419
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8420
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8421
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8422
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8423
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8424
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8425
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8426
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8427
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8428
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8429
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8430
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8431
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8432
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8433
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8434
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8435
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8436
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8437
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8438
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8439
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8440
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8441
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8442
+ Creating scope :root. Overwriting existing method Locomotive::Page.root.
8443
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8444
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8445
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8446
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8447
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_accounts"}).limit(-1)
8448
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8449
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_accounts", "query"=>{:email=>"admin@locomotiveapp.org"}, "fields"=>nil}).limit(-1)
8450
+ MONGODB locomotive_search_test['locomotive_accounts'].insert([{"locale"=>"en", "_id"=>BSON::ObjectId('51765a24c82cd1f688000002'), "name"=>"Admin", "email"=>"admin@locomotiveapp.org", "password_salt"=>"asksj6Wxpce2fAW8Cs5c", "encrypted_password"=>"64cfbbce38e5a138e5c1767f19c0632c302888b0", "updated_at"=>2013-04-23 09:53:41 UTC, "created_at"=>2013-04-23 09:53:41 UTC}])
8451
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8452
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_sites"}).limit(-1)
8453
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test"}, "fields"=>nil}).limit(-1)
8454
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test.example.com"], "_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-04-23 09:53:40 UTC, "updated_at"=>2013-04-23 09:53:41 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765a25c82cd1f688000003'), "account_id"=>BSON::ObjectId('51765a24c82cd1f688000002')}]}])
8455
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8456
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_pages"}).limit(-1)
8457
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8458
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000004')}}, {:_id=>1}).limit(-1)
8459
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765a25c82cd1f688000004'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "serialized_template"=>{"en"=><BSON::Binary:70266946903840>}, "updated_at"=>2013-04-23 09:53:41 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 09:53:41 UTC}])
8460
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765a25c82cd1f688000004')}).sort([[:position, :asc]])
8461
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000004')]}}).sort([[:position, :asc]])
8462
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000004')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8463
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8464
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"active_search_mongoid_models"}).limit(-1)
8465
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('51765a25c82cd1f688000004')}).limit(-1).sort([[:_id, :asc]])
8466
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>BSON::ObjectId('51765a24c82cd1f688000001')}, "_id"=>BSON::ObjectId('51765a25c82cd1f688000005'), "_original_type"=>"Locomotive::Page", "_original_id"=>BSON::ObjectId('51765a25c82cd1f688000004'), "_keywords"=>["en:home", "en:page"]}])
8467
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8468
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000006')}}, {:_id=>1}).limit(-1)
8469
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000006')}}).sort([[:position, :asc]])
8470
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70266954358460 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000006')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70266954358120 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8471
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765a25c82cd1f688000006'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "serialized_template"=>{"en"=><BSON::Binary:70266953708200>}, "updated_at"=>2013-04-23 09:53:41 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 09:53:41 UTC}])
8472
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000006')]}}).sort([[:position, :asc]])
8473
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765a25c82cd1f688000006')}).sort([[:position, :asc]])
8474
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000006')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8475
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('51765a24c82cd1f688000001')}, "fields"=>nil}).limit(-1)
8476
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('51765a25c82cd1f688000007'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "serialized_item_template"=><BSON::Binary:70266946127040>, "slug"=>"examples", "updated_at"=>2013-04-23 09:53:41 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('51765a25c82cd1f688000008'), "created_at"=>2013-04-23 09:53:41 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('51765a25c82cd1f688000008'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 09:53:41 UTC, "created_at"=>2013-04-23 09:53:41 UTC}]}])
8477
+ MONGODB locomotive_search_test['locomotive_content_types'].update({"_id"=>BSON::ObjectId('51765a25c82cd1f688000007')}, {"$push"=>{"entries_custom_fields"=>{"text_formatting"=>"html", "position"=>0, "required"=>false, "localized"=>false, "ui_enabled"=>true, "searchable"=>false, "_id"=>BSON::ObjectId('51765a25c82cd1f688000009'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Stuff", "type"=>"text", "name"=>"stuff", "updated_at"=>2013-04-23 09:53:41 UTC, "created_at"=>2013-04-23 09:53:41 UTC}}})
8478
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8479
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_entries"}).limit(-1)
8480
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f68800000a')}, :_slug=>"findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry51765a25c82cd1f688000007"]}})
8481
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"findable-entry", :content_type_id=>BSON::ObjectId('51765a25c82cd1f688000007')}, "fields"=>nil}).limit(-1)
8482
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70266932838420 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765a25c82cd1f688000007"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70266932838120 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8483
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('51765a25c82cd1f68800000a'), "_type"=>"Locomotive::ContentEntry51765a25c82cd1f688000007", "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51765a25c82cd1f688000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765a25c82cd1f688000007'), "_slug"=>"findable-entry", "updated_at"=>2013-04-23 09:53:41 UTC, "site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 09:53:41 UTC}])
8484
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::ContentEntry51765a25c82cd1f688000007", :_original_id=>BSON::ObjectId('51765a25c82cd1f68800000a')}).limit(-1).sort([[:_id, :asc]])
8485
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:_slug=>"findable-entry", "name"=>"Findable entry", :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :content_type_slug=>"examples"}, "_id"=>BSON::ObjectId('51765a25c82cd1f68800000b'), "_original_type"=>"Locomotive::ContentEntry51765a25c82cd1f688000007", "_original_id"=>BSON::ObjectId('51765a25c82cd1f68800000a'), "_keywords"=>["findable", "entry"]}])
8486
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f68800000c')}, :_slug=>"hidden", :_type=>{"$in"=>["Locomotive::ContentEntry51765a25c82cd1f688000007"]}})
8487
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"hidden", :content_type_id=>BSON::ObjectId('51765a25c82cd1f688000007')}, "fields"=>nil}).limit(-1)
8488
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70266933058860 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765a25c82cd1f688000007"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70266933058600 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8489
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>2, "_visible"=>true, "_id"=>BSON::ObjectId('51765a25c82cd1f68800000c'), "_type"=>"Locomotive::ContentEntry51765a25c82cd1f688000007", "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51765a25c82cd1f688000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765a25c82cd1f688000007'), "_slug"=>"hidden", "updated_at"=>2013-04-23 09:53:41 UTC, "site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 09:53:41 UTC}])
8490
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::ContentEntry51765a25c82cd1f688000007", :_original_id=>BSON::ObjectId('51765a25c82cd1f68800000c')}).limit(-1).sort([[:_id, :asc]])
8491
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:_slug=>"hidden", "name"=>"Hidden", :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :content_type_slug=>"examples"}, "_id"=>BSON::ObjectId('51765a25c82cd1f68800000d'), "_original_type"=>"Locomotive::ContentEntry51765a25c82cd1f688000007", "_original_id"=>BSON::ObjectId('51765a25c82cd1f68800000c'), "_keywords"=>["hidden"]}])
8492
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8493
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"findable", :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :parent_id=>BSON::ObjectId('51765a25c82cd1f688000004')}, "fields"=>nil}).limit(-1)
8494
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765a25c82cd1f688000004'), :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f68800000e')}}, {:_id=>1}).limit(-1)
8495
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000004')]}})
8496
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('51765a25c82cd1f688000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765a25c82cd1f68800000e'), "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "parent_id"=>BSON::ObjectId('51765a25c82cd1f688000004'), "serialized_template"=>{"en"=><BSON::Binary:70266933264380>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 09:53:41 UTC, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "created_at"=>2013-04-23 09:53:41 UTC}])
8497
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f68800000e')]}}).sort([[:position, :asc]])
8498
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765a25c82cd1f68800000e')}).sort([[:position, :asc]])
8499
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f68800000e')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8500
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('51765a25c82cd1f68800000e')}).limit(-1).sort([[:_id, :asc]])
8501
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :slug=>{"en"=>"findable"}, :site_id=>BSON::ObjectId('51765a24c82cd1f688000001')}, "_id"=>BSON::ObjectId('51765a25c82cd1f68800000f'), "_original_type"=>"Locomotive::Page", "_original_id"=>BSON::ObjectId('51765a25c82cd1f68800000e'), "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}])
8502
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8503
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"search", :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :parent_id=>BSON::ObjectId('51765a25c82cd1f688000004')}, "fields"=>nil}).limit(-1)
8504
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765a25c82cd1f688000004'), :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000010')}}, {:_id=>1}).limit(-1)
8505
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765a25c82cd1f688000004'), :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000010')}}).sort([[:position, :asc]])
8506
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70266973585880 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>BSON::ObjectId('51765a25c82cd1f688000004'), :site_id=>BSON::ObjectId('51765a24c82cd1f688000001'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000010')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70266973585620 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8507
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000004')]}})
8508
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('51765a25c82cd1f688000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765a25c82cd1f688000010'), "raw_template"=>{"en"=>" <ul>\n {% for result in site.search %}\n {% if result.content_type_slug == 'examples' %}\n <li><a href=\"/examples/{{result._slug}}\">{{ result.name }}</a></li>\n {% else %}\n <li><a href=\"/{{result.slug}}\">{{ result.title }}</a></li>\n {% endif %}\n {% endfor %}\n </ul>\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "parent_id"=>BSON::ObjectId('51765a25c82cd1f688000004'), "serialized_template"=>{"en"=><BSON::Binary:70266932979940>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 09:53:41 UTC, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "created_at"=>2013-04-23 09:53:41 UTC}])
8509
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000010')]}}).sort([[:position, :asc]])
8510
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765a25c82cd1f688000010')}).sort([[:position, :asc]])
8511
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000010')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8512
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('51765a25c82cd1f688000010')}).limit(-1).sort([[:_id, :asc]])
8513
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:title=>{"en"=>"search"}, :slug=>{"en"=>"search"}, :site_id=>BSON::ObjectId('51765a24c82cd1f688000001')}, "_id"=>BSON::ObjectId('51765a25c82cd1f688000011'), "_original_type"=>"Locomotive::Page", "_original_id"=>BSON::ObjectId('51765a25c82cd1f688000010'), "_keywords"=>["en:search"]}])
8514
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8515
+ MONGODB locomotive_search_test['locomotive_sites'].find({:_id=>BSON::ObjectId('51765a24c82cd1f688000001')}).limit(-1).sort([[:_id, :asc]])
8516
+ MONGODB locomotive_search_test['locomotive_pages'].update({"_id"=>BSON::ObjectId('51765a25c82cd1f688000004')}, {"$set"=>{"raw_template"=>{"en"=>"\n <form action=\"/{{ locale }}/search\" method=\"GET\">\n <label for=\"search\">Search</label>\n <input type=\"text\" name=\"search\" id=\"search\">\n <input type=\"submit\" value=\"Search\">\n </form>"}, "serialized_template"=>{"en"=><BSON::Binary:70266975942180>}}})
8517
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000004')]}}).sort([[:position, :asc]])
8518
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('51765a25c82cd1f688000004')}).limit(-1).sort([[:_id, :asc]])
8519
+ MONGODB locomotive_search_test['active_search_mongoid_models'].update({"_id"=>BSON::ObjectId('51765a25c82cd1f688000005')}, {"$set"=>{"_stored"=>{"title"=>{"en"=>"Home page"}, "slug"=>{"en"=>"index"}, "site_id"=>BSON::ObjectId('51765a24c82cd1f688000001')}}})
8520
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8521
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test2"}, "fields"=>nil}).limit(-1)
8522
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test2.example.com"], "_id"=>BSON::ObjectId('51765a25c82cd1f688000012'), "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-04-23 09:53:40 UTC, "updated_at"=>2013-04-23 09:53:41 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765a25c82cd1f688000013'), "account_id"=>BSON::ObjectId('51765a24c82cd1f688000002')}]}])
8523
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765a25c82cd1f688000012'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8524
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765a25c82cd1f688000012'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000014')}}, {:_id=>1}).limit(-1)
8525
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765a25c82cd1f688000014'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765a25c82cd1f688000012'), "serialized_template"=>{"en"=><BSON::Binary:70266945311200>}, "updated_at"=>2013-04-23 09:53:41 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 09:53:41 UTC}])
8526
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a25c82cd1f688000012'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000014')]}}).sort([[:position, :asc]])
8527
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765a25c82cd1f688000014')}).sort([[:position, :asc]])
8528
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000014')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8529
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('51765a25c82cd1f688000014')}).limit(-1).sort([[:_id, :asc]])
8530
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:title=>{"en"=>"Home page"}, :slug=>{"en"=>"index"}, :site_id=>BSON::ObjectId('51765a25c82cd1f688000012')}, "_id"=>BSON::ObjectId('51765a25c82cd1f688000015'), "_original_type"=>"Locomotive::Page", "_original_id"=>BSON::ObjectId('51765a25c82cd1f688000014'), "_keywords"=>["en:home", "en:page"]}])
8531
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('51765a25c82cd1f688000012'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8532
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765a25c82cd1f688000012'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000016')}}, {:_id=>1}).limit(-1)
8533
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765a25c82cd1f688000012'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000016')}}).sort([[:position, :asc]])
8534
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70266932864900 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765a25c82cd1f688000012'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000016')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70266932864640 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8535
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765a25c82cd1f688000016'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('51765a25c82cd1f688000012'), "serialized_template"=>{"en"=><BSON::Binary:70266932095920>}, "updated_at"=>2013-04-23 09:53:41 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 09:53:41 UTC}])
8536
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a25c82cd1f688000012'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000016')]}}).sort([[:position, :asc]])
8537
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765a25c82cd1f688000016')}).sort([[:position, :asc]])
8538
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000016')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8539
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"rickroll", :site_id=>BSON::ObjectId('51765a25c82cd1f688000012'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8540
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765a25c82cd1f688000012'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000017')}}, {:_id=>1}).limit(-1)
8541
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765a25c82cd1f688000012'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000017')}}).sort([[:position, :asc]])
8542
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70266933190340 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765a25c82cd1f688000012'), :_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f688000017')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70266933189960 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8543
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[]}})
8544
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765a25c82cd1f688000017'), "raw_template"=>{"en"=>"Rickroll"}, "title"=>{"en"=>"This should never show up in the search, even if it would be findable"}, "slug"=>{"en"=>"rickroll"}, "site_id"=>BSON::ObjectId('51765a25c82cd1f688000012'), "serialized_template"=>{"en"=><BSON::Binary:70266933002600>}, "updated_at"=>2013-04-23 09:53:41 UTC, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "created_at"=>2013-04-23 09:53:41 UTC}])
8545
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a25c82cd1f688000012'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000017')]}}).sort([[:position, :asc]])
8546
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765a25c82cd1f688000017')}).sort([[:position, :asc]])
8547
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765a25c82cd1f688000017')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8548
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::Page", :_original_id=>BSON::ObjectId('51765a25c82cd1f688000017')}).limit(-1).sort([[:_id, :asc]])
8549
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :slug=>{"en"=>"rickroll"}, :site_id=>BSON::ObjectId('51765a25c82cd1f688000012')}, "_id"=>BSON::ObjectId('51765a25c82cd1f688000018'), "_original_type"=>"Locomotive::Page", "_original_id"=>BSON::ObjectId('51765a25c82cd1f688000017'), "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}])
8550
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('51765a25c82cd1f688000012')}, "fields"=>nil}).limit(-1)
8551
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('51765a25c82cd1f688000019'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('51765a25c82cd1f688000012'), "serialized_item_template"=><BSON::Binary:70266974474700>, "slug"=>"examples", "updated_at"=>2013-04-23 09:53:41 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('51765a25c82cd1f68800001a'), "created_at"=>2013-04-23 09:53:41 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('51765a25c82cd1f68800001a'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 09:53:41 UTC, "created_at"=>2013-04-23 09:53:41 UTC}]}])
8552
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765a25c82cd1f68800001b')}, :_slug=>"not-findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry51765a25c82cd1f688000019"]}})
8553
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"not-findable-entry", :content_type_id=>BSON::ObjectId('51765a25c82cd1f688000019')}, "fields"=>nil}).limit(-1)
8554
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70266933120980 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765a25c82cd1f688000019"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70266933120720 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8555
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('51765a25c82cd1f68800001b'), "_type"=>"Locomotive::ContentEntry51765a25c82cd1f688000019", "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51765a25c82cd1f688000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765a25c82cd1f688000019'), "_slug"=>"not-findable-entry", "updated_at"=>2013-04-23 09:53:41 UTC, "site_id"=>BSON::ObjectId('51765a25c82cd1f688000012'), "_label_field_name"=>"name", "created_at"=>2013-04-23 09:53:41 UTC}])
8556
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({:_original_type=>"Locomotive::ContentEntry51765a25c82cd1f688000019", :_original_id=>BSON::ObjectId('51765a25c82cd1f68800001b')}).limit(-1).sort([[:_id, :asc]])
8557
+ MONGODB locomotive_search_test['active_search_mongoid_models'].insert([{"_stored"=>{:_slug=>"not-findable-entry", "name"=>"NOT Findable entry", :site_id=>BSON::ObjectId('51765a25c82cd1f688000012'), :content_type_slug=>"examples"}, "_id"=>BSON::ObjectId('51765a25c82cd1f68800001c'), "_original_type"=>"Locomotive::ContentEntry51765a25c82cd1f688000019", "_original_id"=>BSON::ObjectId('51765a25c82cd1f68800001b'), "_keywords"=>["not", "findable", "entry"]}])
8558
+ Started GET "/" for 127.0.0.1 at 2013-04-23 11:53:41 +0200
8559
+ Processing by Locomotive::Public::PagesController#show as HTML
8560
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8561
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8562
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), :depth=>0, "fullpath.en"=>{"$in"=>["index"]}}).sort([[:position, :asc]])
8563
+ Rendered text template (0.0ms)
8564
+ Completed 200 OK in 23ms (Views: 19.2ms)
8565
+ Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-04-23 11:53:41 +0200
8566
+ Processing by Locomotive::Public::PagesController#show as HTML
8567
+ Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"}
8568
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8569
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8570
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), :depth=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}).sort([[:position, :asc]])
8571
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({"_stored.site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), :_keywords=>{"$in"=>["findable", "en:findable"]}})
8572
+ Rendered text template (0.0ms)
8573
+ Completed 200 OK in 5ms (Views: 0.3ms)
8574
+ Started GET "/findable" for 127.0.0.1 at 2013-04-23 11:53:41 +0200
8575
+ Processing by Locomotive::Public::PagesController#show as HTML
8576
+ Parameters: {"path"=>"findable"}
8577
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8578
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8579
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), :depth=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}).sort([[:position, :asc]])
8580
+ Rendered text template (0.0ms)
8581
+ Completed 200 OK in 4ms (Views: 0.4ms)
8582
+ Started GET "/" for 127.0.0.1 at 2013-04-23 11:53:41 +0200
8583
+ Processing by Locomotive::Public::PagesController#show as HTML
8584
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8585
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8586
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), :depth=>0, "fullpath.en"=>{"$in"=>["index"]}}).sort([[:position, :asc]])
8587
+ Rendered text template (0.0ms)
8588
+ Completed 200 OK in 3ms (Views: 0.2ms)
8589
+ Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-04-23 11:53:41 +0200
8590
+ Processing by Locomotive::Public::PagesController#show as HTML
8591
+ Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"}
8592
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8593
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8594
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), :depth=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}).sort([[:position, :asc]])
8595
+ MONGODB locomotive_search_test['active_search_mongoid_models'].find({"_stored.site_id"=>BSON::ObjectId('51765a24c82cd1f688000001'), :_keywords=>{"$in"=>["not", "found", "en:not", "en:found"]}})
8596
+ Rendered text template (0.0ms)
8597
+ Completed 200 OK in 4ms (Views: 0.2ms)
8598
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8599
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8600
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_accounts"}).limit(-1)
8601
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8602
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
8603
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8604
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
8605
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8606
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"active_search_mongoid_models"}).limit(-1)
8607
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8608
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8609
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8610
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_entries"}).limit(-1)
8611
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8612
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8613
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8614
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1)
8615
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8616
+ Creating scope :root. Overwriting existing method Locomotive::Page.root.
8617
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8618
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8619
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8620
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8621
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_accounts"}).limit(-1)
8622
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8623
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_accounts", "query"=>{:email=>"admin@locomotiveapp.org"}, "fields"=>nil}).limit(-1)
8624
+ MONGODB locomotive_search_test['locomotive_accounts'].insert([{"locale"=>"en", "_id"=>BSON::ObjectId('51765a45c82cd1f69e000002'), "name"=>"Admin", "email"=>"admin@locomotiveapp.org", "password_salt"=>"NMqeQoJS5fqerUW8UGzv", "encrypted_password"=>"312aa6673c6045eb08865f3eb61afd99b5385cf5", "updated_at"=>2013-04-23 09:54:13 UTC, "created_at"=>2013-04-23 09:54:13 UTC}])
8625
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8626
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_sites"}).limit(-1)
8627
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test"}, "fields"=>nil}).limit(-1)
8628
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test.example.com"], "_id"=>BSON::ObjectId('51765a45c82cd1f69e000001'), "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-04-23 09:54:13 UTC, "updated_at"=>2013-04-23 09:54:13 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765a45c82cd1f69e000003'), "account_id"=>BSON::ObjectId('51765a45c82cd1f69e000002')}]}])
8629
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8630
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_pages"}).limit(-1)
8631
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765a45c82cd1f69e000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8632
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765a45c82cd1f69e000001'), :_id=>{"$ne"=>BSON::ObjectId('51765a46c82cd1f69e000004')}}, {:_id=>1}).limit(-1)
8633
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765a46c82cd1f69e000004'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765a45c82cd1f69e000001'), "serialized_template"=>{"en"=><BSON::Binary:70258814730620>}, "updated_at"=>2013-04-23 09:54:14 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 09:54:14 UTC}])
8634
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765a46c82cd1f69e000004')}).sort([[:position, :asc]])
8635
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a45c82cd1f69e000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765a46c82cd1f69e000004')]}}).sort([[:position, :asc]])
8636
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765a46c82cd1f69e000004')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8637
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8638
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8639
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_accounts"}).limit(-1)
8640
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8641
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
8642
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8643
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
8644
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8645
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8646
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8647
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1)
8648
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8649
+ Creating scope :root. Overwriting existing method Locomotive::Page.root.
8650
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8651
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8652
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8653
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8654
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_accounts"}).limit(-1)
8655
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8656
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_accounts", "query"=>{:email=>"admin@locomotiveapp.org"}, "fields"=>nil}).limit(-1)
8657
+ MONGODB locomotive_search_test['locomotive_accounts'].insert([{"locale"=>"en", "_id"=>BSON::ObjectId('51765a8ac82cd1f6ce000002'), "name"=>"Admin", "email"=>"admin@locomotiveapp.org", "password_salt"=>"LdwHNq8Hsao8zbU6iUQg", "encrypted_password"=>"0581aff0f7de1c5a643a27fd087735c4224b5c67", "updated_at"=>2013-04-23 09:55:22 UTC, "created_at"=>2013-04-23 09:55:22 UTC}])
8658
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8659
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_sites"}).limit(-1)
8660
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test"}, "fields"=>nil}).limit(-1)
8661
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test.example.com"], "_id"=>BSON::ObjectId('51765a8ac82cd1f6ce000001'), "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-04-23 09:55:22 UTC, "updated_at"=>2013-04-23 09:55:22 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765a8ac82cd1f6ce000003'), "account_id"=>BSON::ObjectId('51765a8ac82cd1f6ce000002')}]}])
8662
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8663
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_pages"}).limit(-1)
8664
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765a8ac82cd1f6ce000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8665
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765a8ac82cd1f6ce000001'), :_id=>{"$ne"=>BSON::ObjectId('51765a8ac82cd1f6ce000004')}}, {:_id=>1}).limit(-1)
8666
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765a8ac82cd1f6ce000004'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765a8ac82cd1f6ce000001'), "serialized_template"=>{"en"=><BSON::Binary:70346359632580>}, "updated_at"=>2013-04-23 09:55:22 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 09:55:22 UTC}])
8667
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765a8ac82cd1f6ce000004')}).sort([[:position, :asc]])
8668
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765a8ac82cd1f6ce000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765a8ac82cd1f6ce000004')]}}).sort([[:position, :asc]])
8669
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765a8ac82cd1f6ce000004')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8670
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8671
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8672
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_accounts"}).limit(-1)
8673
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8674
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
8675
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8676
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
8677
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8678
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8679
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8680
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1)
8681
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8682
+ Creating scope :root. Overwriting existing method Locomotive::Page.root.
8683
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8684
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8685
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8686
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8687
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_accounts"}).limit(-1)
8688
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8689
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_accounts", "query"=>{:email=>"admin@locomotiveapp.org"}, "fields"=>nil}).limit(-1)
8690
+ MONGODB locomotive_search_test['locomotive_accounts'].insert([{"locale"=>"en", "_id"=>BSON::ObjectId('51765b33c82cd1f6f8000002'), "name"=>"Admin", "email"=>"admin@locomotiveapp.org", "password_salt"=>"VyJnvseaqsfzQGgbqy6W", "encrypted_password"=>"bd736e3c415ee08787cb3c223d926808a94b8e20", "updated_at"=>2013-04-23 09:58:11 UTC, "created_at"=>2013-04-23 09:58:11 UTC}])
8691
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8692
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_sites"}).limit(-1)
8693
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test"}, "fields"=>nil}).limit(-1)
8694
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test.example.com"], "_id"=>BSON::ObjectId('51765b33c82cd1f6f8000001'), "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-04-23 09:58:11 UTC, "updated_at"=>2013-04-23 09:58:11 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765b33c82cd1f6f8000003'), "account_id"=>BSON::ObjectId('51765b33c82cd1f6f8000002')}]}])
8695
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8696
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_pages"}).limit(-1)
8697
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765b33c82cd1f6f8000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8698
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765b33c82cd1f6f8000001'), :_id=>{"$ne"=>BSON::ObjectId('51765b33c82cd1f6f8000004')}}, {:_id=>1}).limit(-1)
8699
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765b33c82cd1f6f8000004'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765b33c82cd1f6f8000001'), "serialized_template"=>{"en"=><BSON::Binary:70286189317280>}, "updated_at"=>2013-04-23 09:58:11 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 09:58:11 UTC}])
8700
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765b33c82cd1f6f8000004')}).sort([[:position, :asc]])
8701
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765b33c82cd1f6f8000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765b33c82cd1f6f8000004')]}}).sort([[:position, :asc]])
8702
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765b33c82cd1f6f8000004')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8703
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8704
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8705
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_accounts"}).limit(-1)
8706
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8707
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
8708
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8709
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
8710
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8711
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8712
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8713
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1)
8714
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8715
+ Creating scope :root. Overwriting existing method Locomotive::Page.root.
8716
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8717
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8718
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8719
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8720
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_accounts"}).limit(-1)
8721
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8722
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_accounts", "query"=>{:email=>"admin@locomotiveapp.org"}, "fields"=>nil}).limit(-1)
8723
+ MONGODB locomotive_search_test['locomotive_accounts'].insert([{"locale"=>"en", "_id"=>BSON::ObjectId('51765b7cc82cd1f726000002'), "name"=>"Admin", "email"=>"admin@locomotiveapp.org", "password_salt"=>"Jz14yQdaSNhRDVfmR8Wa", "encrypted_password"=>"a90a4296eea825ae1e8946a25e3988f340b54589", "updated_at"=>2013-04-23 09:59:24 UTC, "created_at"=>2013-04-23 09:59:24 UTC}])
8724
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8725
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_sites"}).limit(-1)
8726
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test"}, "fields"=>nil}).limit(-1)
8727
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test.example.com"], "_id"=>BSON::ObjectId('51765b7cc82cd1f726000001'), "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-04-23 09:59:24 UTC, "updated_at"=>2013-04-23 09:59:24 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765b7cc82cd1f726000003'), "account_id"=>BSON::ObjectId('51765b7cc82cd1f726000002')}]}])
8728
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8729
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_pages"}).limit(-1)
8730
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765b7cc82cd1f726000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8731
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765b7cc82cd1f726000001'), :_id=>{"$ne"=>BSON::ObjectId('51765b7dc82cd1f726000004')}}, {:_id=>1}).limit(-1)
8732
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765b7dc82cd1f726000004'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765b7cc82cd1f726000001'), "serialized_template"=>{"en"=><BSON::Binary:70115854721740>}, "updated_at"=>2013-04-23 09:59:25 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 09:59:25 UTC}])
8733
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765b7dc82cd1f726000004')}).sort([[:position, :asc]])
8734
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765b7cc82cd1f726000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765b7dc82cd1f726000004')]}}).sort([[:position, :asc]])
8735
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765b7dc82cd1f726000004')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8736
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8737
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8738
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_accounts"}).limit(-1)
8739
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8740
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
8741
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8742
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
8743
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8744
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8745
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8746
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1)
8747
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8748
+ Creating scope :root. Overwriting existing method Locomotive::Page.root.
8749
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8750
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8751
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8752
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8753
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_accounts"}).limit(-1)
8754
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8755
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_accounts", "query"=>{:email=>"admin@locomotiveapp.org"}, "fields"=>nil}).limit(-1)
8756
+ MONGODB locomotive_search_test['locomotive_accounts'].insert([{"locale"=>"en", "_id"=>BSON::ObjectId('51765ba8c82cd1f741000002'), "name"=>"Admin", "email"=>"admin@locomotiveapp.org", "password_salt"=>"buWNJrbdkqRoPsQnz8PM", "encrypted_password"=>"5377c126bdb5dda54ce52e0a7e872c9086bdb5bc", "updated_at"=>2013-04-23 10:00:08 UTC, "created_at"=>2013-04-23 10:00:08 UTC}])
8757
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8758
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_sites"}).limit(-1)
8759
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test"}, "fields"=>nil}).limit(-1)
8760
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test.example.com"], "_id"=>BSON::ObjectId('51765ba8c82cd1f741000001'), "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-04-23 10:00:08 UTC, "updated_at"=>2013-04-23 10:00:08 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765ba8c82cd1f741000003'), "account_id"=>BSON::ObjectId('51765ba8c82cd1f741000002')}]}])
8761
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8762
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_pages"}).limit(-1)
8763
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765ba8c82cd1f741000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8764
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765ba8c82cd1f741000001'), :_id=>{"$ne"=>BSON::ObjectId('51765ba9c82cd1f741000004')}}, {:_id=>1}).limit(-1)
8765
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765ba9c82cd1f741000004'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765ba8c82cd1f741000001'), "serialized_template"=>{"en"=><BSON::Binary:70340506607480>}, "updated_at"=>2013-04-23 10:00:09 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 10:00:09 UTC}])
8766
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765ba9c82cd1f741000004')}).sort([[:position, :asc]])
8767
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765ba8c82cd1f741000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765ba9c82cd1f741000004')]}}).sort([[:position, :asc]])
8768
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765ba9c82cd1f741000004')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8769
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('51765ba8c82cd1f741000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8770
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765ba8c82cd1f741000001'), :_id=>{"$ne"=>BSON::ObjectId('51765ba9c82cd1f741000005')}}, {:_id=>1}).limit(-1)
8771
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765ba8c82cd1f741000001'), :_id=>{"$ne"=>BSON::ObjectId('51765ba9c82cd1f741000005')}}).sort([[:position, :asc]])
8772
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70340504261760 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765ba8c82cd1f741000001'), :_id=>{"$ne"=>BSON::ObjectId('51765ba9c82cd1f741000005')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70340504261420 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8773
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765ba9c82cd1f741000005'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('51765ba8c82cd1f741000001'), "serialized_template"=>{"en"=><BSON::Binary:70340504785760>}, "updated_at"=>2013-04-23 10:00:09 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 10:00:09 UTC}])
8774
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765ba8c82cd1f741000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765ba9c82cd1f741000005')]}}).sort([[:position, :asc]])
8775
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765ba9c82cd1f741000005')}).sort([[:position, :asc]])
8776
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765ba9c82cd1f741000005')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8777
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('51765ba8c82cd1f741000001')}, "fields"=>nil}).limit(-1)
8778
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('51765ba9c82cd1f741000006'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('51765ba8c82cd1f741000001'), "serialized_item_template"=><BSON::Binary:70340504225440>, "slug"=>"examples", "updated_at"=>2013-04-23 10:00:09 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('51765ba9c82cd1f741000007'), "created_at"=>2013-04-23 10:00:09 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('51765ba9c82cd1f741000007'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 10:00:09 UTC, "created_at"=>2013-04-23 10:00:09 UTC}]}])
8779
+ MONGODB locomotive_search_test['locomotive_content_types'].update({"_id"=>BSON::ObjectId('51765ba9c82cd1f741000006')}, {"$push"=>{"entries_custom_fields"=>{"text_formatting"=>"html", "position"=>0, "required"=>false, "localized"=>false, "ui_enabled"=>true, "searchable"=>false, "_id"=>BSON::ObjectId('51765ba9c82cd1f741000008'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Stuff", "type"=>"text", "name"=>"stuff", "updated_at"=>2013-04-23 10:00:09 UTC, "created_at"=>2013-04-23 10:00:09 UTC}}})
8780
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8781
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_entries"}).limit(-1)
8782
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765ba9c82cd1f741000009')}, :_slug=>"findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry51765ba9c82cd1f741000006"]}})
8783
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"findable-entry", :content_type_id=>BSON::ObjectId('51765ba9c82cd1f741000006')}, "fields"=>nil}).limit(-1)
8784
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70340506668100 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765ba9c82cd1f741000006"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70340506667780 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8785
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('51765ba9c82cd1f741000009'), "_type"=>"Locomotive::ContentEntry51765ba9c82cd1f741000006", "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51765ba9c82cd1f741000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765ba9c82cd1f741000006'), "_slug"=>"findable-entry", "updated_at"=>2013-04-23 10:00:09 UTC, "site_id"=>BSON::ObjectId('51765ba8c82cd1f741000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:00:09 UTC}])
8786
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8787
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8788
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_accounts"}).limit(-1)
8789
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8790
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
8791
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8792
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
8793
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8794
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8795
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8796
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_entries"}).limit(-1)
8797
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8798
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8799
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8800
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1)
8801
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8802
+ Creating scope :root. Overwriting existing method Locomotive::Page.root.
8803
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8804
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8805
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8806
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8807
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_accounts"}).limit(-1)
8808
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8809
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_accounts", "query"=>{:email=>"admin@locomotiveapp.org"}, "fields"=>nil}).limit(-1)
8810
+ MONGODB locomotive_search_test['locomotive_accounts'].insert([{"locale"=>"en", "_id"=>BSON::ObjectId('51765bf5c82cd1f75b000002'), "name"=>"Admin", "email"=>"admin@locomotiveapp.org", "password_salt"=>"Svze3Jhx3pzBGKtFBQWB", "encrypted_password"=>"2939ea5f1aed0a52b50450fc56b3e28c6764cf4e", "updated_at"=>2013-04-23 10:01:25 UTC, "created_at"=>2013-04-23 10:01:25 UTC}])
8811
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8812
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_sites"}).limit(-1)
8813
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test"}, "fields"=>nil}).limit(-1)
8814
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test.example.com"], "_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-04-23 10:01:25 UTC, "updated_at"=>2013-04-23 10:01:25 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765bf5c82cd1f75b000003'), "account_id"=>BSON::ObjectId('51765bf5c82cd1f75b000002')}]}])
8815
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8816
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_pages"}).limit(-1)
8817
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8818
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :_id=>{"$ne"=>BSON::ObjectId('51765bf6c82cd1f75b000004')}}, {:_id=>1}).limit(-1)
8819
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765bf6c82cd1f75b000004'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "serialized_template"=>{"en"=><BSON::Binary:70341437235980>}, "updated_at"=>2013-04-23 10:01:26 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:26 UTC}])
8820
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765bf6c82cd1f75b000004')}).sort([[:position, :asc]])
8821
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765bf6c82cd1f75b000004')]}}).sort([[:position, :asc]])
8822
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765bf6c82cd1f75b000004')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8823
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8824
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :_id=>{"$ne"=>BSON::ObjectId('51765bf6c82cd1f75b000005')}}, {:_id=>1}).limit(-1)
8825
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :_id=>{"$ne"=>BSON::ObjectId('51765bf6c82cd1f75b000005')}}).sort([[:position, :asc]])
8826
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70341437488700 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :_id=>{"$ne"=>BSON::ObjectId('51765bf6c82cd1f75b000005')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70341437488340 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8827
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765bf6c82cd1f75b000005'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "serialized_template"=>{"en"=><BSON::Binary:70341439565260>}, "updated_at"=>2013-04-23 10:01:26 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:26 UTC}])
8828
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765bf6c82cd1f75b000005')]}}).sort([[:position, :asc]])
8829
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765bf6c82cd1f75b000005')}).sort([[:position, :asc]])
8830
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765bf6c82cd1f75b000005')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8831
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001')}, "fields"=>nil}).limit(-1)
8832
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('51765bf6c82cd1f75b000006'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "serialized_item_template"=><BSON::Binary:70341442647300>, "slug"=>"examples", "updated_at"=>2013-04-23 10:01:26 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('51765bf6c82cd1f75b000007'), "created_at"=>2013-04-23 10:01:26 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('51765bf6c82cd1f75b000007'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 10:01:26 UTC, "created_at"=>2013-04-23 10:01:26 UTC}]}])
8833
+ MONGODB locomotive_search_test['locomotive_content_types'].update({"_id"=>BSON::ObjectId('51765bf6c82cd1f75b000006')}, {"$push"=>{"entries_custom_fields"=>{"text_formatting"=>"html", "position"=>0, "required"=>false, "localized"=>false, "ui_enabled"=>true, "searchable"=>false, "_id"=>BSON::ObjectId('51765bf6c82cd1f75b000008'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Stuff", "type"=>"text", "name"=>"stuff", "updated_at"=>2013-04-23 10:01:26 UTC, "created_at"=>2013-04-23 10:01:26 UTC}}})
8834
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8835
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_entries"}).limit(-1)
8836
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765bf6c82cd1f75b000009')}, :_slug=>"findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry51765bf6c82cd1f75b000006"]}})
8837
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"findable-entry", :content_type_id=>BSON::ObjectId('51765bf6c82cd1f75b000006')}, "fields"=>nil}).limit(-1)
8838
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70341441916560 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765bf6c82cd1f75b000006"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70341441916240 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8839
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('51765bf6c82cd1f75b000009'), "_type"=>"Locomotive::ContentEntry51765bf6c82cd1f75b000006", "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51765bf6c82cd1f75b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765bf6c82cd1f75b000006'), "_slug"=>"findable-entry", "updated_at"=>2013-04-23 10:01:26 UTC, "site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:01:26 UTC}])
8840
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765bf6c82cd1f75b00000a')}, :_slug=>"hidden", :_type=>{"$in"=>["Locomotive::ContentEntry51765bf6c82cd1f75b000006"]}})
8841
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"hidden", :content_type_id=>BSON::ObjectId('51765bf6c82cd1f75b000006')}, "fields"=>nil}).limit(-1)
8842
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70341461254580 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765bf6c82cd1f75b000006"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70341402558080 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8843
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>2, "_visible"=>true, "_id"=>BSON::ObjectId('51765bf6c82cd1f75b00000a'), "_type"=>"Locomotive::ContentEntry51765bf6c82cd1f75b000006", "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51765bf6c82cd1f75b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765bf6c82cd1f75b000006'), "_slug"=>"hidden", "updated_at"=>2013-04-23 10:01:26 UTC, "site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:01:26 UTC}])
8844
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8845
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"findable", :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :parent_id=>BSON::ObjectId('51765bf6c82cd1f75b000004')}, "fields"=>nil}).limit(-1)
8846
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765bf6c82cd1f75b000004'), :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :_id=>{"$ne"=>BSON::ObjectId('51765bf7c82cd1f75b00000b')}}, {:_id=>1}).limit(-1)
8847
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('51765bf6c82cd1f75b000004')]}})
8848
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('51765bf6c82cd1f75b000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000b'), "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "parent_id"=>BSON::ObjectId('51765bf6c82cd1f75b000004'), "serialized_template"=>{"en"=><BSON::Binary:70341403426600>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 10:01:27 UTC, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:27 UTC}])
8849
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765bf7c82cd1f75b00000b')]}}).sort([[:position, :asc]])
8850
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000b')}).sort([[:position, :asc]])
8851
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765bf7c82cd1f75b00000b')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8852
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8853
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"search", :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :parent_id=>BSON::ObjectId('51765bf6c82cd1f75b000004')}, "fields"=>nil}).limit(-1)
8854
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765bf6c82cd1f75b000004'), :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :_id=>{"$ne"=>BSON::ObjectId('51765bf7c82cd1f75b00000c')}}, {:_id=>1}).limit(-1)
8855
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765bf6c82cd1f75b000004'), :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :_id=>{"$ne"=>BSON::ObjectId('51765bf7c82cd1f75b00000c')}}).sort([[:position, :asc]])
8856
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70341402028920 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>BSON::ObjectId('51765bf6c82cd1f75b000004'), :site_id=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :_id=>{"$ne"=>BSON::ObjectId('51765bf7c82cd1f75b00000c')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70341402028660 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8857
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('51765bf6c82cd1f75b000004')]}})
8858
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('51765bf6c82cd1f75b000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000c'), "raw_template"=>{"en"=>" <ul>\n {% for result in site.search %}\n {% if result.content_type_slug == 'examples' %}\n <li><a href=\"/examples/{{result._slug}}\">{{ result.name }}</a></li>\n {% else %}\n <li><a href=\"/{{result.slug}}\">{{ result.title }}</a></li>\n {% endif %}\n {% endfor %}\n </ul>\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "parent_id"=>BSON::ObjectId('51765bf6c82cd1f75b000004'), "serialized_template"=>{"en"=><BSON::Binary:70341403332540>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 10:01:27 UTC, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:27 UTC}])
8859
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765bf7c82cd1f75b00000c')]}}).sort([[:position, :asc]])
8860
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000c')}).sort([[:position, :asc]])
8861
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765bf7c82cd1f75b00000c')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8862
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8863
+ MONGODB locomotive_search_test['locomotive_sites'].find({:_id=>BSON::ObjectId('51765bf5c82cd1f75b000001')}).limit(-1).sort([[:_id, :asc]])
8864
+ MONGODB locomotive_search_test['locomotive_pages'].update({"_id"=>BSON::ObjectId('51765bf6c82cd1f75b000004')}, {"$set"=>{"raw_template"=>{"en"=>"\n <form action=\"/{{ locale }}/search\" method=\"GET\">\n <label for=\"search\">Search</label>\n <input type=\"text\" name=\"search\" id=\"search\">\n <input type=\"submit\" value=\"Search\">\n </form>"}, "serialized_template"=>{"en"=><BSON::Binary:70341440371360>}, "updated_at"=>2013-04-23 10:01:27 UTC}})
8865
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765bf6c82cd1f75b000004')]}}).sort([[:position, :asc]])
8866
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8867
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test2"}, "fields"=>nil}).limit(-1)
8868
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test2.example.com"], "_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-04-23 10:01:25 UTC, "updated_at"=>2013-04-23 10:01:27 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000e'), "account_id"=>BSON::ObjectId('51765bf5c82cd1f75b000002')}]}])
8869
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8870
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765bf7c82cd1f75b00000f')}}, {:_id=>1}).limit(-1)
8871
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000f'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), "serialized_template"=>{"en"=><BSON::Binary:70341403316460>}, "updated_at"=>2013-04-23 10:01:27 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:27 UTC}])
8872
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765bf7c82cd1f75b00000f')]}}).sort([[:position, :asc]])
8873
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000f')}).sort([[:position, :asc]])
8874
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765bf7c82cd1f75b00000f')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8875
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8876
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765bf8c82cd1f75b000010')}}, {:_id=>1}).limit(-1)
8877
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765bf8c82cd1f75b000010')}}).sort([[:position, :asc]])
8878
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70341398240960 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765bf8c82cd1f75b000010')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70341398240700 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8879
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765bf8c82cd1f75b000010'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), "serialized_template"=>{"en"=><BSON::Binary:70341398179940>}, "updated_at"=>2013-04-23 10:01:28 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:28 UTC}])
8880
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765bf8c82cd1f75b000010')]}}).sort([[:position, :asc]])
8881
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765bf8c82cd1f75b000010')}).sort([[:position, :asc]])
8882
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765bf8c82cd1f75b000010')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8883
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"rickroll", :site_id=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8884
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765bf8c82cd1f75b000011')}}, {:_id=>1}).limit(-1)
8885
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765bf8c82cd1f75b000011')}}).sort([[:position, :asc]])
8886
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70341435361640 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765bf8c82cd1f75b000011')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70341435361060 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8887
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[]}})
8888
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765bf8c82cd1f75b000011'), "raw_template"=>{"en"=>"Rickroll"}, "title"=>{"en"=>"This should never show up in the search, even if it would be findable"}, "slug"=>{"en"=>"rickroll"}, "site_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), "serialized_template"=>{"en"=><BSON::Binary:70341442169100>}, "updated_at"=>2013-04-23 10:01:28 UTC, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:28 UTC}])
8889
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765bf8c82cd1f75b000011')]}}).sort([[:position, :asc]])
8890
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765bf8c82cd1f75b000011')}).sort([[:position, :asc]])
8891
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765bf8c82cd1f75b000011')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8892
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('51765bf7c82cd1f75b00000d')}, "fields"=>nil}).limit(-1)
8893
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('51765bf8c82cd1f75b000012'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), "serialized_item_template"=><BSON::Binary:70341441883460>, "slug"=>"examples", "updated_at"=>2013-04-23 10:01:28 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('51765bf8c82cd1f75b000013'), "created_at"=>2013-04-23 10:01:28 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('51765bf8c82cd1f75b000013'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 10:01:28 UTC, "created_at"=>2013-04-23 10:01:28 UTC}]}])
8894
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765bf8c82cd1f75b000014')}, :_slug=>"not-findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry51765bf8c82cd1f75b000012"]}})
8895
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"not-findable-entry", :content_type_id=>BSON::ObjectId('51765bf8c82cd1f75b000012')}, "fields"=>nil}).limit(-1)
8896
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70341439551960 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765bf8c82cd1f75b000012"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70341439551580 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8897
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('51765bf8c82cd1f75b000014'), "_type"=>"Locomotive::ContentEntry51765bf8c82cd1f75b000012", "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51765bf8c82cd1f75b000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765bf8c82cd1f75b000012'), "_slug"=>"not-findable-entry", "updated_at"=>2013-04-23 10:01:28 UTC, "site_id"=>BSON::ObjectId('51765bf7c82cd1f75b00000d'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:01:28 UTC}])
8898
+ Started GET "/" for 127.0.0.1 at 2013-04-23 12:01:28 +0200
8899
+ Processing by Locomotive::Public::PagesController#show as HTML
8900
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8901
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8902
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :depth=>0, "fullpath.en"=>{"$in"=>["index"]}}).sort([[:position, :asc]])
8903
+ Rendered text template (0.0ms)
8904
+ Completed 200 OK in 25ms (Views: 20.6ms)
8905
+ Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-04-23 12:01:28 +0200
8906
+ Processing by Locomotive::Public::PagesController#show as HTML
8907
+ Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"}
8908
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
8909
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
8910
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765bf5c82cd1f75b000001'), :depth=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}).sort([[:position, :asc]])
8911
+ Rendered text template (0.0ms)
8912
+ Completed 200 OK in 208ms (Views: 0.5ms)
8913
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8914
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8915
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_accounts"}).limit(-1)
8916
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8917
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
8918
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8919
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
8920
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8921
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8922
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8923
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_entries"}).limit(-1)
8924
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
8925
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
8926
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8927
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1)
8928
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
8929
+ Creating scope :root. Overwriting existing method Locomotive::Page.root.
8930
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8931
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8932
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
8933
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8934
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_accounts"}).limit(-1)
8935
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8936
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_accounts", "query"=>{:email=>"admin@locomotiveapp.org"}, "fields"=>nil}).limit(-1)
8937
+ MONGODB locomotive_search_test['locomotive_accounts'].insert([{"locale"=>"en", "_id"=>BSON::ObjectId('51765c14c82cd1f777000002'), "name"=>"Admin", "email"=>"admin@locomotiveapp.org", "password_salt"=>"4jRubyDw1KFr5uFSiixE", "encrypted_password"=>"682eee3544f416e46fbbda0155cbc92cfa96f874", "updated_at"=>2013-04-23 10:01:56 UTC, "created_at"=>2013-04-23 10:01:56 UTC}])
8938
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8939
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_sites"}).limit(-1)
8940
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test"}, "fields"=>nil}).limit(-1)
8941
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test.example.com"], "_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-04-23 10:01:56 UTC, "updated_at"=>2013-04-23 10:01:56 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765c14c82cd1f777000003'), "account_id"=>BSON::ObjectId('51765c14c82cd1f777000002')}]}])
8942
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8943
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_pages"}).limit(-1)
8944
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8945
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c15c82cd1f777000004')}}, {:_id=>1}).limit(-1)
8946
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c15c82cd1f777000004'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "serialized_template"=>{"en"=><BSON::Binary:70297277992240>}, "updated_at"=>2013-04-23 10:01:57 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:57 UTC}])
8947
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c15c82cd1f777000004')}).sort([[:position, :asc]])
8948
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c15c82cd1f777000004')]}}).sort([[:position, :asc]])
8949
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c15c82cd1f777000004')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8950
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8951
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c15c82cd1f777000005')}}, {:_id=>1}).limit(-1)
8952
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c15c82cd1f777000005')}}).sort([[:position, :asc]])
8953
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70297280598920 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c15c82cd1f777000005')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297280598520 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8954
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c15c82cd1f777000005'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "serialized_template"=>{"en"=><BSON::Binary:70297275164700>}, "updated_at"=>2013-04-23 10:01:57 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:57 UTC}])
8955
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c15c82cd1f777000005')]}}).sort([[:position, :asc]])
8956
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c15c82cd1f777000005')}).sort([[:position, :asc]])
8957
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c15c82cd1f777000005')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8958
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('51765c14c82cd1f777000001')}, "fields"=>nil}).limit(-1)
8959
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('51765c15c82cd1f777000006'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "serialized_item_template"=><BSON::Binary:70297275268280>, "slug"=>"examples", "updated_at"=>2013-04-23 10:01:57 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('51765c15c82cd1f777000007'), "created_at"=>2013-04-23 10:01:57 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('51765c15c82cd1f777000007'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 10:01:57 UTC, "created_at"=>2013-04-23 10:01:57 UTC}]}])
8960
+ MONGODB locomotive_search_test['locomotive_content_types'].update({"_id"=>BSON::ObjectId('51765c15c82cd1f777000006')}, {"$push"=>{"entries_custom_fields"=>{"text_formatting"=>"html", "position"=>0, "required"=>false, "localized"=>false, "ui_enabled"=>true, "searchable"=>false, "_id"=>BSON::ObjectId('51765c15c82cd1f777000008'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Stuff", "type"=>"text", "name"=>"stuff", "updated_at"=>2013-04-23 10:01:57 UTC, "created_at"=>2013-04-23 10:01:57 UTC}}})
8961
+ MONGODB locomotive_search_test['system.namespaces'].find({})
8962
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_entries"}).limit(-1)
8963
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765c15c82cd1f777000009')}, :_slug=>"findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry51765c15c82cd1f777000006"]}})
8964
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"findable-entry", :content_type_id=>BSON::ObjectId('51765c15c82cd1f777000006')}, "fields"=>nil}).limit(-1)
8965
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70297277247760 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765c15c82cd1f777000006"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297277247420 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8966
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('51765c15c82cd1f777000009'), "_type"=>"Locomotive::ContentEntry51765c15c82cd1f777000006", "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51765c15c82cd1f777000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765c15c82cd1f777000006'), "_slug"=>"findable-entry", "updated_at"=>2013-04-23 10:01:57 UTC, "site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:01:57 UTC}])
8967
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765c16c82cd1f77700000a')}, :_slug=>"hidden", :_type=>{"$in"=>["Locomotive::ContentEntry51765c15c82cd1f777000006"]}})
8968
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"hidden", :content_type_id=>BSON::ObjectId('51765c15c82cd1f777000006')}, "fields"=>nil}).limit(-1)
8969
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70297318136740 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765c15c82cd1f777000006"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297318136420 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8970
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>2, "_visible"=>true, "_id"=>BSON::ObjectId('51765c16c82cd1f77700000a'), "_type"=>"Locomotive::ContentEntry51765c15c82cd1f777000006", "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51765c15c82cd1f777000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765c15c82cd1f777000006'), "_slug"=>"hidden", "updated_at"=>2013-04-23 10:01:58 UTC, "site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:01:58 UTC}])
8971
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8972
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"findable", :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :parent_id=>BSON::ObjectId('51765c15c82cd1f777000004')}, "fields"=>nil}).limit(-1)
8973
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765c15c82cd1f777000004'), :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c16c82cd1f77700000b')}}, {:_id=>1}).limit(-1)
8974
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('51765c15c82cd1f777000004')]}})
8975
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('51765c15c82cd1f777000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c16c82cd1f77700000b'), "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "parent_id"=>BSON::ObjectId('51765c15c82cd1f777000004'), "serialized_template"=>{"en"=><BSON::Binary:70297315472060>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 10:01:58 UTC, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:58 UTC}])
8976
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c16c82cd1f77700000b')]}}).sort([[:position, :asc]])
8977
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c16c82cd1f77700000b')}).sort([[:position, :asc]])
8978
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c16c82cd1f77700000b')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8979
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8980
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"search", :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :parent_id=>BSON::ObjectId('51765c15c82cd1f777000004')}, "fields"=>nil}).limit(-1)
8981
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765c15c82cd1f777000004'), :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c16c82cd1f77700000c')}}, {:_id=>1}).limit(-1)
8982
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765c15c82cd1f777000004'), :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c16c82cd1f77700000c')}}).sort([[:position, :asc]])
8983
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70297294433100 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>BSON::ObjectId('51765c15c82cd1f777000004'), :site_id=>BSON::ObjectId('51765c14c82cd1f777000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c16c82cd1f77700000c')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297294432840 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
8984
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('51765c15c82cd1f777000004')]}})
8985
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('51765c15c82cd1f777000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c16c82cd1f77700000c'), "raw_template"=>{"en"=>" <ul>\n {% for result in site.search %}\n {% if result.content_type_slug == 'examples' %}\n <li><a href=\"/examples/{{result._slug}}\">{{ result.name }}</a></li>\n {% else %}\n <li><a href=\"/{{result.slug}}\">{{ result.title }}</a></li>\n {% endif %}\n {% endfor %}\n </ul>\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "parent_id"=>BSON::ObjectId('51765c15c82cd1f777000004'), "serialized_template"=>{"en"=><BSON::Binary:70297294264460>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 10:01:58 UTC, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:58 UTC}])
8986
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c16c82cd1f77700000c')]}}).sort([[:position, :asc]])
8987
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c16c82cd1f77700000c')}).sort([[:position, :asc]])
8988
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c16c82cd1f77700000c')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
8989
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
8990
+ MONGODB locomotive_search_test['locomotive_sites'].find({:_id=>BSON::ObjectId('51765c14c82cd1f777000001')}).limit(-1).sort([[:_id, :asc]])
8991
+ MONGODB locomotive_search_test['locomotive_pages'].update({"_id"=>BSON::ObjectId('51765c15c82cd1f777000004')}, {"$set"=>{"raw_template"=>{"en"=>"\n <form action=\"/{{ locale }}/search\" method=\"GET\">\n <label for=\"search\">Search</label>\n <input type=\"text\" name=\"search\" id=\"search\">\n <input type=\"submit\" value=\"Search\">\n </form>"}, "serialized_template"=>{"en"=><BSON::Binary:70297294576860>}, "updated_at"=>2013-04-23 10:01:58 UTC}})
8992
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c15c82cd1f777000004')]}}).sort([[:position, :asc]])
8993
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
8994
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test2"}, "fields"=>nil}).limit(-1)
8995
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test2.example.com"], "_id"=>BSON::ObjectId('51765c17c82cd1f77700000d'), "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-04-23 10:01:56 UTC, "updated_at"=>2013-04-23 10:01:59 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765c17c82cd1f77700000e'), "account_id"=>BSON::ObjectId('51765c14c82cd1f777000002')}]}])
8996
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765c17c82cd1f77700000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
8997
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c17c82cd1f77700000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c17c82cd1f77700000f')}}, {:_id=>1}).limit(-1)
8998
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c17c82cd1f77700000f'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765c17c82cd1f77700000d'), "serialized_template"=>{"en"=><BSON::Binary:70297294776080>}, "updated_at"=>2013-04-23 10:01:59 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:59 UTC}])
8999
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c17c82cd1f77700000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c17c82cd1f77700000f')]}}).sort([[:position, :asc]])
9000
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c17c82cd1f77700000f')}).sort([[:position, :asc]])
9001
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c17c82cd1f77700000f')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9002
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('51765c17c82cd1f77700000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9003
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c17c82cd1f77700000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c17c82cd1f777000010')}}, {:_id=>1}).limit(-1)
9004
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c17c82cd1f77700000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c17c82cd1f777000010')}}).sort([[:position, :asc]])
9005
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70297299186660 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765c17c82cd1f77700000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c17c82cd1f777000010')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297299186400 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9006
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c17c82cd1f777000010'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('51765c17c82cd1f77700000d'), "serialized_template"=>{"en"=><BSON::Binary:70297271210140>}, "updated_at"=>2013-04-23 10:01:59 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:59 UTC}])
9007
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c17c82cd1f77700000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c17c82cd1f777000010')]}}).sort([[:position, :asc]])
9008
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c17c82cd1f777000010')}).sort([[:position, :asc]])
9009
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c17c82cd1f777000010')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9010
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"rickroll", :site_id=>BSON::ObjectId('51765c17c82cd1f77700000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9011
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c17c82cd1f77700000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c17c82cd1f777000011')}}, {:_id=>1}).limit(-1)
9012
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c17c82cd1f77700000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c17c82cd1f777000011')}}).sort([[:position, :asc]])
9013
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70297276428900 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765c17c82cd1f77700000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c17c82cd1f777000011')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297276428580 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9014
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[]}})
9015
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c17c82cd1f777000011'), "raw_template"=>{"en"=>"Rickroll"}, "title"=>{"en"=>"This should never show up in the search, even if it would be findable"}, "slug"=>{"en"=>"rickroll"}, "site_id"=>BSON::ObjectId('51765c17c82cd1f77700000d'), "serialized_template"=>{"en"=><BSON::Binary:70297233591120>}, "updated_at"=>2013-04-23 10:01:59 UTC, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "created_at"=>2013-04-23 10:01:59 UTC}])
9016
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c17c82cd1f77700000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c17c82cd1f777000011')]}}).sort([[:position, :asc]])
9017
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c17c82cd1f777000011')}).sort([[:position, :asc]])
9018
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c17c82cd1f777000011')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9019
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('51765c17c82cd1f77700000d')}, "fields"=>nil}).limit(-1)
9020
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('51765c17c82cd1f777000012'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('51765c17c82cd1f77700000d'), "serialized_item_template"=><BSON::Binary:70297276951840>, "slug"=>"examples", "updated_at"=>2013-04-23 10:01:59 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('51765c17c82cd1f777000013'), "created_at"=>2013-04-23 10:01:59 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('51765c17c82cd1f777000013'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 10:01:59 UTC, "created_at"=>2013-04-23 10:01:59 UTC}]}])
9021
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765c17c82cd1f777000014')}, :_slug=>"not-findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry51765c17c82cd1f777000012"]}})
9022
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"not-findable-entry", :content_type_id=>BSON::ObjectId('51765c17c82cd1f777000012')}, "fields"=>nil}).limit(-1)
9023
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70297278761860 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765c17c82cd1f777000012"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297278761520 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9024
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('51765c17c82cd1f777000014'), "_type"=>"Locomotive::ContentEntry51765c17c82cd1f777000012", "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51765c17c82cd1f777000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765c17c82cd1f777000012'), "_slug"=>"not-findable-entry", "updated_at"=>2013-04-23 10:01:59 UTC, "site_id"=>BSON::ObjectId('51765c17c82cd1f77700000d'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:01:59 UTC}])
9025
+ Started GET "/" for 127.0.0.1 at 2013-04-23 12:02:00 +0200
9026
+ Processing by Locomotive::Public::PagesController#show as HTML
9027
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
9028
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
9029
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), :depth=>0, "fullpath.en"=>{"$in"=>["index"]}}).sort([[:position, :asc]])
9030
+ Rendered text template (0.0ms)
9031
+ Completed 200 OK in 22ms (Views: 17.8ms)
9032
+ Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-04-23 12:02:00 +0200
9033
+ Processing by Locomotive::Public::PagesController#show as HTML
9034
+ Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"}
9035
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
9036
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
9037
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c14c82cd1f777000001'), :depth=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}).sort([[:position, :asc]])
9038
+ Rendered text template (0.0ms)
9039
+ Completed 200 OK in 209ms (Views: 0.5ms)
9040
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9041
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9042
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_accounts"}).limit(-1)
9043
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9044
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
9045
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9046
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
9047
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9048
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
9049
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9050
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_entries"}).limit(-1)
9051
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
9052
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
9053
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9054
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1)
9055
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
9056
+ Creating scope :root. Overwriting existing method Locomotive::Page.root.
9057
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9058
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9059
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
9060
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9061
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_accounts"}).limit(-1)
9062
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
9063
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_accounts", "query"=>{:email=>"admin@locomotiveapp.org"}, "fields"=>nil}).limit(-1)
9064
+ MONGODB locomotive_search_test['locomotive_accounts'].insert([{"locale"=>"en", "_id"=>BSON::ObjectId('51765c31c82cd1f785000002'), "name"=>"Admin", "email"=>"admin@locomotiveapp.org", "password_salt"=>"a6BkcWV6CDXZHcEqTwnF", "encrypted_password"=>"563be506365b23bf965bbe29ba2940b8362cf4e4", "updated_at"=>2013-04-23 10:02:25 UTC, "created_at"=>2013-04-23 10:02:25 UTC}])
9065
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9066
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_sites"}).limit(-1)
9067
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test"}, "fields"=>nil}).limit(-1)
9068
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test.example.com"], "_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-04-23 10:02:25 UTC, "updated_at"=>2013-04-23 10:02:25 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765c31c82cd1f785000003'), "account_id"=>BSON::ObjectId('51765c31c82cd1f785000002')}]}])
9069
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9070
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_pages"}).limit(-1)
9071
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9072
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c32c82cd1f785000004')}}, {:_id=>1}).limit(-1)
9073
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c32c82cd1f785000004'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "serialized_template"=>{"en"=><BSON::Binary:70297623932700>}, "updated_at"=>2013-04-23 10:02:26 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 10:02:26 UTC}])
9074
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c32c82cd1f785000004')}).sort([[:position, :asc]])
9075
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c32c82cd1f785000004')]}}).sort([[:position, :asc]])
9076
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c32c82cd1f785000004')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9077
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9078
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c32c82cd1f785000005')}}, {:_id=>1}).limit(-1)
9079
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c32c82cd1f785000005')}}).sort([[:position, :asc]])
9080
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70297625153800 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c32c82cd1f785000005')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297625153520 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9081
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c32c82cd1f785000005'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "serialized_template"=>{"en"=><BSON::Binary:70297625200920>}, "updated_at"=>2013-04-23 10:02:26 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 10:02:26 UTC}])
9082
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c32c82cd1f785000005')]}}).sort([[:position, :asc]])
9083
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c32c82cd1f785000005')}).sort([[:position, :asc]])
9084
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c32c82cd1f785000005')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9085
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('51765c31c82cd1f785000001')}, "fields"=>nil}).limit(-1)
9086
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('51765c32c82cd1f785000006'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "serialized_item_template"=><BSON::Binary:70297622777720>, "slug"=>"examples", "updated_at"=>2013-04-23 10:02:26 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('51765c32c82cd1f785000007'), "created_at"=>2013-04-23 10:02:26 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('51765c32c82cd1f785000007'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 10:02:26 UTC, "created_at"=>2013-04-23 10:02:26 UTC}]}])
9087
+ MONGODB locomotive_search_test['locomotive_content_types'].update({"_id"=>BSON::ObjectId('51765c32c82cd1f785000006')}, {"$push"=>{"entries_custom_fields"=>{"text_formatting"=>"html", "position"=>0, "required"=>false, "localized"=>false, "ui_enabled"=>true, "searchable"=>false, "_id"=>BSON::ObjectId('51765c32c82cd1f785000008'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Stuff", "type"=>"text", "name"=>"stuff", "updated_at"=>2013-04-23 10:02:26 UTC, "created_at"=>2013-04-23 10:02:26 UTC}}})
9088
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9089
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_entries"}).limit(-1)
9090
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765c32c82cd1f785000009')}, :_slug=>"findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry51765c32c82cd1f785000006"]}})
9091
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"findable-entry", :content_type_id=>BSON::ObjectId('51765c32c82cd1f785000006')}, "fields"=>nil}).limit(-1)
9092
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70297587383020 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765c32c82cd1f785000006"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297587382640 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9093
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('51765c32c82cd1f785000009'), "_type"=>"Locomotive::ContentEntry51765c32c82cd1f785000006", "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51765c32c82cd1f785000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765c32c82cd1f785000006'), "_slug"=>"findable-entry", "updated_at"=>2013-04-23 10:02:26 UTC, "site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:02:26 UTC}])
9094
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765c33c82cd1f78500000a')}, :_slug=>"hidden", :_type=>{"$in"=>["Locomotive::ContentEntry51765c32c82cd1f785000006"]}})
9095
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"hidden", :content_type_id=>BSON::ObjectId('51765c32c82cd1f785000006')}, "fields"=>nil}).limit(-1)
9096
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70297623395380 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765c32c82cd1f785000006"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297623395080 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9097
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>2, "_visible"=>true, "_id"=>BSON::ObjectId('51765c33c82cd1f78500000a'), "_type"=>"Locomotive::ContentEntry51765c32c82cd1f785000006", "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51765c32c82cd1f785000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765c32c82cd1f785000006'), "_slug"=>"hidden", "updated_at"=>2013-04-23 10:02:27 UTC, "site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:02:27 UTC}])
9098
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
9099
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"findable", :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :parent_id=>BSON::ObjectId('51765c32c82cd1f785000004')}, "fields"=>nil}).limit(-1)
9100
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765c32c82cd1f785000004'), :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c33c82cd1f78500000b')}}, {:_id=>1}).limit(-1)
9101
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('51765c32c82cd1f785000004')]}})
9102
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('51765c32c82cd1f785000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c33c82cd1f78500000b'), "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "parent_id"=>BSON::ObjectId('51765c32c82cd1f785000004'), "serialized_template"=>{"en"=><BSON::Binary:70297575989740>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 10:02:27 UTC, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "created_at"=>2013-04-23 10:02:27 UTC}])
9103
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c33c82cd1f78500000b')]}}).sort([[:position, :asc]])
9104
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c33c82cd1f78500000b')}).sort([[:position, :asc]])
9105
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c33c82cd1f78500000b')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9106
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
9107
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"search", :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :parent_id=>BSON::ObjectId('51765c32c82cd1f785000004')}, "fields"=>nil}).limit(-1)
9108
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765c32c82cd1f785000004'), :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c33c82cd1f78500000c')}}, {:_id=>1}).limit(-1)
9109
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765c32c82cd1f785000004'), :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c33c82cd1f78500000c')}}).sort([[:position, :asc]])
9110
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70297606767320 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>BSON::ObjectId('51765c32c82cd1f785000004'), :site_id=>BSON::ObjectId('51765c31c82cd1f785000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c33c82cd1f78500000c')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297606767060 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9111
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('51765c32c82cd1f785000004')]}})
9112
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('51765c32c82cd1f785000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c33c82cd1f78500000c'), "raw_template"=>{"en"=>" <ul>\n {% for result in site.search %}\n {% if result.content_type_slug == 'examples' %}\n <li><a href=\"/examples/{{result._slug}}\">{{ result.name }}</a></li>\n {% else %}\n <li><a href=\"/{{result.slug}}\">{{ result.title }}</a></li>\n {% endif %}\n {% endfor %}\n </ul>\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "parent_id"=>BSON::ObjectId('51765c32c82cd1f785000004'), "serialized_template"=>{"en"=><BSON::Binary:70297604869020>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 10:02:27 UTC, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "created_at"=>2013-04-23 10:02:27 UTC}])
9113
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c33c82cd1f78500000c')]}}).sort([[:position, :asc]])
9114
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c33c82cd1f78500000c')}).sort([[:position, :asc]])
9115
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c33c82cd1f78500000c')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9116
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
9117
+ MONGODB locomotive_search_test['locomotive_sites'].find({:_id=>BSON::ObjectId('51765c31c82cd1f785000001')}).limit(-1).sort([[:_id, :asc]])
9118
+ MONGODB locomotive_search_test['locomotive_pages'].update({"_id"=>BSON::ObjectId('51765c32c82cd1f785000004')}, {"$set"=>{"raw_template"=>{"en"=>"\n <form action=\"/{{ locale }}/search\" method=\"GET\">\n <label for=\"search\">Search</label>\n <input type=\"text\" name=\"search\" id=\"search\">\n <input type=\"submit\" value=\"Search\">\n </form>"}, "serialized_template"=>{"en"=><BSON::Binary:70297643593800>}, "updated_at"=>2013-04-23 10:02:28 UTC}})
9119
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c32c82cd1f785000004')]}}).sort([[:position, :asc]])
9120
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
9121
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test2"}, "fields"=>nil}).limit(-1)
9122
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test2.example.com"], "_id"=>BSON::ObjectId('51765c34c82cd1f78500000d'), "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-04-23 10:02:25 UTC, "updated_at"=>2013-04-23 10:02:28 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765c34c82cd1f78500000e'), "account_id"=>BSON::ObjectId('51765c31c82cd1f785000002')}]}])
9123
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765c34c82cd1f78500000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9124
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c34c82cd1f78500000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c34c82cd1f78500000f')}}, {:_id=>1}).limit(-1)
9125
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c34c82cd1f78500000f'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765c34c82cd1f78500000d'), "serialized_template"=>{"en"=><BSON::Binary:70297587072300>}, "updated_at"=>2013-04-23 10:02:28 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 10:02:28 UTC}])
9126
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c34c82cd1f78500000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c34c82cd1f78500000f')]}}).sort([[:position, :asc]])
9127
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c34c82cd1f78500000f')}).sort([[:position, :asc]])
9128
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c34c82cd1f78500000f')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9129
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('51765c34c82cd1f78500000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9130
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c34c82cd1f78500000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c34c82cd1f785000010')}}, {:_id=>1}).limit(-1)
9131
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c34c82cd1f78500000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c34c82cd1f785000010')}}).sort([[:position, :asc]])
9132
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70297621485160 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765c34c82cd1f78500000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c34c82cd1f785000010')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297621484760 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9133
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c34c82cd1f785000010'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('51765c34c82cd1f78500000d'), "serialized_template"=>{"en"=><BSON::Binary:70297587123400>}, "updated_at"=>2013-04-23 10:02:28 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 10:02:28 UTC}])
9134
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c34c82cd1f78500000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c34c82cd1f785000010')]}}).sort([[:position, :asc]])
9135
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c34c82cd1f785000010')}).sort([[:position, :asc]])
9136
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c34c82cd1f785000010')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9137
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"rickroll", :site_id=>BSON::ObjectId('51765c34c82cd1f78500000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9138
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c34c82cd1f78500000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c34c82cd1f785000011')}}, {:_id=>1}).limit(-1)
9139
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c34c82cd1f78500000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c34c82cd1f785000011')}}).sort([[:position, :asc]])
9140
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70297624961920 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765c34c82cd1f78500000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c34c82cd1f785000011')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297624961640 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9141
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[]}})
9142
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c34c82cd1f785000011'), "raw_template"=>{"en"=>"Rickroll"}, "title"=>{"en"=>"This should never show up in the search, even if it would be findable"}, "slug"=>{"en"=>"rickroll"}, "site_id"=>BSON::ObjectId('51765c34c82cd1f78500000d'), "serialized_template"=>{"en"=><BSON::Binary:70297624851200>}, "updated_at"=>2013-04-23 10:02:28 UTC, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "created_at"=>2013-04-23 10:02:28 UTC}])
9143
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c34c82cd1f78500000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c34c82cd1f785000011')]}}).sort([[:position, :asc]])
9144
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c34c82cd1f785000011')}).sort([[:position, :asc]])
9145
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c34c82cd1f785000011')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9146
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('51765c34c82cd1f78500000d')}, "fields"=>nil}).limit(-1)
9147
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('51765c35c82cd1f785000012'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('51765c34c82cd1f78500000d'), "serialized_item_template"=><BSON::Binary:70297576185140>, "slug"=>"examples", "updated_at"=>2013-04-23 10:02:29 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('51765c35c82cd1f785000013'), "created_at"=>2013-04-23 10:02:29 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('51765c35c82cd1f785000013'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 10:02:29 UTC, "created_at"=>2013-04-23 10:02:29 UTC}]}])
9148
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765c35c82cd1f785000014')}, :_slug=>"not-findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry51765c35c82cd1f785000012"]}})
9149
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"not-findable-entry", :content_type_id=>BSON::ObjectId('51765c35c82cd1f785000012')}, "fields"=>nil}).limit(-1)
9150
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70297606767560 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765c35c82cd1f785000012"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70297606767300 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9151
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('51765c35c82cd1f785000014'), "_type"=>"Locomotive::ContentEntry51765c35c82cd1f785000012", "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51765c35c82cd1f785000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765c35c82cd1f785000012'), "_slug"=>"not-findable-entry", "updated_at"=>2013-04-23 10:02:29 UTC, "site_id"=>BSON::ObjectId('51765c34c82cd1f78500000d'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:02:29 UTC}])
9152
+ Started GET "/" for 127.0.0.1 at 2013-04-23 12:02:29 +0200
9153
+ Processing by Locomotive::Public::PagesController#show as HTML
9154
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
9155
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
9156
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), :depth=>0, "fullpath.en"=>{"$in"=>["index"]}}).sort([[:position, :asc]])
9157
+ Rendered text template (0.0ms)
9158
+ Completed 200 OK in 22ms (Views: 18.1ms)
9159
+ Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-04-23 12:02:29 +0200
9160
+ Processing by Locomotive::Public::PagesController#show as HTML
9161
+ Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"}
9162
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
9163
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
9164
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c31c82cd1f785000001'), :depth=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}).sort([[:position, :asc]])
9165
+ Rendered text template (0.0ms)
9166
+ Completed 200 OK in 211ms (Views: 0.5ms)
9167
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9168
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9169
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_accounts"}).limit(-1)
9170
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9171
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
9172
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9173
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
9174
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9175
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
9176
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9177
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_entries"}).limit(-1)
9178
+ MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
9179
+ MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
9180
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9181
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_types"}).limit(-1)
9182
+ MONGODB locomotive_search_test['locomotive_content_types'].find({})
9183
+ Creating scope :root. Overwriting existing method Locomotive::Page.root.
9184
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9185
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9186
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
9187
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9188
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_accounts"}).limit(-1)
9189
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
9190
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_accounts", "query"=>{:email=>"admin@locomotiveapp.org"}, "fields"=>nil}).limit(-1)
9191
+ MONGODB locomotive_search_test['locomotive_accounts'].insert([{"locale"=>"en", "_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000002'), "name"=>"Admin", "email"=>"admin@locomotiveapp.org", "password_salt"=>"rUiUazX7MBnpuWGM7Htb", "encrypted_password"=>"e11d28bce6d545e1d575574e7f2522c10d8c81df", "updated_at"=>2013-04-23 10:03:10 UTC, "created_at"=>2013-04-23 10:03:10 UTC}])
9192
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9193
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_sites"}).limit(-1)
9194
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test"}, "fields"=>nil}).limit(-1)
9195
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test.example.com"], "_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-04-23 10:03:09 UTC, "updated_at"=>2013-04-23 10:03:10 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000003'), "account_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000002')}]}])
9196
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9197
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_pages"}).limit(-1)
9198
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9199
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c5ec82cd1f7ab000004')}}, {:_id=>1}).limit(-1)
9200
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000004'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "serialized_template"=>{"en"=><BSON::Binary:70347106769400>}, "updated_at"=>2013-04-23 10:03:10 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 10:03:10 UTC}])
9201
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000004')}).sort([[:position, :asc]])
9202
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c5ec82cd1f7ab000004')]}}).sort([[:position, :asc]])
9203
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c5ec82cd1f7ab000004')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9204
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9205
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c5ec82cd1f7ab000005')}}, {:_id=>1}).limit(-1)
9206
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c5ec82cd1f7ab000005')}}).sort([[:position, :asc]])
9207
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70347160759660 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c5ec82cd1f7ab000005')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70347160759200 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9208
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000005'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "serialized_template"=>{"en"=><BSON::Binary:70347163462040>}, "updated_at"=>2013-04-23 10:03:10 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 10:03:10 UTC}])
9209
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c5ec82cd1f7ab000005')]}}).sort([[:position, :asc]])
9210
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000005')}).sort([[:position, :asc]])
9211
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c5ec82cd1f7ab000005')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9212
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001')}, "fields"=>nil}).limit(-1)
9213
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000006'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "serialized_item_template"=><BSON::Binary:70347160760240>, "slug"=>"examples", "updated_at"=>2013-04-23 10:03:11 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000007'), "created_at"=>2013-04-23 10:03:11 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000007'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 10:03:11 UTC, "created_at"=>2013-04-23 10:03:11 UTC}]}])
9214
+ MONGODB locomotive_search_test['locomotive_content_types'].update({"_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000006')}, {"$push"=>{"entries_custom_fields"=>{"text_formatting"=>"html", "position"=>0, "required"=>false, "localized"=>false, "ui_enabled"=>true, "searchable"=>false, "_id"=>BSON::ObjectId('51765c5fc82cd1f7ab000008'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Stuff", "type"=>"text", "name"=>"stuff", "updated_at"=>2013-04-23 10:03:11 UTC, "created_at"=>2013-04-23 10:03:11 UTC}}})
9215
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9216
+ MONGODB locomotive_search_test['$cmd'].find({:create=>"locomotive_content_entries"}).limit(-1)
9217
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765c5fc82cd1f7ab000009')}, :_slug=>"findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry51765c5ec82cd1f7ab000006"]}})
9218
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"findable-entry", :content_type_id=>BSON::ObjectId('51765c5ec82cd1f7ab000006')}, "fields"=>nil}).limit(-1)
9219
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70347122493600 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765c5ec82cd1f7ab000006"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70347122493220 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9220
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('51765c5fc82cd1f7ab000009'), "_type"=>"Locomotive::ContentEntry51765c5ec82cd1f7ab000006", "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51765c5ec82cd1f7ab000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000006'), "_slug"=>"findable-entry", "updated_at"=>2013-04-23 10:03:11 UTC, "site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:03:11 UTC}])
9221
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765c5fc82cd1f7ab00000a')}, :_slug=>"hidden", :_type=>{"$in"=>["Locomotive::ContentEntry51765c5ec82cd1f7ab000006"]}})
9222
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"hidden", :content_type_id=>BSON::ObjectId('51765c5ec82cd1f7ab000006')}, "fields"=>nil}).limit(-1)
9223
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70347124652740 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765c5ec82cd1f7ab000006"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70347113693840 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9224
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>2, "_visible"=>true, "_id"=>BSON::ObjectId('51765c5fc82cd1f7ab00000a'), "_type"=>"Locomotive::ContentEntry51765c5ec82cd1f7ab000006", "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry51765c5ec82cd1f7ab000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000006'), "_slug"=>"hidden", "updated_at"=>2013-04-23 10:03:11 UTC, "site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:03:11 UTC}])
9225
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
9226
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"findable", :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :parent_id=>BSON::ObjectId('51765c5ec82cd1f7ab000004')}, "fields"=>nil}).limit(-1)
9227
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765c5ec82cd1f7ab000004'), :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c5fc82cd1f7ab00000b')}}, {:_id=>1}).limit(-1)
9228
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('51765c5ec82cd1f7ab000004')]}})
9229
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('51765c5ec82cd1f7ab000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c5fc82cd1f7ab00000b'), "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "parent_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000004'), "serialized_template"=>{"en"=><BSON::Binary:70347123067200>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 10:03:11 UTC, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "created_at"=>2013-04-23 10:03:11 UTC}])
9230
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c5fc82cd1f7ab00000b')]}}).sort([[:position, :asc]])
9231
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c5fc82cd1f7ab00000b')}).sort([[:position, :asc]])
9232
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c5fc82cd1f7ab00000b')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9233
+ MONGODB locomotive_search_test['locomotive_pages'].find({"slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
9234
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"search", :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :parent_id=>BSON::ObjectId('51765c5ec82cd1f7ab000004')}, "fields"=>nil}).limit(-1)
9235
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765c5ec82cd1f7ab000004'), :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c60c82cd1f7ab00000c')}}, {:_id=>1}).limit(-1)
9236
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>BSON::ObjectId('51765c5ec82cd1f7ab000004'), :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c60c82cd1f7ab00000c')}}).sort([[:position, :asc]])
9237
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70347161314100 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>BSON::ObjectId('51765c5ec82cd1f7ab000004'), :site_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :_id=>{"$ne"=>BSON::ObjectId('51765c60c82cd1f7ab00000c')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70347161313840 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9238
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[BSON::ObjectId('51765c5ec82cd1f7ab000004')]}})
9239
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[BSON::ObjectId('51765c5ec82cd1f7ab000004')], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000c'), "raw_template"=>{"en"=>" <ul>\n {% for result in site.search %}\n {% if result.content_type_slug == 'examples' %}\n <li><a href=\"/examples/{{result._slug}}\">{{ result.name }}</a></li>\n {% else %}\n <li><a href=\"/{{result.slug}}\">{{ result.title }}</a></li>\n {% endif %}\n {% endfor %}\n </ul>\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "parent_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000004'), "serialized_template"=>{"en"=><BSON::Binary:70347162901820>}, "target_klass_name"=>nil, "updated_at"=>2013-04-23 10:03:12 UTC, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "created_at"=>2013-04-23 10:03:12 UTC}])
9240
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c60c82cd1f7ab00000c')]}}).sort([[:position, :asc]])
9241
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000c')}).sort([[:position, :asc]])
9242
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c60c82cd1f7ab00000c')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9243
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "slug.en"=>"index"}).limit(-1).sort([[:position, :asc]])
9244
+ MONGODB locomotive_search_test['locomotive_sites'].find({:_id=>BSON::ObjectId('51765c5ec82cd1f7ab000001')}).limit(-1).sort([[:_id, :asc]])
9245
+ MONGODB locomotive_search_test['locomotive_pages'].update({"_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000004')}, {"$set"=>{"raw_template"=>{"en"=>"\n <form action=\"/{{ locale }}/search\" method=\"GET\">\n <label for=\"search\">Search</label>\n <input type=\"text\" name=\"search\" id=\"search\">\n <input type=\"submit\" value=\"Search\">\n </form>"}, "serialized_template"=>{"en"=><BSON::Binary:70347140290720>}, "updated_at"=>2013-04-23 10:03:12 UTC}})
9246
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c5ec82cd1f7ab000004')]}}).sort([[:position, :asc]])
9247
+ MONGODB locomotive_search_test['locomotive_accounts'].find({:name=>"Admin"}).limit(-1).sort([[:_id, :asc]])
9248
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_sites", "query"=>{:subdomain=>"test2"}, "fields"=>nil}).limit(-1)
9249
+ MONGODB locomotive_search_test['locomotive_sites'].insert([{"locales"=>["en"], "domains"=>["test2.example.com"], "_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-04-23 10:03:09 UTC, "updated_at"=>2013-04-23 10:03:12 UTC, "memberships"=>[{"role"=>"admin", "_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000e'), "account_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000002')}]}])
9250
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"index", :site_id=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9251
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c60c82cd1f7ab00000f')}}, {:_id=>1}).limit(-1)
9252
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000f'), "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), "serialized_template"=>{"en"=><BSON::Binary:70347160748800>}, "updated_at"=>2013-04-23 10:03:12 UTC, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "created_at"=>2013-04-23 10:03:12 UTC}])
9253
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c60c82cd1f7ab00000f')]}}).sort([[:position, :asc]])
9254
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000f')}).sort([[:position, :asc]])
9255
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c60c82cd1f7ab00000f')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9256
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"404", :site_id=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9257
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c61c82cd1f7ab000010')}}, {:_id=>1}).limit(-1)
9258
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c61c82cd1f7ab000010')}}).sort([[:position, :asc]])
9259
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70347124190540 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c61c82cd1f7ab000010')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70347119346440 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9260
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c61c82cd1f7ab000010'), "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), "serialized_template"=>{"en"=><BSON::Binary:70347160599100>}, "updated_at"=>2013-04-23 10:03:13 UTC, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "created_at"=>2013-04-23 10:03:13 UTC}])
9261
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c61c82cd1f7ab000010')]}}).sort([[:position, :asc]])
9262
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c61c82cd1f7ab000010')}).sort([[:position, :asc]])
9263
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c61c82cd1f7ab000010')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9264
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_pages", "query"=>{"slug.en"=>"rickroll", :site_id=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), :parent_id=>nil}, "fields"=>nil}).limit(-1)
9265
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c61c82cd1f7ab000011')}}, {:_id=>1}).limit(-1)
9266
+ MONGODB locomotive_search_test['locomotive_pages'].find({:parent_id=>nil, :site_id=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c61c82cd1f7ab000011')}}).sort([[:position, :asc]])
9267
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_pages", "$reduce"=><BSON::Code:70347124652740 @data="function(obj, prev) { if (obj.position && prev.max == 'start') { prev.max = obj.position; } if (obj.position && prev.max < obj.position) { prev.max = obj.position; } }" @scope="{}">, "cond"=>{:parent_id=>nil, :site_id=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), :_id=>{"$ne"=>BSON::ObjectId('51765c61c82cd1f7ab000011')}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70347113693840 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9268
+ MONGODB locomotive_search_test['locomotive_pages'].find({:_id=>{"$in"=>[]}})
9269
+ MONGODB locomotive_search_test['locomotive_pages'].insert([{"parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "redirect_type"=>301, "listed"=>true, "published"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "_id"=>BSON::ObjectId('51765c61c82cd1f7ab000011'), "raw_template"=>{"en"=>"Rickroll"}, "title"=>{"en"=>"This should never show up in the search, even if it would be findable"}, "slug"=>{"en"=>"rickroll"}, "site_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), "serialized_template"=>{"en"=><BSON::Binary:70347119072160>}, "updated_at"=>2013-04-23 10:03:13 UTC, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "created_at"=>2013-04-23 10:03:13 UTC}])
9270
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), "template_dependencies.en"=>{"$in"=>[BSON::ObjectId('51765c61c82cd1f7ab000011')]}}).sort([[:position, :asc]])
9271
+ MONGODB locomotive_search_test['locomotive_pages'].find({"parent_id"=>BSON::ObjectId('51765c61c82cd1f7ab000011')}).sort([[:position, :asc]])
9272
+ MONGODB locomotive_search_test['locomotive_pages'].update({"parent_ids"=>{"$in"=>[BSON::ObjectId('51765c61c82cd1f7ab000011')]}}, {"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}})
9273
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_types", "query"=>{:slug=>"examples", :site_id=>BSON::ObjectId('51765c60c82cd1f7ab00000d')}, "fields"=>nil}).limit(-1)
9274
+ MONGODB locomotive_search_test['locomotive_content_types'].insert([{"order_direction"=>"asc", "public_submission_enabled"=>false, "entries_custom_fields_version"=>0, "_id"=>BSON::ObjectId('51765c61c82cd1f7ab000012'), "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), "serialized_item_template"=><BSON::Binary:70347140994220>, "slug"=>"examples", "updated_at"=>2013-04-23 10:03:13 UTC, "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>BSON::ObjectId('51765c61c82cd1f7ab000013'), "created_at"=>2013-04-23 10:03:13 UTC, "entries_custom_fields"=>[{"text_formatting"=>"html", "position"=>0, "required"=>true, "localized"=>false, "ui_enabled"=>true, "searchable"=>true, "_id"=>BSON::ObjectId('51765c61c82cd1f7ab000013'), "_type"=>"Locomotive::ContentTypeEntryField", "label"=>"Name", "type"=>"string", "name"=>"name", "updated_at"=>2013-04-23 10:03:13 UTC, "created_at"=>2013-04-23 10:03:13 UTC}]}])
9275
+ MONGODB locomotive_search_test['locomotive_content_entries'].find({:_id=>{"$ne"=>BSON::ObjectId('51765c61c82cd1f7ab000014')}, :_slug=>"not-findable-entry", :_type=>{"$in"=>["Locomotive::ContentEntry51765c61c82cd1f7ab000012"]}})
9276
+ MONGODB locomotive_search_test['$cmd'].find({"count"=>"locomotive_content_entries", "query"=>{:_slug=>"not-findable-entry", :content_type_id=>BSON::ObjectId('51765c61c82cd1f7ab000012')}, "fields"=>nil}).limit(-1)
9277
+ MONGODB locomotive_search_test['$cmd'].find({"group"=>{"ns"=>"locomotive_content_entries", "$reduce"=><BSON::Code:70347161700260 @data="function(obj, prev) { if (obj._position && prev.max == 'start') { prev.max = obj._position; } if (obj._position && prev.max < obj._position) { prev.max = obj._position; } }" @scope="{}">, "cond"=>{:_type=>{"$in"=>["Locomotive::ContentEntry51765c61c82cd1f7ab000012"]}}, "initial"=>{:max=>"start"}, "finalize"=><BSON::Code:70347161700000 @data="function(obj) { if (obj.max == 'start' || isNaN(obj.max)) { obj.max = 0; } return obj; }" @scope="{}">}}).limit(-1)
9278
+ MONGODB locomotive_search_test['locomotive_content_entries'].insert([{"_position"=>1, "_visible"=>true, "_id"=>BSON::ObjectId('51765c61c82cd1f7ab000014'), "_type"=>"Locomotive::ContentEntry51765c61c82cd1f7ab000012", "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry51765c61c82cd1f7ab000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "localized"=>false}], "version"=>0}, "content_type_id"=>BSON::ObjectId('51765c61c82cd1f7ab000012'), "_slug"=>"not-findable-entry", "updated_at"=>2013-04-23 10:03:13 UTC, "site_id"=>BSON::ObjectId('51765c60c82cd1f7ab00000d'), "_label_field_name"=>"name", "created_at"=>2013-04-23 10:03:13 UTC}])
9279
+ Started GET "/" for 127.0.0.1 at 2013-04-23 12:03:14 +0200
9280
+ Processing by Locomotive::Public::PagesController#show as HTML
9281
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
9282
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
9283
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :depth=>0, "fullpath.en"=>{"$in"=>["index"]}}).sort([[:position, :asc]])
9284
+ Rendered text template (0.0ms)
9285
+ Completed 200 OK in 23ms (Views: 18.9ms)
9286
+ Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-04-23 12:03:14 +0200
9287
+ Processing by Locomotive::Public::PagesController#show as HTML
9288
+ Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"}
9289
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
9290
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
9291
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :depth=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}).sort([[:position, :asc]])
9292
+ Rendered text template (0.0ms)
9293
+ Completed 200 OK in 208ms (Views: 0.5ms)
9294
+ Started GET "/findable" for 127.0.0.1 at 2013-04-23 12:03:14 +0200
9295
+ Processing by Locomotive::Public::PagesController#show as HTML
9296
+ Parameters: {"path"=>"findable"}
9297
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
9298
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
9299
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :depth=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}).sort([[:position, :asc]])
9300
+ Rendered text template (0.0ms)
9301
+ Completed 200 OK in 4ms (Views: 0.4ms)
9302
+ Started GET "/" for 127.0.0.1 at 2013-04-23 12:03:14 +0200
9303
+ Processing by Locomotive::Public::PagesController#show as HTML
9304
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
9305
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
9306
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :depth=>0, "fullpath.en"=>{"$in"=>["index"]}}).sort([[:position, :asc]])
9307
+ Rendered text template (0.0ms)
9308
+ Completed 200 OK in 3ms (Views: 0.2ms)
9309
+ Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-04-23 12:03:14 +0200
9310
+ Processing by Locomotive::Public::PagesController#show as HTML
9311
+ Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"}
9312
+ [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com
9313
+ MONGODB locomotive_search_test['locomotive_sites'].find({:domains=>{"$in"=>["test.example.com"]}}).limit(-1).sort([[:_id, :asc]])
9314
+ MONGODB locomotive_search_test['locomotive_pages'].find({"site_id"=>BSON::ObjectId('51765c5ec82cd1f7ab000001'), :depth=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}).sort([[:position, :asc]])
9315
+ Rendered text template (0.0ms)
9316
+ Completed 200 OK in 205ms (Views: 0.3ms)
9317
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9318
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9319
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_accounts"}).limit(-1)
9320
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9321
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_sites"}).limit(-1)
9322
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9323
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_pages"}).limit(-1)
9324
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9325
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_types"}).limit(-1)
9326
+ MONGODB locomotive_search_test['system.namespaces'].find({})
9327
+ MONGODB locomotive_search_test['$cmd'].find({:drop=>"locomotive_content_entries"}).limit(-1)