MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (2.5182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (19.1839ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5083ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4117ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2058ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2480ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (31.9817ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3018ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2632ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2320ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2532ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.1988ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2718ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (7.3309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2890ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2439ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2031ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4287ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4318ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b56287f6433015000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"0fad2729d7aee0bce7eb64cd088276562db72146", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"V4zxnPuJYDqzcDnMyyKq", "api_key"=>"6f07088e4b216f7aec387653b3bd11ff5a3a55c2", "updated_at"=>2014-11-22 16:10:10 UTC, "created_at"=>2014-11-22 16:10:10 UTC}] flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (293.0152ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b56387f6433015000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:10:10 UTC, "updated_at"=>2014-11-22 16:10:11 UTC, "memberships"=>[{"_id"=>"5470b56387f6433015000003", "role"=>"admin", "account_id"=>"5470b56287f6433015000001"}]}] flags=[] (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b56387f6433015000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b56387f6433015000002", "_id"=>{"$ne"=>"5470b56387f6433015000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3872ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b56387f6433015000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b56387f6433015000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:11 UTC, "created_at"=>2014-11-22 16:10:11 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56387f6433015000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (42.8810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002", "template_dependencies.en"=>{"$in"=>["5470b56387f6433015000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b56387f6433015000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b56387f6433015000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b56387f6433015000002", "_id"=>{"$ne"=>"5470b56387f6433015000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5679ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b56387f6433015000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b56387f6433015000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:11 UTC, "created_at"=>2014-11-22 16:10:11 UTC}] flags=[] (0.2589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002", "template_dependencies.en"=>{"$in"=>["5470b56387f6433015000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56387f6433015000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3061ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b56387f6433015000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b56387f6433015000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b56387f6433015000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b56387f6433015000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b56487f6433015000007", "updated_at"=>2014-11-22 16:10:12 UTC, "created_at"=>2014-11-22 16:10:12 UTC, "entries_custom_fields"=>[{"_id"=>"5470b56487f6433015000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b56387f6433015000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b56387f6433015000006"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5562ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b56487f6433015000008", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b56387f6433015000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b56487f6433015000009", "updated_at"=>2014-11-22 16:10:12 UTC, "created_at"=>2014-11-22 16:10:12 UTC, "entries_custom_fields"=>[{"_id"=>"5470b56487f6433015000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b56487f643301500000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b56387f6433015000006", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b56487f643301500000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b56387f6433015000002", "_id"=>"5470b56387f6433015000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8693ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b56487f6433015000008"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b56387f6433015000006"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1302ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b56387f6433015000006"} update={"$set"=>{"updated_at"=>2014-11-22 16:10:12 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b56487f643301500000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b56487f6433015000008", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b56387f6433015000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b56487f6433015000008", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b56487f643301500000d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b56387f6433015000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b56387f6433015000006", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b56387f6433015000006"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b56487f643301500000d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b56387f6433015000006", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b56487f6433015000008", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b56387f6433015000006", "content_type_id"=>"5470b56387f6433015000006", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b56387f6433015000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:10:12 UTC, "created_at"=>2014-11-22 16:10:12 UTC}] flags=[] (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b56487f643301500000d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b56487f6433015000008"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b56487f643301500000e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b56487f6433015000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b56487f6433015000008", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b56487f6433015000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5050ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b56487f6433015000008"]}}} (0.3960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b56487f643301500000e", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b56487f6433015000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b56387f6433015000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b56487f643301500000d", "_type"=>"Locomotive::ContentEntry5470b56487f6433015000008", "content_type_id"=>"5470b56487f6433015000008", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b56387f6433015000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:10:12 UTC, "created_at"=>2014-11-22 16:10:12 UTC}] flags=[] (0.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b56487f643301500000f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b56487f6433015000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b56487f6433015000008", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b56487f6433015000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.6890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b56487f6433015000008"]}}} (0.5190ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b56487f6433015000008"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (10.0851ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b56487f643301500000f", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b56487f6433015000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b56387f6433015000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b56487f6433015000008", "content_type_id"=>"5470b56487f6433015000008", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b56387f6433015000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:10:12 UTC, "created_at"=>2014-11-22 16:10:12 UTC}] flags=[] (0.2599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7031ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b56387f6433015000002", "parent_id"=>"5470b56387f6433015000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56387f6433015000004", "site_id"=>"5470b56387f6433015000002", "_id"=>{"$ne"=>"5470b56587f6433015000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b56387f6433015000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5832ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b56587f6433015000010", "parent_ids"=>["5470b56387f6433015000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b56387f6433015000002", "parent_id"=>"5470b56387f6433015000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:13 UTC, "created_at"=>2014-11-22 16:10:13 UTC, "editable_elements"=>[{"_id"=>"5470b56587f6433015000011", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:10:13 UTC, "created_at"=>2014-11-22 16:10:13 UTC}]}] flags=[] (0.3238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002", "template_dependencies.en"=>{"$in"=>["5470b56587f6433015000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56587f6433015000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b56587f6433015000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b56387f6433015000002", "parent_id"=>"5470b56387f6433015000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56387f6433015000004", "site_id"=>"5470b56387f6433015000002", "_id"=>{"$ne"=>"5470b56587f6433015000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56387f6433015000004", "site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b56387f6433015000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b56587f6433015000012", "parent_ids"=>["5470b56387f6433015000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b56387f6433015000002", "parent_id"=>"5470b56387f6433015000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:13 UTC, "created_at"=>2014-11-22 16:10:13 UTC}] flags=[] (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002", "template_dependencies.en"=>{"$in"=>["5470b56587f6433015000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56587f6433015000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3037ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b56587f6433015000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b56387f6433015000002", "parent_id"=>"5470b56387f6433015000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56387f6433015000004", "site_id"=>"5470b56387f6433015000002", "_id"=>{"$ne"=>"5470b56587f6433015000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56387f6433015000004", "site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b56387f6433015000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6769ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b56587f6433015000013", "parent_ids"=>["5470b56387f6433015000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b56387f6433015000002", "parent_id"=>"5470b56387f6433015000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:13 UTC, "created_at"=>2014-11-22 16:10:13 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002", "template_dependencies.en"=>{"$in"=>["5470b56587f6433015000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3493ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56587f6433015000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2899ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b56587f6433015000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b56387f6433015000002", "parent_id"=>"5470b56387f6433015000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56387f6433015000004", "site_id"=>"5470b56387f6433015000002", "_id"=>{"$ne"=>"5470b56587f6433015000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.6401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56387f6433015000004", "site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b56387f6433015000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6618ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b56587f6433015000014", "parent_ids"=>["5470b56387f6433015000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b56387f6433015000002", "parent_id"=>"5470b56387f6433015000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:13 UTC, "created_at"=>2014-11-22 16:10:13 UTC}] flags=[] (0.2811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002", "template_dependencies.en"=>{"$in"=>["5470b56587f6433015000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (4.7789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56587f6433015000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4308ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b56587f6433015000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7763ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b56387f6433015000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4537ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b56387f6433015000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:10:14 UTC}} flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002", "template_dependencies.en"=>{"$in"=>["5470b56387f6433015000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3881ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b56787f6433015000015", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:10:10 UTC, "updated_at"=>2014-11-22 16:10:15 UTC, "memberships"=>[{"_id"=>"5470b56787f6433015000016", "role"=>"admin", "account_id"=>"5470b56287f6433015000001"}]}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b56787f6433015000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b56787f6433015000015", "_id"=>{"$ne"=>"5470b56787f6433015000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b56787f6433015000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b56787f6433015000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:15 UTC, "created_at"=>2014-11-22 16:10:15 UTC}] flags=[] (0.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56787f6433015000015", "template_dependencies.en"=>{"$in"=>["5470b56787f6433015000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56787f6433015000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b56787f6433015000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b56787f6433015000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b56787f6433015000015", "_id"=>{"$ne"=>"5470b56787f6433015000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7758ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b56787f6433015000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b56787f6433015000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b56787f6433015000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:15 UTC, "created_at"=>2014-11-22 16:10:15 UTC}] flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56787f6433015000015", "template_dependencies.en"=>{"$in"=>["5470b56787f6433015000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56787f6433015000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3109ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b56787f6433015000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b56787f6433015000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b56787f6433015000015", "_id"=>{"$ne"=>"5470b56787f6433015000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b56787f6433015000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b56787f6433015000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b56787f6433015000015", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:15 UTC, "created_at"=>2014-11-22 16:10:15 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56787f6433015000015", "template_dependencies.en"=>{"$in"=>["5470b56787f6433015000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b56787f6433015000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2923ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b56787f6433015000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b56787f6433015000015", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b56887f643301500001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b56787f6433015000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b56887f643301500001b", "updated_at"=>2014-11-22 16:10:16 UTC, "created_at"=>2014-11-22 16:10:16 UTC, "entries_custom_fields"=>[{"_id"=>"5470b56887f643301500001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b56887f643301500001c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b56887f643301500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b56887f643301500001a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b56887f643301500001a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b56887f643301500001c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b56887f643301500001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b56887f643301500001a", "content_type_id"=>"5470b56887f643301500001a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b56787f6433015000015", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:10:16 UTC, "created_at"=>2014-11-22 16:10:16 UTC}] flags=[] (0.1919ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 17:10:18 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.7930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b56287f6433015000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5043ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.6ms) Completed 200 OK in 44.2ms (Views: 38.2ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 17:10:18 +0100 Compiled jquery.js (4ms) (pid 45734) Compiled locomotive/not_logged_in.js (122ms) (pid 45734) Served asset /locomotive/not_logged_in.js - 200 OK (134ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 17:10:19 +0100 Compiled locomotive/blueprint/screen.css (0ms) (pid 45734) Compiled locomotive/font-awesome.css (232ms) (pid 45734) Compiled locomotive/not_logged_in/installation.css (1148ms) (pid 45734) Compiled locomotive/not_logged_in/layout.css (954ms) (pid 45734) Compiled locomotive/not_logged_in.css (2362ms) (pid 45734) Served asset /locomotive/not_logged_in.css - 200 OK (2376ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 17:10:21 +0100 Served asset /locomotive/background/body.png - 200 OK (4ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 17:10:21 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b56287f6433015000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5281ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b56287f6433015000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 16:10:21 UTC, "updated_at"=>2014-11-22 16:10:21 UTC}} flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b56287f6433015000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 16:10:21 UTC, "current_sign_in_at"=>2014-11-22 16:10:21 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 16:10:21 UTC}} flags=[] (0.1540ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 24.1ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:10:21 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b56287f6433015000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b56287f6433015000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.4081ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[3942920016385] (0.1101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b56387f6433015000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b56487f6433015000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6521ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (24.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (10.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (47.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b56287f6433015000001", :role=>:admin}}}} (0.5679ms) Rendered locomotive/shared/_main_app_head.html.haml (2.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (14.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b56287f6433015000001"}} (0.5302ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b56287f6433015000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6180ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (4.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.3ms) Rendered locomotive/shared/_main_app_header.html.haml (6.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (31.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 132.0ms (Views: 116.9ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 17:10:21 +0100 Compiled locomotive/jquery/ui.css (243ms) (pid 45734) Compiled locomotive/jquery.tagit.css (0ms) (pid 45734) Compiled formtastic.css (0ms) (pid 45734) Compiled select2/select2.css (134ms) (pid 45734) Compiled codemirror.css (0ms) (pid 45734) Compiled codemirror/themes/neat.css (0ms) (pid 45734) Compiled locomotive/toggle.css (321ms) (pid 45734) Compiled locomotive/liquid_mode.css (0ms) (pid 45734) Compiled locomotive/shared/_helpers.css (376ms) (pid 45734) Compiled locomotive/shared/_picker.css (698ms) (pid 45734) Compiled locomotive/shared/common.css (459ms) (pid 45734) Compiled locomotive/shared/content_locale_picker.css (733ms) (pid 45734) Compiled locomotive/shared/growl.css (97ms) (pid 45734) Compiled locomotive/backoffice/_box.css (1166ms) (pid 45734) Compiled locomotive/backoffice/_buttons.css (431ms) (pid 45734) Compiled locomotive/backoffice/application.css (2552ms) (pid 45734) Compiled locomotive/backoffice/codemirror_changes.css (415ms) (pid 45734) Compiled locomotive/backoffice/content_assets.css (1252ms) (pid 45734) Compiled locomotive/backoffice/datepicker.css (595ms) (pid 45734) Compiled locomotive/backoffice/dialog_changes.css (1188ms) (pid 45734) Compiled locomotive/backoffice/editable_elements.css (2108ms) (pid 45734) Compiled locomotive/backoffice/formtastic_changes.css (1319ms) (pid 45734) Compiled locomotive/backoffice/layout.css (1226ms) (pid 45734) Compiled locomotive/backoffice/menu/sub.css (217ms) (pid 45734) WARNING: This version of the transform module has been deprecated and will be removed. on line 3 of /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/compass-0.12.5/frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss from line 5 of /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/assets/stylesheets/locomotive/backoffice/menu/main.css.scss Compiled locomotive/backoffice/menu/main.css (240ms) (pid 45734) Compiled locomotive/backoffice/menu/default.css (171ms) (pid 45734) Compiled locomotive/backoffice/menu.css (643ms) (pid 45734) Compiled locomotive/backoffice/menu/_colors.css (145ms) (pid 45734) Compiled locomotive/backoffice/menu/_helpers.css (4ms) (pid 45734) Compiled locomotive/backoffice/pagination.css (874ms) (pid 45734) Compiled locomotive/backoffice/sites_picker.css (718ms) (pid 45734) Compiled locomotive/backoffice/tagit_changes.css (430ms) (pid 45734) Compiled locomotive.css (18293ms) (pid 45734) Served asset /locomotive.css - 200 OK (18309ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 17:10:40 +0100 Compiled jquery-ui.js (7ms) (pid 45734) Compiled jquery_ujs.js (0ms) (pid 45734) Compiled underscore.js (1ms) (pid 45734) Compiled backbone.js (1ms) (pid 45734) Compiled codemirror.js (4ms) (pid 45734) Compiled tinymce/preinit.js (1ms) (pid 45734) Compiled tinymce/jquery.tinymce.js (0ms) (pid 45734) Compiled tinymce/tiny_mce.js (3ms) (pid 45734) Compiled tinymce-jquery.js (27ms) (pid 45734) Compiled select2/select2.js (2ms) (pid 45734) Compiled codemirror/addons/mode/overlay.js (0ms) (pid 45734) Compiled codemirror/modes/css.js (0ms) (pid 45734) Compiled codemirror/modes/javascript.js (0ms) (pid 45734) Compiled codemirror/modes/xml.js (0ms) (pid 45734) Compiled codemirror/modes/htmlmixed.js (0ms) (pid 45734) Compiled locomotive/ICanHandlebarz.js (0ms) (pid 45734) Compiled locomotive/backbone.modelbinding.js (1ms) (pid 45734) Compiled locomotive/backbone.sync.js (0ms) (pid 45734) Compiled locomotive/cmd.js (0ms) (pid 45734) Compiled locomotive/cookies.js (0ms) (pid 45734) Compiled locomotive/datepicker_i18n.js (15ms) (pid 45734) Compiled locomotive/editable_field.js (0ms) (pid 45734) Compiled locomotive/form_submit_notification.js (0ms) (pid 45734) Compiled locomotive/growl.js (0ms) (pid 45734) Compiled locomotive/handlebars.js (2ms) (pid 45734) Compiled locomotive/jquery-ui-timepicker-addon.js (2ms) (pid 45734) Compiled locomotive/liquid_mode.js (0ms) (pid 45734) Compiled locomotive/menu_toggler.js (0ms) (pid 45734) Compiled locomotive/resize.js (0ms) (pid 45734) Compiled locomotive/slugify.js (0ms) (pid 45734) Compiled locomotive/smartupdater.js (1ms) (pid 45734) Compiled locomotive/subscribe.js (0ms) (pid 45734) Compiled locomotive/tag-it.min.js (1ms) (pid 45734) Compiled locomotive/toggle.js (0ms) (pid 45734) Compiled locomotive/vendor.js (133ms) (pid 45734) Compiled locomotive/utils/aloha_settings.js (90ms) (pid 45734) Compiled locomotive/utils/core_ext.js (0ms) (pid 45734) Compiled locomotive/utils/growl.js (0ms) (pid 45734) Compiled locomotive/utils/handlebar_helpers.js (73ms) (pid 45734) Compiled locomotive/utils/tinymce_settings.js (83ms) (pid 45734) Compiled locomotive/models/account.js (75ms) (pid 45734) Compiled locomotive/models/content_asset.js (88ms) (pid 45734) Compiled locomotive/models/content_entry.js (136ms) (pid 45734) Compiled locomotive/models/content_type.js (100ms) (pid 45734) Compiled locomotive/models/custom_field.js (102ms) (pid 45734) Compiled locomotive/models/custom_field_select_option.js (90ms) (pid 45734) Compiled locomotive/models/domain.js (71ms) (pid 45734) Compiled locomotive/models/editable_element.js (103ms) (pid 45734) Compiled locomotive/models/membership.js (79ms) (pid 45734) Compiled locomotive/models/page.js (91ms) (pid 45734) Compiled locomotive/models/site.js (105ms) (pid 45734) Compiled locomotive/models/snippet.js (74ms) (pid 45734) Compiled locomotive/models/theme_asset.js (76ms) (pid 45734) Compiled locomotive/models/translation.js (73ms) (pid 45734) Compiled locomotive/views/application_view.js (147ms) (pid 45734) Compiled locomotive/views/content_assets/picker_item_view.js (93ms) (pid 45734) Compiled locomotive/views/shared/asset_picker_view.js (131ms) (pid 45734) Compiled locomotive/views/content_assets/picker_view.js (349ms) (pid 45734) Compiled locomotive/views/shared/form_view.js (176ms) (pid 45734) Compiled locomotive/views/content_entries/_form_view.js (408ms) (pid 45734) Compiled locomotive/views/content_entries/_popup_form_view.js (130ms) (pid 45734) Compiled locomotive/views/content_entries/edit_view.js (78ms) (pid 45734) Compiled locomotive/views/content_entries/index_view.js (95ms) (pid 45734) Compiled locomotive/views/content_entries/new_view.js (76ms) (pid 45734) Compiled locomotive/views/content_types/_form_view.js (117ms) (pid 45734) Compiled locomotive/views/content_types/custom_field_entry_view.js (181ms) (pid 45734) Compiled locomotive/views/content_types/custom_fields_view.js (123ms) (pid 45734) Compiled locomotive/views/content_types/edit_view.js (84ms) (pid 45734) Compiled locomotive/views/content_types/new_view.js (75ms) (pid 45734) Compiled locomotive/views/content_types/select_options_view.js (120ms) (pid 45734) Compiled locomotive/views/sites/domains_view.js (111ms) (pid 45734) Compiled locomotive/views/current_site/edit_view.js (235ms) (pid 45734) Compiled locomotive/views/editable_elements/control_view.js (80ms) (pid 45734) Compiled locomotive/views/editable_elements/edit_all_view.js (123ms) (pid 45734) Compiled locomotive/views/editable_elements/file_view.js (113ms) (pid 45734) Compiled locomotive/views/editable_elements/text_view.js (100ms) (pid 45734) Compiled locomotive/views/inline_editor/application_view.js (141ms) (pid 45734) Compiled locomotive/views/inline_editor/toolbar_view.js (163ms) (pid 45734) Compiled locomotive/views/my_account/edit_view.js (91ms) (pid 45734) Compiled locomotive/views/pages/_form_view.js (176ms) (pid 45734) Compiled locomotive/views/pages/edit_view.js (96ms) (pid 45734) Compiled locomotive/views/pages/index_view.js (75ms) (pid 45734) Compiled locomotive/views/pages/list_view.js (92ms) (pid 45734) Compiled locomotive/views/pages/new_view.js (77ms) (pid 45734) Compiled locomotive/views/shared/fields/_relationship_view.js (99ms) (pid 45734) Compiled locomotive/views/shared/fields/belongs_to_view.js (87ms) (pid 45734) Compiled locomotive/views/shared/fields/file_view.js (131ms) (pid 45734) Compiled locomotive/views/shared/fields/has_many_view.js (159ms) (pid 45734) Compiled locomotive/views/shared/fields/many_to_many_view.js (139ms) (pid 45734) Compiled locomotive/views/shared/fields/select_view.js (123ms) (pid 45734) Compiled locomotive/views/shared/list_item_view.js (78ms) (pid 45734) Compiled locomotive/views/shared/list_view.js (94ms) (pid 45734) Compiled locomotive/views/sites/domain_entry_view.js (85ms) (pid 45734) Compiled locomotive/views/sites/membership_entry_view.js (88ms) (pid 45734) Compiled locomotive/views/sites/memberships_view.js (90ms) (pid 45734) Compiled locomotive/views/sites/new_view.js (87ms) (pid 45734) Compiled locomotive/views/snippets/_form_view.js (106ms) (pid 45734) Compiled locomotive/views/snippets/edit_view.js (78ms) (pid 45734) Compiled locomotive/views/snippets/list_item_view.js (76ms) (pid 45734) Compiled locomotive/views/snippets/list_view.js (77ms) (pid 45734) Compiled locomotive/views/snippets/new_view.js (71ms) (pid 45734) Compiled locomotive/views/theme_assets/_form_view.js (131ms) (pid 45734) Compiled locomotive/views/theme_assets/edit_view.js (80ms) (pid 45734) Compiled locomotive/views/theme_assets/image_picker_view.js (99ms) (pid 45734) Compiled locomotive/views/theme_assets/index_view.js (125ms) (pid 45734) Compiled locomotive/views/theme_assets/list_item_view.js (73ms) (pid 45734) Compiled locomotive/views/theme_assets/list_view.js (78ms) (pid 45734) Compiled locomotive/views/theme_assets/new_view.js (76ms) (pid 45734) Compiled locomotive/views/translations/_form_view.js (78ms) (pid 45734) Compiled locomotive/views/translations/edit_view.js (74ms) (pid 45734) Compiled locomotive/views/translations/new_view.js (73ms) (pid 45734) Compiled locomotive/application.js (8215ms) (pid 45734) Compiled locomotive.js (8524ms) (pid 45734) Served asset /locomotive.js - 200 OK (8552ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 17:10:48 +0100 Compiled locomotive/views/shared/_search_bar_view.js (111ms) (pid 45734) Compiled locomotive/typeahead.js (1ms) (pid 45734) Compiled locomotive/search_bar.js (202ms) (pid 45734) Served asset /locomotive/search_bar.js - 200 OK (211ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 17:10:48 +0100 Compiled locomotive/search_bar.css (976ms) (pid 45734) Served asset /locomotive/search_bar.css - 200 OK (983ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 17:10:49 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (4ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 17:10:49 +0100 Served asset /locomotive/nocoffee.png - 200 OK (4ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 17:10:49 +0100 Served asset /locomotive/list/item-left.png - 200 OK (4ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:10:49 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b56287f6433015000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b56287f6433015000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2050ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[3943596465042] (0.0858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b56387f6433015000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b56387f6433015000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b56487f6433015000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7122ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (15.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b56287f6433015000001", :role=>:admin}}}} (0.6013ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b56287f6433015000001"}} (0.4711ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b56287f6433015000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5860ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (1.4ms) Rendered locomotive/shared/_main_app_header.html.haml (1.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (9.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 57.5ms (Views: 41.4ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 17:10:50 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6473ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b56287f6433015000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b56287f6433015000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4690ms) Completed 200 OK in 454.4ms (Views: 0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7360ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4400ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4138ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2882ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8650ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3767ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b58c87f643301500001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"9d56d8b26ca0ed223c5f4e9664a9a7549cece37c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"xzzWyVH8Hqsn6FyypmzJ", "api_key"=>"ec2e4bf60a6b23b4eba438ef4175f0a60d2c0cbe", "updated_at"=>2014-11-22 16:10:52 UTC, "created_at"=>2014-11-22 16:10:52 UTC}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b58c87f643301500001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:10:10 UTC, "updated_at"=>2014-11-22 16:10:52 UTC, "memberships"=>[{"_id"=>"5470b58c87f643301500001f", "role"=>"admin", "account_id"=>"5470b58c87f643301500001d"}]}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b58c87f643301500001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b58c87f643301500001e", "_id"=>{"$ne"=>"5470b58c87f6433015000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b58c87f6433015000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b58c87f643301500001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:52 UTC, "created_at"=>2014-11-22 16:10:52 UTC}] flags=[] (0.2344ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b58c87f643301500001e", "template_dependencies.en"=>{"$in"=>["5470b58c87f6433015000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58c87f6433015000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3572ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b58c87f6433015000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b58c87f643301500001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b58c87f643301500001e", "_id"=>{"$ne"=>"5470b58c87f6433015000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b58c87f643301500001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b58c87f6433015000021", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b58c87f643301500001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:52 UTC, "created_at"=>2014-11-22 16:10:52 UTC}] flags=[] (0.2911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b58c87f643301500001e", "template_dependencies.en"=>{"$in"=>["5470b58c87f6433015000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58c87f6433015000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3319ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b58c87f6433015000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b58c87f643301500001e", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b58c87f6433015000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b58c87f643301500001e", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b58c87f6433015000023", "updated_at"=>2014-11-22 16:10:52 UTC, "created_at"=>2014-11-22 16:10:52 UTC, "entries_custom_fields"=>[{"_id"=>"5470b58c87f6433015000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b58c87f643301500001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b58c87f6433015000022"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b58c87f6433015000024", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b58c87f643301500001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b58c87f6433015000025", "updated_at"=>2014-11-22 16:10:52 UTC, "created_at"=>2014-11-22 16:10:52 UTC, "entries_custom_fields"=>[{"_id"=>"5470b58c87f6433015000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b58c87f6433015000026", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b58c87f6433015000022", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b58c87f6433015000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b58c87f643301500001e", "_id"=>"5470b58c87f6433015000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b58c87f6433015000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5498ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b58c87f6433015000022"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1352ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b58c87f6433015000022"} update={"$set"=>{"updated_at"=>2014-11-22 16:10:52 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b58c87f6433015000028", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b58c87f6433015000024", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b58c87f6433015000022"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b58c87f6433015000024", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b58c87f6433015000029"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b58c87f6433015000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b58c87f6433015000022", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b58c87f6433015000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b58c87f6433015000029", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b58c87f6433015000022", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b58c87f6433015000024", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b58c87f6433015000022", "content_type_id"=>"5470b58c87f6433015000022", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b58c87f643301500001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:10:52 UTC, "created_at"=>2014-11-22 16:10:52 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b58c87f6433015000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b58c87f6433015000024"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b58c87f643301500002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b58c87f6433015000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b58c87f6433015000024", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b58c87f6433015000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b58c87f6433015000024"]}}} (0.3510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b58c87f643301500002a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b58c87f6433015000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b58c87f6433015000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b58c87f6433015000029", "_type"=>"Locomotive::ContentEntry5470b58c87f6433015000024", "content_type_id"=>"5470b58c87f6433015000024", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b58c87f643301500001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:10:52 UTC, "created_at"=>2014-11-22 16:10:52 UTC}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b58d87f643301500002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b58c87f6433015000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b58c87f6433015000024", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b58c87f6433015000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4849ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b58c87f6433015000024"]}}} (0.3629ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b58c87f6433015000024"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b58d87f643301500002b", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b58c87f6433015000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b58c87f6433015000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b58c87f6433015000024", "content_type_id"=>"5470b58c87f6433015000024", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b58c87f643301500001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:10:53 UTC, "created_at"=>2014-11-22 16:10:53 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6351ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b58c87f643301500001e", "parent_id"=>"5470b58c87f6433015000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58c87f6433015000020", "site_id"=>"5470b58c87f643301500001e", "_id"=>{"$ne"=>"5470b58d87f643301500002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b58c87f6433015000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b58d87f643301500002c", "parent_ids"=>["5470b58c87f6433015000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b58c87f643301500001e", "parent_id"=>"5470b58c87f6433015000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:53 UTC, "created_at"=>2014-11-22 16:10:53 UTC, "editable_elements"=>[{"_id"=>"5470b58d87f643301500002d", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:10:53 UTC, "created_at"=>2014-11-22 16:10:53 UTC}]}] flags=[] (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b58c87f643301500001e", "template_dependencies.en"=>{"$in"=>["5470b58d87f643301500002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58d87f643301500002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3178ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b58d87f643301500002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b58c87f643301500001e", "parent_id"=>"5470b58c87f6433015000020", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58c87f6433015000020", "site_id"=>"5470b58c87f643301500001e", "_id"=>{"$ne"=>"5470b58e87f643301500002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58c87f6433015000020", "site_id"=>"5470b58c87f643301500001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b58c87f6433015000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5188ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b58e87f643301500002e", "parent_ids"=>["5470b58c87f6433015000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b58c87f643301500001e", "parent_id"=>"5470b58c87f6433015000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:54 UTC, "created_at"=>2014-11-22 16:10:54 UTC}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b58c87f643301500001e", "template_dependencies.en"=>{"$in"=>["5470b58e87f643301500002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58e87f643301500002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2806ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b58e87f643301500002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b58c87f643301500001e", "parent_id"=>"5470b58c87f6433015000020", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58c87f6433015000020", "site_id"=>"5470b58c87f643301500001e", "_id"=>{"$ne"=>"5470b58e87f643301500002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58c87f6433015000020", "site_id"=>"5470b58c87f643301500001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b58c87f6433015000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4818ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b58e87f643301500002f", "parent_ids"=>["5470b58c87f6433015000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b58c87f643301500001e", "parent_id"=>"5470b58c87f6433015000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:54 UTC, "created_at"=>2014-11-22 16:10:54 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b58c87f643301500001e", "template_dependencies.en"=>{"$in"=>["5470b58e87f643301500002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58e87f643301500002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b58e87f643301500002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b58c87f643301500001e", "parent_id"=>"5470b58c87f6433015000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58c87f6433015000020", "site_id"=>"5470b58c87f643301500001e", "_id"=>{"$ne"=>"5470b58e87f6433015000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58c87f6433015000020", "site_id"=>"5470b58c87f643301500001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b58c87f6433015000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b58e87f6433015000030", "parent_ids"=>["5470b58c87f6433015000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b58c87f643301500001e", "parent_id"=>"5470b58c87f6433015000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:54 UTC, "created_at"=>2014-11-22 16:10:54 UTC}] flags=[] (0.2909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b58c87f643301500001e", "template_dependencies.en"=>{"$in"=>["5470b58e87f6433015000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b58e87f6433015000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2770ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b58e87f6433015000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0896ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b58c87f643301500001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b58c87f643301500001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4399ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b58c87f6433015000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:10:55 UTC}} flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b58c87f643301500001e", "template_dependencies.en"=>{"$in"=>["5470b58c87f6433015000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4010ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b59087f6433015000031", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:10:10 UTC, "updated_at"=>2014-11-22 16:10:56 UTC, "memberships"=>[{"_id"=>"5470b59087f6433015000032", "role"=>"admin", "account_id"=>"5470b58c87f643301500001d"}]}] flags=[] (0.2592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59087f6433015000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59087f6433015000031", "_id"=>{"$ne"=>"5470b59087f6433015000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59087f6433015000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b59087f6433015000031", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:56 UTC, "created_at"=>2014-11-22 16:10:56 UTC}] flags=[] (0.3548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59087f6433015000031", "template_dependencies.en"=>{"$in"=>["5470b59087f6433015000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59087f6433015000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3560ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59087f6433015000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59087f6433015000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59087f6433015000031", "_id"=>{"$ne"=>"5470b59087f6433015000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7157ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59087f6433015000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59087f6433015000034", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b59087f6433015000031", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:56 UTC, "created_at"=>2014-11-22 16:10:56 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59087f6433015000031", "template_dependencies.en"=>{"$in"=>["5470b59087f6433015000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59087f6433015000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3901ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59087f6433015000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59087f6433015000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59087f6433015000031", "_id"=>{"$ne"=>"5470b59087f6433015000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59087f6433015000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59087f6433015000035", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b59087f6433015000031", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:56 UTC, "created_at"=>2014-11-22 16:10:56 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59087f6433015000031", "template_dependencies.en"=>{"$in"=>["5470b59087f6433015000035"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59087f6433015000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3071ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59087f6433015000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0923ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b59087f6433015000031", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b59187f6433015000036", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b59087f6433015000031", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b59187f6433015000037", "updated_at"=>2014-11-22 16:10:57 UTC, "created_at"=>2014-11-22 16:10:57 UTC, "entries_custom_fields"=>[{"_id"=>"5470b59187f6433015000037", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b59187f6433015000038"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b59187f6433015000036"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b59187f6433015000036", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3283ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b59187f6433015000036"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b59187f6433015000038", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b59187f6433015000036", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b59187f6433015000036", "content_type_id"=>"5470b59187f6433015000036", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b59087f6433015000031", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:10:57 UTC, "created_at"=>2014-11-22 16:10:57 UTC}] flags=[] (0.1767ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6309ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5233ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3881ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3731ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8900ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3877ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b59287f6433015000039", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"e43e8f8d9de3a2b5146752684e37759f29cf4ff6", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"usEEzLWFxSke88bauRp5", "api_key"=>"a2066794bf147dabf3818c5832cc52d59312306d", "updated_at"=>2014-11-22 16:10:58 UTC, "created_at"=>2014-11-22 16:10:58 UTC}] flags=[] (0.1400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b59287f643301500003a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:10:10 UTC, "updated_at"=>2014-11-22 16:10:58 UTC, "memberships"=>[{"_id"=>"5470b59287f643301500003b", "role"=>"admin", "account_id"=>"5470b59287f6433015000039"}]}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59287f643301500003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59287f643301500003a", "_id"=>{"$ne"=>"5470b59287f643301500003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59287f643301500003c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b59287f643301500003a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:58 UTC, "created_at"=>2014-11-22 16:10:58 UTC}] flags=[] (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "template_dependencies.en"=>{"$in"=>["5470b59287f643301500003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59287f643301500003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3107ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59287f643301500003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59287f643301500003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59287f643301500003a", "_id"=>{"$ne"=>"5470b59287f643301500003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59287f643301500003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4802ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59287f643301500003d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b59287f643301500003a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:10:58 UTC, "created_at"=>2014-11-22 16:10:58 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "template_dependencies.en"=>{"$in"=>["5470b59287f643301500003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59287f643301500003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59287f643301500003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b59287f643301500003a", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6373ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b59287f643301500003e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b59287f643301500003a", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b59287f643301500003f", "updated_at"=>2014-11-22 16:10:58 UTC, "created_at"=>2014-11-22 16:10:58 UTC, "entries_custom_fields"=>[{"_id"=>"5470b59287f643301500003f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b59287f643301500003a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4117ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b59287f643301500003e"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b59287f6433015000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b59287f643301500003a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b59287f6433015000041", "updated_at"=>2014-11-22 16:10:58 UTC, "created_at"=>2014-11-22 16:10:58 UTC, "entries_custom_fields"=>[{"_id"=>"5470b59287f6433015000041", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b59287f6433015000042", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b59287f643301500003e", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b59287f6433015000043", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b59287f643301500003a", "_id"=>"5470b59287f643301500003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b59287f6433015000040"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5648ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b59287f643301500003e"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1349ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b59287f643301500003e"} update={"$set"=>{"updated_at"=>2014-11-22 16:10:58 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b59287f6433015000044", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b59287f6433015000040", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b59287f643301500003e"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b59287f6433015000040", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b59287f6433015000045"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b59287f643301500003e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b59287f643301500003e", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b59287f643301500003e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3631ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b59287f6433015000045", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b59287f643301500003e", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b59287f6433015000040", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b59287f643301500003e", "content_type_id"=>"5470b59287f643301500003e", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b59287f643301500003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:10:58 UTC, "created_at"=>2014-11-22 16:10:58 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b59287f6433015000045", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b59287f6433015000040"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b59387f6433015000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b59287f6433015000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b59287f6433015000040", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b59287f6433015000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4261ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b59287f6433015000040"]}}} (0.3598ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b59387f6433015000046", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b59287f6433015000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b59287f643301500003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b59287f6433015000045", "_type"=>"Locomotive::ContentEntry5470b59287f6433015000040", "content_type_id"=>"5470b59287f6433015000040", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b59287f643301500003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:10:59 UTC, "created_at"=>2014-11-22 16:10:59 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b59387f6433015000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b59287f6433015000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b59287f6433015000040", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b59287f6433015000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5271ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b59287f6433015000040"]}}} (0.3693ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b59287f6433015000040"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4978ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b59387f6433015000047", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b59287f6433015000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b59287f643301500003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b59287f6433015000040", "content_type_id"=>"5470b59287f6433015000040", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b59287f643301500003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:10:59 UTC, "created_at"=>2014-11-22 16:10:59 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7010ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59287f643301500003a", "parent_id"=>"5470b59287f643301500003c", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59287f643301500003c", "site_id"=>"5470b59287f643301500003a", "_id"=>{"$ne"=>"5470b59487f6433015000048"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b59287f643301500003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5670ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59487f6433015000048", "parent_ids"=>["5470b59287f643301500003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b59287f643301500003a", "parent_id"=>"5470b59287f643301500003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:00 UTC, "created_at"=>2014-11-22 16:11:00 UTC, "editable_elements"=>[{"_id"=>"5470b59487f6433015000049", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:11:00 UTC, "created_at"=>2014-11-22 16:11:00 UTC}]}] flags=[] (0.3040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "template_dependencies.en"=>{"$in"=>["5470b59487f6433015000048"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59487f6433015000048"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3021ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59487f6433015000048"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59287f643301500003a", "parent_id"=>"5470b59287f643301500003c", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59287f643301500003c", "site_id"=>"5470b59287f643301500003a", "_id"=>{"$ne"=>"5470b59487f643301500004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59287f643301500003c", "site_id"=>"5470b59287f643301500003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b59287f643301500003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5202ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59487f643301500004a", "parent_ids"=>["5470b59287f643301500003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b59287f643301500003a", "parent_id"=>"5470b59287f643301500003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:00 UTC, "created_at"=>2014-11-22 16:11:00 UTC}] flags=[] (0.2098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "template_dependencies.en"=>{"$in"=>["5470b59487f643301500004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59487f643301500004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2928ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59487f643301500004a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59287f643301500003a", "parent_id"=>"5470b59287f643301500003c", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59287f643301500003c", "site_id"=>"5470b59287f643301500003a", "_id"=>{"$ne"=>"5470b59487f643301500004b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7727ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59287f643301500003c", "site_id"=>"5470b59287f643301500003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b59287f643301500003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59487f643301500004b", "parent_ids"=>["5470b59287f643301500003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b59287f643301500003a", "parent_id"=>"5470b59287f643301500003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:00 UTC, "created_at"=>2014-11-22 16:11:00 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "template_dependencies.en"=>{"$in"=>["5470b59487f643301500004b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59487f643301500004b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2859ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59487f643301500004b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59287f643301500003a", "parent_id"=>"5470b59287f643301500003c", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59287f643301500003c", "site_id"=>"5470b59287f643301500003a", "_id"=>{"$ne"=>"5470b59487f643301500004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59287f643301500003c", "site_id"=>"5470b59287f643301500003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b59287f643301500003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59487f643301500004c", "parent_ids"=>["5470b59287f643301500003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b59287f643301500003a", "parent_id"=>"5470b59287f643301500003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:00 UTC, "created_at"=>2014-11-22 16:11:00 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "template_dependencies.en"=>{"$in"=>["5470b59487f643301500004c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59487f643301500004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59487f643301500004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b59287f643301500003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b59287f643301500003c"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:11:01 UTC}} flags=[] (0.1557ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "template_dependencies.en"=>{"$in"=>["5470b59287f643301500003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3309ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b59587f643301500004d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:10:10 UTC, "updated_at"=>2014-11-22 16:11:01 UTC, "memberships"=>[{"_id"=>"5470b59587f643301500004e", "role"=>"admin", "account_id"=>"5470b59287f6433015000039"}]}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59587f643301500004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59587f643301500004d", "_id"=>{"$ne"=>"5470b59587f643301500004f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59587f643301500004f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b59587f643301500004d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:01 UTC, "created_at"=>2014-11-22 16:11:01 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59587f643301500004d", "template_dependencies.en"=>{"$in"=>["5470b59587f643301500004f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59587f643301500004f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3312ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59587f643301500004f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0927ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59587f643301500004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59587f643301500004d", "_id"=>{"$ne"=>"5470b59687f6433015000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7343ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59587f643301500004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59687f6433015000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b59587f643301500004d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:02 UTC, "created_at"=>2014-11-22 16:11:02 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59587f643301500004d", "template_dependencies.en"=>{"$in"=>["5470b59687f6433015000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59687f6433015000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3071ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59687f6433015000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b59587f643301500004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59587f643301500004d", "_id"=>{"$ne"=>"5470b59687f6433015000051"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b59587f643301500004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2961ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b59687f6433015000051", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b59587f643301500004d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:02 UTC, "created_at"=>2014-11-22 16:11:02 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59587f643301500004d", "template_dependencies.en"=>{"$in"=>["5470b59687f6433015000051"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b59687f6433015000051"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3049ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b59687f6433015000051"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b59587f643301500004d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b59687f6433015000052", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b59587f643301500004d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b59687f6433015000053", "updated_at"=>2014-11-22 16:11:02 UTC, "created_at"=>2014-11-22 16:11:02 UTC, "entries_custom_fields"=>[{"_id"=>"5470b59687f6433015000053", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b59687f6433015000054"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b59687f6433015000052"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b59687f6433015000052", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b59687f6433015000052"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3638ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b59687f6433015000054", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b59687f6433015000052", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b59687f6433015000052", "content_type_id"=>"5470b59687f6433015000052", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b59587f643301500004d", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:11:02 UTC, "created_at"=>2014-11-22 16:11:02 UTC}] flags=[] (0.1688ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:11:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5791ms) Rendered text template (0.0ms) Completed 200 OK in 9.9ms (Views: 4.0ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 17:11:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) Rendered text template (0.0ms) Completed 200 OK in 520.8ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 17:11:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6349ms) Rendered text template (0.0ms) Completed 200 OK in 4.2ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:11:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5760ms) Rendered text template (0.0ms) Completed 200 OK in 3.6ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 17:11:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b59287f643301500003a", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5202ms) Rendered text template (0.0ms) Completed 200 OK in 448.1ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6652ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5759ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2491ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2898ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8559ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0262ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6950ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4799ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b5c387f6430d03000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"e1fd6207c239db1103b6732becbbf2f7f3b5eea6", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"VAsypftoS9y2GUhfAZfj", "api_key"=>"3130ab02e8ba784e0e82670cae367aaff353f818", "updated_at"=>2014-11-22 16:11:47 UTC, "created_at"=>2014-11-22 16:11:47 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7732ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b5c387f6430d03000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:11:46 UTC, "updated_at"=>2014-11-22 16:11:47 UTC, "memberships"=>[{"_id"=>"5470b5c387f6430d03000003", "role"=>"admin", "account_id"=>"5470b5c387f6430d03000001"}]}] flags=[] (0.3779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5c387f6430d03000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5c387f6430d03000002", "_id"=>{"$ne"=>"5470b5c387f6430d03000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5c387f6430d03000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b5c387f6430d03000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:47 UTC, "created_at"=>2014-11-22 16:11:47 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c387f6430d03000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002", "template_dependencies.en"=>{"$in"=>["5470b5c387f6430d03000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2940ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5c387f6430d03000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5c387f6430d03000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5c387f6430d03000002", "_id"=>{"$ne"=>"5470b5c387f6430d03000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5c387f6430d03000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b5c387f6430d03000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:47 UTC, "created_at"=>2014-11-22 16:11:47 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002", "template_dependencies.en"=>{"$in"=>["5470b5c387f6430d03000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c387f6430d03000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3443ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5c387f6430d03000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5c387f6430d03000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4082ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b5c387f6430d03000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b5c387f6430d03000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b5c487f6430d03000007", "updated_at"=>2014-11-22 16:11:48 UTC, "created_at"=>2014-11-22 16:11:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470b5c487f6430d03000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5c387f6430d03000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b5c387f6430d03000006"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b5c487f6430d03000008", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b5c387f6430d03000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b5c487f6430d03000009", "updated_at"=>2014-11-22 16:11:48 UTC, "created_at"=>2014-11-22 16:11:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470b5c487f6430d03000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b5c487f6430d0300000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b5c387f6430d03000006", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b5c487f6430d0300000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5c387f6430d03000002", "_id"=>"5470b5c387f6430d03000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b5c487f6430d03000008"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7000ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c387f6430d03000006"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1349ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b5c387f6430d03000006"} update={"$set"=>{"updated_at"=>2014-11-22 16:11:48 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b5c487f6430d0300000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b5c487f6430d03000008", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5c387f6430d03000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5c487f6430d03000008", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5c487f6430d0300000d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c387f6430d03000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5c387f6430d03000006", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c387f6430d03000006"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3343ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5c487f6430d0300000d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5c387f6430d03000006", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5c487f6430d03000008", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b5c387f6430d03000006", "content_type_id"=>"5470b5c387f6430d03000006", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b5c387f6430d03000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:11:48 UTC, "created_at"=>2014-11-22 16:11:48 UTC}] flags=[] (0.1993ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b5c487f6430d0300000d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c487f6430d03000008"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5c487f6430d0300000e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c487f6430d03000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5c487f6430d03000008", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c487f6430d03000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4573ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c487f6430d03000008"]}}} (0.3788ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5c487f6430d0300000e", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5c487f6430d03000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5c387f6430d03000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b5c487f6430d0300000d", "_type"=>"Locomotive::ContentEntry5470b5c487f6430d03000008", "content_type_id"=>"5470b5c487f6430d03000008", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b5c387f6430d03000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:11:48 UTC, "created_at"=>2014-11-22 16:11:48 UTC}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5c487f6430d0300000f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c487f6430d03000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5c487f6430d03000008", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c487f6430d03000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4690ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c487f6430d03000008"]}}} (0.4098ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c487f6430d03000008"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5050ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5c487f6430d0300000f", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5c487f6430d03000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5c387f6430d03000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b5c487f6430d03000008", "content_type_id"=>"5470b5c487f6430d03000008", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b5c387f6430d03000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:11:48 UTC, "created_at"=>2014-11-22 16:11:48 UTC}] flags=[] (0.3228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6599ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5c387f6430d03000002", "parent_id"=>"5470b5c387f6430d03000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c387f6430d03000004", "site_id"=>"5470b5c387f6430d03000002", "_id"=>{"$ne"=>"5470b5c587f6430d03000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5c387f6430d03000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5c587f6430d03000010", "parent_ids"=>["5470b5c387f6430d03000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b5c387f6430d03000002", "parent_id"=>"5470b5c387f6430d03000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:49 UTC, "created_at"=>2014-11-22 16:11:49 UTC, "editable_elements"=>[{"_id"=>"5470b5c587f6430d03000011", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:11:49 UTC, "created_at"=>2014-11-22 16:11:49 UTC}]}] flags=[] (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002", "template_dependencies.en"=>{"$in"=>["5470b5c587f6430d03000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c587f6430d03000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3259ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5c587f6430d03000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5c387f6430d03000002", "parent_id"=>"5470b5c387f6430d03000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c387f6430d03000004", "site_id"=>"5470b5c387f6430d03000002", "_id"=>{"$ne"=>"5470b5c587f6430d03000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c387f6430d03000004", "site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5c387f6430d03000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5c587f6430d03000012", "parent_ids"=>["5470b5c387f6430d03000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b5c387f6430d03000002", "parent_id"=>"5470b5c387f6430d03000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:49 UTC, "created_at"=>2014-11-22 16:11:49 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002", "template_dependencies.en"=>{"$in"=>["5470b5c587f6430d03000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c587f6430d03000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5c587f6430d03000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5c387f6430d03000002", "parent_id"=>"5470b5c387f6430d03000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c387f6430d03000004", "site_id"=>"5470b5c387f6430d03000002", "_id"=>{"$ne"=>"5470b5c587f6430d03000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c387f6430d03000004", "site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5c387f6430d03000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5c587f6430d03000013", "parent_ids"=>["5470b5c387f6430d03000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b5c387f6430d03000002", "parent_id"=>"5470b5c387f6430d03000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:49 UTC, "created_at"=>2014-11-22 16:11:49 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002", "template_dependencies.en"=>{"$in"=>["5470b5c587f6430d03000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c587f6430d03000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2742ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5c587f6430d03000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5c387f6430d03000002", "parent_id"=>"5470b5c387f6430d03000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c387f6430d03000004", "site_id"=>"5470b5c387f6430d03000002", "_id"=>{"$ne"=>"5470b5c587f6430d03000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0297ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c387f6430d03000004", "site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5c387f6430d03000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5188ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5c587f6430d03000014", "parent_ids"=>["5470b5c387f6430d03000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b5c387f6430d03000002", "parent_id"=>"5470b5c387f6430d03000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:49 UTC, "created_at"=>2014-11-22 16:11:49 UTC}] flags=[] (0.2732ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002", "template_dependencies.en"=>{"$in"=>["5470b5c587f6430d03000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c587f6430d03000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5c587f6430d03000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7517ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b5c387f6430d03000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:11:50 UTC}} flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002", "template_dependencies.en"=>{"$in"=>["5470b5c387f6430d03000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4354ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b5c787f6430d03000015", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:11:46 UTC, "updated_at"=>2014-11-22 16:11:51 UTC, "memberships"=>[{"_id"=>"5470b5c787f6430d03000016", "role"=>"admin", "account_id"=>"5470b5c387f6430d03000001"}]}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5c787f6430d03000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5c787f6430d03000015", "_id"=>{"$ne"=>"5470b5c787f6430d03000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6008ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5c787f6430d03000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b5c787f6430d03000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:51 UTC, "created_at"=>2014-11-22 16:11:51 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c787f6430d03000015", "template_dependencies.en"=>{"$in"=>["5470b5c787f6430d03000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c787f6430d03000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5c787f6430d03000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5c787f6430d03000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4597ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5c787f6430d03000015", "_id"=>{"$ne"=>"5470b5c787f6430d03000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5c787f6430d03000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5c787f6430d03000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b5c787f6430d03000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:51 UTC, "created_at"=>2014-11-22 16:11:51 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c787f6430d03000015", "template_dependencies.en"=>{"$in"=>["5470b5c787f6430d03000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c787f6430d03000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5c787f6430d03000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5c787f6430d03000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5c787f6430d03000015", "_id"=>{"$ne"=>"5470b5c787f6430d03000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5c787f6430d03000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4158ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5c787f6430d03000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b5c787f6430d03000015", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:51 UTC, "created_at"=>2014-11-22 16:11:51 UTC}] flags=[] (0.2501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c787f6430d03000015", "template_dependencies.en"=>{"$in"=>["5470b5c787f6430d03000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5c787f6430d03000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5c787f6430d03000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5c787f6430d03000015", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b5c887f6430d0300001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b5c787f6430d03000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b5c887f6430d0300001b", "updated_at"=>2014-11-22 16:11:52 UTC, "created_at"=>2014-11-22 16:11:52 UTC, "entries_custom_fields"=>[{"_id"=>"5470b5c887f6430d0300001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5c887f6430d0300001c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c887f6430d0300001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5c887f6430d0300001a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5c887f6430d0300001a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4313ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5c887f6430d0300001c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5c887f6430d0300001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b5c887f6430d0300001a", "content_type_id"=>"5470b5c887f6430d0300001a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b5c787f6430d03000015", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:11:52 UTC, "created_at"=>2014-11-22 16:11:52 UTC}] flags=[] (0.2317ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 17:11:53 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b5c387f6430d03000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5488ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (15.9ms) Completed 200 OK in 34.1ms (Views: 28.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 17:11:53 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (7ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 17:11:53 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (8ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 17:11:53 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 17:11:53 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b5c387f6430d03000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5300ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b5c387f6430d03000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 16:11:53 UTC, "updated_at"=>2014-11-22 16:11:53 UTC}} flags=[] (0.1471ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b5c387f6430d03000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 16:11:53 UTC, "current_sign_in_at"=>2014-11-22 16:11:53 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 16:11:53 UTC}} flags=[] (0.1411ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 18.6ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:11:53 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b5c387f6430d03000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b5c387f6430d03000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3530ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4008684390760] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b5c387f6430d03000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b5c487f6430d03000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7300ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (25.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (1.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (4.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (11.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (47.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b5c387f6430d03000001", :role=>:admin}}}} (0.5581ms) Rendered locomotive/shared/_main_app_head.html.haml (1.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (12.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b5c387f6430d03000001"}} (0.5610ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b5c387f6430d03000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6042ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (3.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.0ms) Rendered locomotive/shared/_main_app_header.html.haml (5.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (28.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 127.5ms (Views: 110.2ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 17:11:53 +0100 Served asset /locomotive.css - 200 OK (39ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 17:11:53 +0100 Served asset /locomotive.js - 200 OK (104ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 17:11:53 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 17:11:53 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 17:11:54 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 17:11:54 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 17:11:54 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:11:54 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b5c387f6430d03000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b5c387f6430d03000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1730ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4008828193526] (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b5c387f6430d03000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b5c387f6430d03000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b5c487f6430d03000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6857ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (15.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (4.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (6.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b5c387f6430d03000001", :role=>:admin}}}} (0.6080ms) Rendered locomotive/shared/_main_app_head.html.haml (1.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (5.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b5c387f6430d03000001"}} (0.4511ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.8ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b5c387f6430d03000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4859ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (9.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 58.0ms (Views: 43.0ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 17:11:54 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b5c387f6430d03000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b5c387f6430d03000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4520ms) Completed 200 OK in 558.7ms (Views: 0.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6859ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4670ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3242ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3349ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.3728ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b5cc87f6430d0300001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"bf546af29d8f5704ad4e5044fff00d70ea76d78a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"VyxnpSM4S8BrNN13eLL4", "api_key"=>"87f8a98cc551462673a8c64a0d1ff4ea8d46c0dc", "updated_at"=>2014-11-22 16:11:56 UTC, "created_at"=>2014-11-22 16:11:56 UTC}] flags=[] (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6971ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b5cc87f6430d0300001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:11:46 UTC, "updated_at"=>2014-11-22 16:11:56 UTC, "memberships"=>[{"_id"=>"5470b5cc87f6430d0300001f", "role"=>"admin", "account_id"=>"5470b5cc87f6430d0300001d"}]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5cc87f6430d0300001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5cc87f6430d0300001e", "_id"=>{"$ne"=>"5470b5cc87f6430d03000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5cc87f6430d03000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b5cc87f6430d0300001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:56 UTC, "created_at"=>2014-11-22 16:11:56 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "template_dependencies.en"=>{"$in"=>["5470b5cc87f6430d03000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cc87f6430d03000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3073ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5cc87f6430d03000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5cc87f6430d0300001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5cc87f6430d0300001e", "_id"=>{"$ne"=>"5470b5cc87f6430d03000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5cc87f6430d0300001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4840ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5cc87f6430d03000021", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b5cc87f6430d0300001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:56 UTC, "created_at"=>2014-11-22 16:11:56 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "template_dependencies.en"=>{"$in"=>["5470b5cc87f6430d03000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cc87f6430d03000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4117ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5cc87f6430d03000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5cc87f6430d0300001e", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b5cc87f6430d03000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b5cc87f6430d0300001e", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b5cc87f6430d03000023", "updated_at"=>2014-11-22 16:11:56 UTC, "created_at"=>2014-11-22 16:11:56 UTC, "entries_custom_fields"=>[{"_id"=>"5470b5cc87f6430d03000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5cc87f6430d0300001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b5cc87f6430d03000022"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6123ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b5cc87f6430d03000024", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b5cc87f6430d0300001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b5cc87f6430d03000025", "updated_at"=>2014-11-22 16:11:56 UTC, "created_at"=>2014-11-22 16:11:56 UTC, "entries_custom_fields"=>[{"_id"=>"5470b5cc87f6430d03000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b5cc87f6430d03000026", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b5cc87f6430d03000022", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b5cc87f6430d03000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5cc87f6430d0300001e", "_id"=>"5470b5cc87f6430d03000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b5cc87f6430d03000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6208ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5cc87f6430d03000022"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.2170ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b5cc87f6430d03000022"} update={"$set"=>{"updated_at"=>2014-11-22 16:11:57 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b5cd87f6430d03000028", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b5cc87f6430d03000024", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2344ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5cc87f6430d03000022"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5cc87f6430d03000024", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5cd87f6430d03000029"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5cc87f6430d03000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5cc87f6430d03000022", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5cc87f6430d03000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5cd87f6430d03000029", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5cc87f6430d03000022", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5cc87f6430d03000024", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b5cc87f6430d03000022", "content_type_id"=>"5470b5cc87f6430d03000022", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b5cc87f6430d0300001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:11:57 UTC, "created_at"=>2014-11-22 16:11:57 UTC}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b5cd87f6430d03000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5cc87f6430d03000024"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5cd87f6430d0300002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5cc87f6430d03000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5cc87f6430d03000024", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5cc87f6430d03000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4311ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5cc87f6430d03000024"]}}} (0.3541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5cd87f6430d0300002a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5cc87f6430d03000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5cc87f6430d03000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b5cd87f6430d03000029", "_type"=>"Locomotive::ContentEntry5470b5cc87f6430d03000024", "content_type_id"=>"5470b5cc87f6430d03000024", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b5cc87f6430d0300001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:11:57 UTC, "created_at"=>2014-11-22 16:11:57 UTC}] flags=[] (0.2701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5ce87f6430d0300002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5cc87f6430d03000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5cc87f6430d03000024", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5cc87f6430d03000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5cc87f6430d03000024"]}}} (0.3059ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5cc87f6430d03000024"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5ce87f6430d0300002b", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5cc87f6430d03000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5cc87f6430d03000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b5cc87f6430d03000024", "content_type_id"=>"5470b5cc87f6430d03000024", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b5cc87f6430d0300001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:11:58 UTC, "created_at"=>2014-11-22 16:11:58 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6449ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5cc87f6430d0300001e", "parent_id"=>"5470b5cc87f6430d03000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cc87f6430d03000020", "site_id"=>"5470b5cc87f6430d0300001e", "_id"=>{"$ne"=>"5470b5ce87f6430d0300002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5cc87f6430d03000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5ce87f6430d0300002c", "parent_ids"=>["5470b5cc87f6430d03000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b5cc87f6430d0300001e", "parent_id"=>"5470b5cc87f6430d03000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:58 UTC, "created_at"=>2014-11-22 16:11:58 UTC, "editable_elements"=>[{"_id"=>"5470b5ce87f6430d0300002d", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:11:58 UTC, "created_at"=>2014-11-22 16:11:58 UTC}]}] flags=[] (0.2961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "template_dependencies.en"=>{"$in"=>["5470b5ce87f6430d0300002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5ce87f6430d0300002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2608ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5ce87f6430d0300002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5cc87f6430d0300001e", "parent_id"=>"5470b5cc87f6430d03000020", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cc87f6430d03000020", "site_id"=>"5470b5cc87f6430d0300001e", "_id"=>{"$ne"=>"5470b5cf87f6430d0300002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7942ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cc87f6430d03000020", "site_id"=>"5470b5cc87f6430d0300001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5cc87f6430d03000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5567ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5cf87f6430d0300002e", "parent_ids"=>["5470b5cc87f6430d03000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b5cc87f6430d0300001e", "parent_id"=>"5470b5cc87f6430d03000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:59 UTC, "created_at"=>2014-11-22 16:11:59 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "template_dependencies.en"=>{"$in"=>["5470b5cf87f6430d0300002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cf87f6430d0300002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3560ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5cf87f6430d0300002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5cc87f6430d0300001e", "parent_id"=>"5470b5cc87f6430d03000020", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cc87f6430d03000020", "site_id"=>"5470b5cc87f6430d0300001e", "_id"=>{"$ne"=>"5470b5cf87f6430d0300002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cc87f6430d03000020", "site_id"=>"5470b5cc87f6430d0300001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5cc87f6430d03000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5cf87f6430d0300002f", "parent_ids"=>["5470b5cc87f6430d03000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b5cc87f6430d0300001e", "parent_id"=>"5470b5cc87f6430d03000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:59 UTC, "created_at"=>2014-11-22 16:11:59 UTC}] flags=[] (0.3009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "template_dependencies.en"=>{"$in"=>["5470b5cf87f6430d0300002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cf87f6430d0300002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3653ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5cf87f6430d0300002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5cc87f6430d0300001e", "parent_id"=>"5470b5cc87f6430d03000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4852ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cc87f6430d03000020", "site_id"=>"5470b5cc87f6430d0300001e", "_id"=>{"$ne"=>"5470b5cf87f6430d03000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9034ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cc87f6430d03000020", "site_id"=>"5470b5cc87f6430d0300001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5cc87f6430d03000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5cf87f6430d03000030", "parent_ids"=>["5470b5cc87f6430d03000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b5cc87f6430d0300001e", "parent_id"=>"5470b5cc87f6430d03000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:11:59 UTC, "created_at"=>2014-11-22 16:11:59 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "template_dependencies.en"=>{"$in"=>["5470b5cf87f6430d03000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5cf87f6430d03000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3521ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5cf87f6430d03000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b5cc87f6430d0300001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5078ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b5cc87f6430d03000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:12:00 UTC}} flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "template_dependencies.en"=>{"$in"=>["5470b5cc87f6430d03000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b5d187f6430d03000031", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:11:46 UTC, "updated_at"=>2014-11-22 16:12:01 UTC, "memberships"=>[{"_id"=>"5470b5d187f6430d03000032", "role"=>"admin", "account_id"=>"5470b5cc87f6430d0300001d"}]}] flags=[] (0.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d187f6430d03000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5376ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d187f6430d03000031", "_id"=>{"$ne"=>"5470b5d187f6430d03000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d187f6430d03000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b5d187f6430d03000031", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:01 UTC, "created_at"=>2014-11-22 16:12:01 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d187f6430d03000031", "template_dependencies.en"=>{"$in"=>["5470b5d187f6430d03000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d187f6430d03000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2928ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d187f6430d03000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d187f6430d03000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d187f6430d03000031", "_id"=>{"$ne"=>"5470b5d187f6430d03000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d187f6430d03000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d187f6430d03000034", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b5d187f6430d03000031", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:01 UTC, "created_at"=>2014-11-22 16:12:01 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d187f6430d03000031", "template_dependencies.en"=>{"$in"=>["5470b5d187f6430d03000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d187f6430d03000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3269ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d187f6430d03000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d187f6430d03000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d187f6430d03000031", "_id"=>{"$ne"=>"5470b5d187f6430d03000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d187f6430d03000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3078ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d187f6430d03000035", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b5d187f6430d03000031", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:01 UTC, "created_at"=>2014-11-22 16:12:01 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d187f6430d03000031", "template_dependencies.en"=>{"$in"=>["5470b5d187f6430d03000035"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d187f6430d03000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d187f6430d03000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5d187f6430d03000031", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b5d287f6430d03000036", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b5d187f6430d03000031", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b5d287f6430d03000037", "updated_at"=>2014-11-22 16:12:02 UTC, "created_at"=>2014-11-22 16:12:02 UTC, "entries_custom_fields"=>[{"_id"=>"5470b5d287f6430d03000037", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5d287f6430d03000038"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d287f6430d03000036"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5d287f6430d03000036", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d287f6430d03000036"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5d287f6430d03000038", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5d287f6430d03000036", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b5d287f6430d03000036", "content_type_id"=>"5470b5d287f6430d03000036", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b5d187f6430d03000031", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:12:02 UTC, "created_at"=>2014-11-22 16:12:02 UTC}] flags=[] (0.1659ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:12:02 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6869ms) Rendered text template (0.0ms) Completed 200 OK in 8.6ms (Views: 2.1ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 17:12:02 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5910ms) Rendered text template (0.0ms) Completed 200 OK in 437.6ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 17:12:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6590ms) Rendered text template (0.0ms) Completed 200 OK in 4.3ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:12:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) Rendered text template (0.0ms) Completed 200 OK in 3.9ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 17:12:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5cc87f6430d0300001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5620ms) Rendered text template (0.0ms) Completed 200 OK in 437.4ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6552ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4670ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8931ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b5d487f6430d03000039", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"84c2732726007aa4eb481da3306c4cdd20819d96", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"RtY4CPvfySrtZeJypUaE", "api_key"=>"a5edb663f1cf0c83b0bc3e2e5e1cf4aea406ef51", "updated_at"=>2014-11-22 16:12:04 UTC, "created_at"=>2014-11-22 16:12:04 UTC}] flags=[] (0.1478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b5d487f6430d0300003a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:11:46 UTC, "updated_at"=>2014-11-22 16:12:04 UTC, "memberships"=>[{"_id"=>"5470b5d487f6430d0300003b", "role"=>"admin", "account_id"=>"5470b5d487f6430d03000039"}]}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d487f6430d0300003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d487f6430d0300003a", "_id"=>{"$ne"=>"5470b5d487f6430d0300003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3479ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d487f6430d0300003c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b5d487f6430d0300003a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:04 UTC, "created_at"=>2014-11-22 16:12:04 UTC}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d487f6430d0300003a", "template_dependencies.en"=>{"$in"=>["5470b5d487f6430d0300003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d487f6430d0300003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2899ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d487f6430d0300003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d487f6430d0300003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d487f6430d0300003a", "_id"=>{"$ne"=>"5470b5d487f6430d0300003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d487f6430d0300003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4978ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d487f6430d0300003d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b5d487f6430d0300003a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:04 UTC, "created_at"=>2014-11-22 16:12:04 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d487f6430d0300003a", "template_dependencies.en"=>{"$in"=>["5470b5d487f6430d0300003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d487f6430d0300003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d487f6430d0300003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5d487f6430d0300003a", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7801ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b5d487f6430d0300003e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b5d487f6430d0300003a", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b5d487f6430d0300003f", "updated_at"=>2014-11-22 16:12:04 UTC, "created_at"=>2014-11-22 16:12:04 UTC, "entries_custom_fields"=>[{"_id"=>"5470b5d487f6430d0300003f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5d487f6430d0300003a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b5d487f6430d0300003e"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5193ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b5d487f6430d03000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b5d487f6430d0300003a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b5d487f6430d03000041", "updated_at"=>2014-11-22 16:12:04 UTC, "created_at"=>2014-11-22 16:12:04 UTC, "entries_custom_fields"=>[{"_id"=>"5470b5d487f6430d03000041", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b5d487f6430d03000042", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b5d487f6430d0300003e", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b5d487f6430d03000043", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5d487f6430d0300003a", "_id"=>"5470b5d487f6430d0300003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b5d487f6430d03000040"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6428ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d487f6430d0300003e"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1416ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b5d487f6430d0300003e"} update={"$set"=>{"updated_at"=>2014-11-22 16:12:04 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b5d487f6430d03000044", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b5d487f6430d03000040", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5d487f6430d0300003e"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5d487f6430d03000040", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5d487f6430d03000045"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d487f6430d0300003e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5d487f6430d0300003e", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d487f6430d0300003e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3650ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5d487f6430d03000045", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5d487f6430d0300003e", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5d487f6430d03000040", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b5d487f6430d0300003e", "content_type_id"=>"5470b5d487f6430d0300003e", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b5d487f6430d0300003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:12:04 UTC, "created_at"=>2014-11-22 16:12:04 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b5d487f6430d03000045", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d487f6430d03000040"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5d587f6430d03000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d487f6430d03000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5d487f6430d03000040", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3457ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d487f6430d03000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4010ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d487f6430d03000040"]}}} (0.3579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5d587f6430d03000046", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5d487f6430d03000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5d487f6430d0300003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b5d487f6430d03000045", "_type"=>"Locomotive::ContentEntry5470b5d487f6430d03000040", "content_type_id"=>"5470b5d487f6430d03000040", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b5d487f6430d0300003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:12:05 UTC, "created_at"=>2014-11-22 16:12:05 UTC}] flags=[] (0.2811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5d587f6430d03000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d487f6430d03000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5467ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5d487f6430d03000040", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d487f6430d03000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4270ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d487f6430d03000040"]}}} (0.4332ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d487f6430d03000040"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5d587f6430d03000047", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5d487f6430d03000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b5d487f6430d0300003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b5d487f6430d03000040", "content_type_id"=>"5470b5d487f6430d03000040", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b5d487f6430d0300003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:12:05 UTC, "created_at"=>2014-11-22 16:12:05 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6189ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d487f6430d0300003a", "parent_id"=>"5470b5d487f6430d0300003c", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d487f6430d0300003c", "site_id"=>"5470b5d487f6430d0300003a", "_id"=>{"$ne"=>"5470b5d687f6430d03000048"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5d487f6430d0300003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5689ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d687f6430d03000048", "parent_ids"=>["5470b5d487f6430d0300003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b5d487f6430d0300003a", "parent_id"=>"5470b5d487f6430d0300003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:06 UTC, "created_at"=>2014-11-22 16:12:06 UTC, "editable_elements"=>[{"_id"=>"5470b5d687f6430d03000049", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:12:06 UTC, "created_at"=>2014-11-22 16:12:06 UTC}]}] flags=[] (0.2871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d487f6430d0300003a", "template_dependencies.en"=>{"$in"=>["5470b5d687f6430d03000048"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d687f6430d03000048"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2830ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d687f6430d03000048"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d487f6430d0300003a", "parent_id"=>"5470b5d487f6430d0300003c", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d487f6430d0300003c", "site_id"=>"5470b5d487f6430d0300003a", "_id"=>{"$ne"=>"5470b5d687f6430d0300004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d487f6430d0300003c", "site_id"=>"5470b5d487f6430d0300003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5d487f6430d0300003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d687f6430d0300004a", "parent_ids"=>["5470b5d487f6430d0300003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b5d487f6430d0300003a", "parent_id"=>"5470b5d487f6430d0300003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:06 UTC, "created_at"=>2014-11-22 16:12:06 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d487f6430d0300003a", "template_dependencies.en"=>{"$in"=>["5470b5d687f6430d0300004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d687f6430d0300004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5229ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d687f6430d0300004a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d487f6430d0300003a", "parent_id"=>"5470b5d487f6430d0300003c", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d487f6430d0300003c", "site_id"=>"5470b5d487f6430d0300003a", "_id"=>{"$ne"=>"5470b5d687f6430d0300004b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d487f6430d0300003c", "site_id"=>"5470b5d487f6430d0300003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5d487f6430d0300003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4847ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d687f6430d0300004b", "parent_ids"=>["5470b5d487f6430d0300003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b5d487f6430d0300003a", "parent_id"=>"5470b5d487f6430d0300003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:06 UTC, "created_at"=>2014-11-22 16:12:06 UTC}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d487f6430d0300003a", "template_dependencies.en"=>{"$in"=>["5470b5d687f6430d0300004b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d687f6430d0300004b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d687f6430d0300004b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d487f6430d0300003a", "parent_id"=>"5470b5d487f6430d0300003c", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d487f6430d0300003c", "site_id"=>"5470b5d487f6430d0300003a", "_id"=>{"$ne"=>"5470b5d687f6430d0300004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d487f6430d0300003c", "site_id"=>"5470b5d487f6430d0300003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b5d487f6430d0300003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6082ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d687f6430d0300004c", "parent_ids"=>["5470b5d487f6430d0300003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b5d487f6430d0300003a", "parent_id"=>"5470b5d487f6430d0300003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:06 UTC, "created_at"=>2014-11-22 16:12:06 UTC}] flags=[] (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d487f6430d0300003a", "template_dependencies.en"=>{"$in"=>["5470b5d687f6430d0300004c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d687f6430d0300004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3073ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d687f6430d0300004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d487f6430d0300003a", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b5d487f6430d0300003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4849ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b5d487f6430d0300003c"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:12:07 UTC}} flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d487f6430d0300003a", "template_dependencies.en"=>{"$in"=>["5470b5d487f6430d0300003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3932ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b5d787f6430d0300004d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:11:46 UTC, "updated_at"=>2014-11-22 16:12:07 UTC, "memberships"=>[{"_id"=>"5470b5d787f6430d0300004e", "role"=>"admin", "account_id"=>"5470b5d487f6430d03000039"}]}] flags=[] (0.2232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d787f6430d0300004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d787f6430d0300004d", "_id"=>{"$ne"=>"5470b5d787f6430d0300004f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d787f6430d0300004f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b5d787f6430d0300004d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:07 UTC, "created_at"=>2014-11-22 16:12:07 UTC}] flags=[] (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d787f6430d0300004d", "template_dependencies.en"=>{"$in"=>["5470b5d787f6430d0300004f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d787f6430d0300004f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d787f6430d0300004f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d787f6430d0300004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d787f6430d0300004d", "_id"=>{"$ne"=>"5470b5d887f6430d03000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d787f6430d0300004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d887f6430d03000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b5d787f6430d0300004d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:08 UTC, "created_at"=>2014-11-22 16:12:08 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d787f6430d0300004d", "template_dependencies.en"=>{"$in"=>["5470b5d887f6430d03000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3593ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d887f6430d03000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3419ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d887f6430d03000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1364ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b5d787f6430d0300004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d787f6430d0300004d", "_id"=>{"$ne"=>"5470b5d887f6430d03000051"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b5d787f6430d0300004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5083ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3438ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b5d887f6430d03000051", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b5d787f6430d0300004d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:12:08 UTC, "created_at"=>2014-11-22 16:12:08 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b5d787f6430d0300004d", "template_dependencies.en"=>{"$in"=>["5470b5d887f6430d03000051"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b5d887f6430d03000051"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2949ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b5d887f6430d03000051"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b5d787f6430d0300004d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b5d887f6430d03000052", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b5d787f6430d0300004d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b5d887f6430d03000053", "updated_at"=>2014-11-22 16:12:08 UTC, "created_at"=>2014-11-22 16:12:08 UTC, "entries_custom_fields"=>[{"_id"=>"5470b5d887f6430d03000053", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b5d887f6430d03000054"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d887f6430d03000052"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b5d887f6430d03000052", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b5d887f6430d03000052"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b5d887f6430d03000054", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b5d887f6430d03000052", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b5d887f6430d03000052", "content_type_id"=>"5470b5d887f6430d03000052", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b5d787f6430d0300004d", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:12:08 UTC, "created_at"=>2014-11-22 16:12:08 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7160ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5900ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3399ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4021ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9851ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1652ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5052ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2480ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b74387f6438c59000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"66310eea0e23caf6406dc72c148d37c07a4f0ce1", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ajncuxx1rAxAvSsw4aSA", "api_key"=>"0485559e1fa885ba5c57acf9ca4a1ce45702401c", "updated_at"=>2014-11-22 16:18:11 UTC, "created_at"=>2014-11-22 16:18:11 UTC}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8612ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b74387f6438c59000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:18:11 UTC, "updated_at"=>2014-11-22 16:18:11 UTC, "memberships"=>[{"_id"=>"5470b74387f6438c59000003", "role"=>"admin", "account_id"=>"5470b74387f6438c59000001"}]}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74387f6438c59000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b74387f6438c59000002", "_id"=>{"$ne"=>"5470b74487f6438c59000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b74487f6438c59000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b74387f6438c59000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:12 UTC, "created_at"=>2014-11-22 16:18:12 UTC}] flags=[] (0.2272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74487f6438c59000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002", "template_dependencies.en"=>{"$in"=>["5470b74487f6438c59000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4201ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b74487f6438c59000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74387f6438c59000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b74387f6438c59000002", "_id"=>{"$ne"=>"5470b74487f6438c59000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4873ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b74487f6438c59000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b74387f6438c59000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:12 UTC, "created_at"=>2014-11-22 16:18:12 UTC}] flags=[] (0.2489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002", "template_dependencies.en"=>{"$in"=>["5470b74487f6438c59000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74487f6438c59000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3393ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b74487f6438c59000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b74387f6438c59000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b74487f6438c59000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b74387f6438c59000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b74487f6438c59000007", "updated_at"=>2014-11-22 16:18:12 UTC, "created_at"=>2014-11-22 16:18:12 UTC, "entries_custom_fields"=>[{"_id"=>"5470b74487f6438c59000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b74387f6438c59000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b74487f6438c59000006"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5188ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b74487f6438c59000008", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b74387f6438c59000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b74487f6438c59000009", "updated_at"=>2014-11-22 16:18:12 UTC, "created_at"=>2014-11-22 16:18:12 UTC, "entries_custom_fields"=>[{"_id"=>"5470b74487f6438c59000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b74487f6438c5900000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b74487f6438c59000006", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b74487f6438c5900000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b74387f6438c59000002", "_id"=>"5470b74487f6438c59000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b74487f6438c59000008"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74487f6438c59000006"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1130ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b74487f6438c59000006"} update={"$set"=>{"updated_at"=>2014-11-22 16:18:12 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b74487f6438c5900000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b74487f6438c59000008", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b74487f6438c59000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b74487f6438c59000008", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1497ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b74487f6438c5900000d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74487f6438c59000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b74487f6438c59000006", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74487f6438c59000006"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b74487f6438c5900000d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b74487f6438c59000006", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b74487f6438c59000008", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b74487f6438c59000006", "content_type_id"=>"5470b74487f6438c59000006", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b74387f6438c59000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:18:12 UTC, "created_at"=>2014-11-22 16:18:12 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b74487f6438c5900000d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74487f6438c59000008"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b74587f6438c5900000e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74487f6438c59000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b74487f6438c59000008", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74487f6438c59000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74487f6438c59000008"]}}} (0.4880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b74587f6438c5900000e", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b74487f6438c59000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b74487f6438c59000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b74487f6438c5900000d", "_type"=>"Locomotive::ContentEntry5470b74487f6438c59000008", "content_type_id"=>"5470b74487f6438c59000008", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b74387f6438c59000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:13 UTC, "created_at"=>2014-11-22 16:18:13 UTC}] flags=[] (0.2661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b74587f6438c5900000f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74487f6438c59000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b74487f6438c59000008", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74487f6438c59000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4787ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74487f6438c59000008"]}}} (0.3393ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74487f6438c59000008"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b74587f6438c5900000f", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b74487f6438c59000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b74487f6438c59000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b74487f6438c59000008", "content_type_id"=>"5470b74487f6438c59000008", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b74387f6438c59000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:13 UTC, "created_at"=>2014-11-22 16:18:13 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7272ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74387f6438c59000002", "parent_id"=>"5470b74487f6438c59000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74487f6438c59000004", "site_id"=>"5470b74387f6438c59000002", "_id"=>{"$ne"=>"5470b74687f6438c59000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b74487f6438c59000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b74687f6438c59000010", "parent_ids"=>["5470b74487f6438c59000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b74387f6438c59000002", "parent_id"=>"5470b74487f6438c59000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:14 UTC, "created_at"=>2014-11-22 16:18:14 UTC, "editable_elements"=>[{"_id"=>"5470b74687f6438c59000011", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:18:14 UTC, "created_at"=>2014-11-22 16:18:14 UTC}]}] flags=[] (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002", "template_dependencies.en"=>{"$in"=>["5470b74687f6438c59000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74687f6438c59000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3037ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b74687f6438c59000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0942ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74387f6438c59000002", "parent_id"=>"5470b74487f6438c59000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74487f6438c59000004", "site_id"=>"5470b74387f6438c59000002", "_id"=>{"$ne"=>"5470b74687f6438c59000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74487f6438c59000004", "site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b74487f6438c59000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b74687f6438c59000012", "parent_ids"=>["5470b74487f6438c59000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b74387f6438c59000002", "parent_id"=>"5470b74487f6438c59000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:14 UTC, "created_at"=>2014-11-22 16:18:14 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002", "template_dependencies.en"=>{"$in"=>["5470b74687f6438c59000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74687f6438c59000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b74687f6438c59000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74387f6438c59000002", "parent_id"=>"5470b74487f6438c59000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74487f6438c59000004", "site_id"=>"5470b74387f6438c59000002", "_id"=>{"$ne"=>"5470b74687f6438c59000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74487f6438c59000004", "site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5193ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b74487f6438c59000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b74687f6438c59000013", "parent_ids"=>["5470b74487f6438c59000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b74387f6438c59000002", "parent_id"=>"5470b74487f6438c59000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:14 UTC, "created_at"=>2014-11-22 16:18:14 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002", "template_dependencies.en"=>{"$in"=>["5470b74687f6438c59000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74687f6438c59000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2761ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b74687f6438c59000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74387f6438c59000002", "parent_id"=>"5470b74487f6438c59000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74487f6438c59000004", "site_id"=>"5470b74387f6438c59000002", "_id"=>{"$ne"=>"5470b74687f6438c59000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74487f6438c59000004", "site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b74487f6438c59000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5457ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b74687f6438c59000014", "parent_ids"=>["5470b74487f6438c59000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b74387f6438c59000002", "parent_id"=>"5470b74487f6438c59000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:14 UTC, "created_at"=>2014-11-22 16:18:14 UTC}] flags=[] (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002", "template_dependencies.en"=>{"$in"=>["5470b74687f6438c59000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74687f6438c59000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b74687f6438c59000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4110ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b74487f6438c59000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:18:16 UTC}} flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002", "template_dependencies.en"=>{"$in"=>["5470b74487f6438c59000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b74987f6438c59000015", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:18:11 UTC, "updated_at"=>2014-11-22 16:18:17 UTC, "memberships"=>[{"_id"=>"5470b74987f6438c59000016", "role"=>"admin", "account_id"=>"5470b74387f6438c59000001"}]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74987f6438c59000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b74987f6438c59000015", "_id"=>{"$ne"=>"5470b74987f6438c59000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b74987f6438c59000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b74987f6438c59000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:17 UTC, "created_at"=>2014-11-22 16:18:17 UTC}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74987f6438c59000015", "template_dependencies.en"=>{"$in"=>["5470b74987f6438c59000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3257ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74987f6438c59000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3293ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b74987f6438c59000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74987f6438c59000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b74987f6438c59000015", "_id"=>{"$ne"=>"5470b74987f6438c59000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6893ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b74987f6438c59000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b74987f6438c59000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b74987f6438c59000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:17 UTC, "created_at"=>2014-11-22 16:18:17 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74987f6438c59000015", "template_dependencies.en"=>{"$in"=>["5470b74987f6438c59000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74987f6438c59000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2999ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b74987f6438c59000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74987f6438c59000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b74987f6438c59000015", "_id"=>{"$ne"=>"5470b74987f6438c59000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b74987f6438c59000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3352ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b74987f6438c59000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b74987f6438c59000015", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:17 UTC, "created_at"=>2014-11-22 16:18:17 UTC}] flags=[] (0.1957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74987f6438c59000015", "template_dependencies.en"=>{"$in"=>["5470b74987f6438c59000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74987f6438c59000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b74987f6438c59000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b74987f6438c59000015", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b74a87f6438c5900001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b74987f6438c59000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b74a87f6438c5900001b", "updated_at"=>2014-11-22 16:18:18 UTC, "created_at"=>2014-11-22 16:18:18 UTC, "entries_custom_fields"=>[{"_id"=>"5470b74a87f6438c5900001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b74a87f6438c5900001c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74a87f6438c5900001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b74a87f6438c5900001a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74a87f6438c5900001a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4151ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b74a87f6438c5900001c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b74a87f6438c5900001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b74a87f6438c5900001a", "content_type_id"=>"5470b74a87f6438c5900001a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b74987f6438c59000015", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:18 UTC, "created_at"=>2014-11-22 16:18:18 UTC}] flags=[] (0.1872ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 17:18:19 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b74387f6438c59000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4950ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.9ms) Completed 200 OK in 34.9ms (Views: 29.5ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 17:18:19 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (7ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 17:18:19 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (8ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 17:18:19 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 17:18:20 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b74387f6438c59000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5491ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b74387f6438c59000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 16:18:20 UTC, "updated_at"=>2014-11-22 16:18:20 UTC}} flags=[] (0.1218ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b74387f6438c59000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 16:18:20 UTC, "current_sign_in_at"=>2014-11-22 16:18:20 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 16:18:20 UTC}} flags=[] (0.1600ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 18.3ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:18:20 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b74387f6438c59000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b74387f6438c59000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3802ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4071743306011] (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b74487f6438c59000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b74487f6438c59000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6890ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (24.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (12.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (48.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b74387f6438c59000001", :role=>:admin}}}} (0.5989ms) Rendered locomotive/shared/_main_app_head.html.haml (1.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (12.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b74387f6438c59000001"}} (0.4940ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b74387f6438c59000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8149ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (4.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.8ms) Rendered locomotive/shared/_main_app_header.html.haml (6.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (29.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 125.3ms (Views: 110.4ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 17:18:20 +0100 Served asset /locomotive.js - 200 OK (108ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 17:18:20 +0100 Served asset /locomotive.css - 200 OK (33ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 17:18:20 +0100 Served asset /locomotive/search_bar.js - 200 OK (4ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 17:18:20 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 17:18:20 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 17:18:20 +0100 Served asset /locomotive/nocoffee.png - 200 OK (3ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 17:18:20 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:18:20 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b74387f6438c59000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3917ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b74387f6438c59000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1592ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4072671441241] (0.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b74387f6438c59000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b74487f6438c59000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b74487f6438c59000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6652ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (13.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (4.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (19.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b74387f6438c59000001", :role=>:admin}}}} (0.4749ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b74387f6438c59000001"}} (0.6039ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b74387f6438c59000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5369ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (8.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 52.2ms (Views: 36.6ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 17:18:20 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b74387f6438c59000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b74387f6438c59000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5281ms) Completed 200 OK in 447.9ms (Views: 0.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6442ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4243ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2920ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1718ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8099ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3660ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b74e87f6438c5900001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"86129f44d1b723838f4849a77bf90881f9136a57", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"myWucBZpnKvT6a61qpBE", "api_key"=>"2633cdee6bc74d8ec9e06d8988f807b606d63f5e", "updated_at"=>2014-11-22 16:18:22 UTC, "created_at"=>2014-11-22 16:18:22 UTC}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6957ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b74e87f6438c5900001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:18:11 UTC, "updated_at"=>2014-11-22 16:18:22 UTC, "memberships"=>[{"_id"=>"5470b74e87f6438c5900001f", "role"=>"admin", "account_id"=>"5470b74e87f6438c5900001d"}]}] flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74e87f6438c5900001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b74e87f6438c5900001e", "_id"=>{"$ne"=>"5470b74e87f6438c59000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b74e87f6438c59000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b74e87f6438c5900001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:22 UTC, "created_at"=>2014-11-22 16:18:22 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "template_dependencies.en"=>{"$in"=>["5470b74e87f6438c59000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74e87f6438c59000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2570ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b74e87f6438c59000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74e87f6438c5900001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b74e87f6438c5900001e", "_id"=>{"$ne"=>"5470b74f87f6438c59000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b74e87f6438c5900001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4981ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b74f87f6438c59000021", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b74e87f6438c5900001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:23 UTC, "created_at"=>2014-11-22 16:18:23 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "template_dependencies.en"=>{"$in"=>["5470b74f87f6438c59000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74f87f6438c59000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3071ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b74f87f6438c59000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b74e87f6438c5900001e", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7870ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b74f87f6438c59000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b74e87f6438c5900001e", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b74f87f6438c59000023", "updated_at"=>2014-11-22 16:18:23 UTC, "created_at"=>2014-11-22 16:18:23 UTC, "entries_custom_fields"=>[{"_id"=>"5470b74f87f6438c59000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b74e87f6438c5900001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b74f87f6438c59000022"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b74f87f6438c59000024", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b74e87f6438c5900001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b74f87f6438c59000025", "updated_at"=>2014-11-22 16:18:23 UTC, "created_at"=>2014-11-22 16:18:23 UTC, "entries_custom_fields"=>[{"_id"=>"5470b74f87f6438c59000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b74f87f6438c59000026", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b74f87f6438c59000022", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b74f87f6438c59000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b74e87f6438c5900001e", "_id"=>"5470b74f87f6438c59000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b74f87f6438c59000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5529ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000022"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1311ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b74f87f6438c59000022"} update={"$set"=>{"updated_at"=>2014-11-22 16:18:23 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b74f87f6438c59000028", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b74f87f6438c59000024", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b74f87f6438c59000022"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b74f87f6438c59000024", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b74f87f6438c59000029"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b74f87f6438c59000022", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b74f87f6438c59000029", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b74f87f6438c59000022", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b74f87f6438c59000024", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b74f87f6438c59000022", "content_type_id"=>"5470b74f87f6438c59000022", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b74e87f6438c5900001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:18:23 UTC, "created_at"=>2014-11-22 16:18:23 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b74f87f6438c59000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b74f87f6438c5900002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b74f87f6438c59000024", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}}} (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b74f87f6438c5900002a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b74f87f6438c59000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b74f87f6438c59000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b74f87f6438c59000029", "_type"=>"Locomotive::ContentEntry5470b74f87f6438c59000024", "content_type_id"=>"5470b74f87f6438c59000024", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b74e87f6438c5900001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:23 UTC, "created_at"=>2014-11-22 16:18:23 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75087f6438c5900002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5467ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b74f87f6438c59000024", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5460ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}}} (0.3800ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5069ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b75087f6438c5900002b", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b74f87f6438c59000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b74f87f6438c59000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b74f87f6438c59000024", "content_type_id"=>"5470b74f87f6438c59000024", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b74e87f6438c5900001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:24 UTC, "created_at"=>2014-11-22 16:18:24 UTC}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7310ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74e87f6438c5900001e", "parent_id"=>"5470b74e87f6438c59000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74e87f6438c59000020", "site_id"=>"5470b74e87f6438c5900001e", "_id"=>{"$ne"=>"5470b75087f6438c5900002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b74e87f6438c59000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5493ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75087f6438c5900002c", "parent_ids"=>["5470b74e87f6438c59000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b74e87f6438c5900001e", "parent_id"=>"5470b74e87f6438c59000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:24 UTC, "created_at"=>2014-11-22 16:18:24 UTC, "editable_elements"=>[{"_id"=>"5470b75087f6438c5900002d", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:18:24 UTC, "created_at"=>2014-11-22 16:18:24 UTC}]}] flags=[] (0.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "template_dependencies.en"=>{"$in"=>["5470b75087f6438c5900002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75087f6438c5900002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75087f6438c5900002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74e87f6438c5900001e", "parent_id"=>"5470b74e87f6438c59000020", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74e87f6438c59000020", "site_id"=>"5470b74e87f6438c5900001e", "_id"=>{"$ne"=>"5470b75187f6438c5900002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74e87f6438c59000020", "site_id"=>"5470b74e87f6438c5900001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b74e87f6438c59000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75187f6438c5900002e", "parent_ids"=>["5470b74e87f6438c59000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b74e87f6438c5900001e", "parent_id"=>"5470b74e87f6438c59000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:25 UTC, "created_at"=>2014-11-22 16:18:25 UTC}] flags=[] (0.2277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "template_dependencies.en"=>{"$in"=>["5470b75187f6438c5900002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75187f6438c5900002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3278ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75187f6438c5900002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74e87f6438c5900001e", "parent_id"=>"5470b74e87f6438c59000020", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74e87f6438c59000020", "site_id"=>"5470b74e87f6438c5900001e", "_id"=>{"$ne"=>"5470b75187f6438c5900002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74e87f6438c59000020", "site_id"=>"5470b74e87f6438c5900001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b74e87f6438c59000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75187f6438c5900002f", "parent_ids"=>["5470b74e87f6438c59000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b74e87f6438c5900001e", "parent_id"=>"5470b74e87f6438c59000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:25 UTC, "created_at"=>2014-11-22 16:18:25 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "template_dependencies.en"=>{"$in"=>["5470b75187f6438c5900002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75187f6438c5900002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2761ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75187f6438c5900002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b74e87f6438c5900001e", "parent_id"=>"5470b74e87f6438c59000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74e87f6438c59000020", "site_id"=>"5470b74e87f6438c5900001e", "_id"=>{"$ne"=>"5470b75187f6438c59000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b74e87f6438c59000020", "site_id"=>"5470b74e87f6438c5900001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b74e87f6438c59000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75187f6438c59000030", "parent_ids"=>["5470b74e87f6438c59000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b74e87f6438c5900001e", "parent_id"=>"5470b74e87f6438c59000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:25 UTC, "created_at"=>2014-11-22 16:18:25 UTC}] flags=[] (0.2968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "template_dependencies.en"=>{"$in"=>["5470b75187f6438c59000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75187f6438c59000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75187f6438c59000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b74e87f6438c5900001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4487ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b74e87f6438c59000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:18:25 UTC}} flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "template_dependencies.en"=>{"$in"=>["5470b74e87f6438c59000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3688ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b75287f6438c59000031", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:18:11 UTC, "updated_at"=>2014-11-22 16:18:26 UTC, "memberships"=>[{"_id"=>"5470b75287f6438c59000032", "role"=>"admin", "account_id"=>"5470b74e87f6438c5900001d"}]}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75287f6438c59000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75287f6438c59000031", "_id"=>{"$ne"=>"5470b75287f6438c59000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5102ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75287f6438c59000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b75287f6438c59000031", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:26 UTC, "created_at"=>2014-11-22 16:18:26 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75287f6438c59000031", "template_dependencies.en"=>{"$in"=>["5470b75287f6438c59000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3457ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75287f6438c59000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2842ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75287f6438c59000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75287f6438c59000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75287f6438c59000031", "_id"=>{"$ne"=>"5470b75287f6438c59000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75287f6438c59000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5059ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75287f6438c59000034", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b75287f6438c59000031", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:26 UTC, "created_at"=>2014-11-22 16:18:26 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75287f6438c59000031", "template_dependencies.en"=>{"$in"=>["5470b75287f6438c59000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75287f6438c59000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3250ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75287f6438c59000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75287f6438c59000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75287f6438c59000031", "_id"=>{"$ne"=>"5470b75287f6438c59000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75287f6438c59000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75287f6438c59000035", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b75287f6438c59000031", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:26 UTC, "created_at"=>2014-11-22 16:18:26 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75287f6438c59000031", "template_dependencies.en"=>{"$in"=>["5470b75287f6438c59000035"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75287f6438c59000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75287f6438c59000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b75287f6438c59000031", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b75387f6438c59000036", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b75287f6438c59000031", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b75387f6438c59000037", "updated_at"=>2014-11-22 16:18:27 UTC, "created_at"=>2014-11-22 16:18:27 UTC, "entries_custom_fields"=>[{"_id"=>"5470b75387f6438c59000037", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75387f6438c59000038"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75387f6438c59000036"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b75387f6438c59000036", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75387f6438c59000036"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b75387f6438c59000038", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b75387f6438c59000036", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b75387f6438c59000036", "content_type_id"=>"5470b75387f6438c59000036", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b75287f6438c59000031", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:27 UTC, "created_at"=>2014-11-22 16:18:27 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b74f87f6438c5900002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75087f6438c5900002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b74f87f6438c59000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5100ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1197ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b74f87f6438c59000024"} update={"$set"=>{"updated_at"=>2014-11-22 16:18:27 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.0999ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b74f87f6438c59000024"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b74f87f6438c59000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b74e87f6438c5900001e", "_id"=>"5470b74f87f6438c59000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6540ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:18:27 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5960ms) Rendered text template (0.0ms) Completed 200 OK in 7.6ms (Views: 1.8ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 17:18:27 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6030ms) Rendered text template (0.0ms) Completed 200 OK in 574.8ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b74f87f6438c59000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b74f87f6438c59000024", "updated_at"=>{"$lt"=>2014-11-22 16:18:27 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.5947ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b74e87f6438c5900001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b74f87f6438c59000024"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470b74f87f6438c5900002a"} update={"$set"=>{"updated_at"=>2014-11-22 16:18:28 UTC}} flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470b74f87f6438c59000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b74f87f6438c59000022"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b74e87f6438c5900001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5534ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b74f87f6438c59000024"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5052ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470b75087f6438c5900002b"} update={"$set"=>{"updated_at"=>2014-11-22 16:18:29 UTC}} flags=[] (0.1378ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:18:29 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6030ms) Rendered text template (0.0ms) Completed 200 OK in 4.4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 17:18:29 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b74e87f6438c5900001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5441ms) Rendered text template (0.0ms) Completed 200 OK in 477.7ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6032ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4539ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3402ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2307ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8121ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b75687f6438c59000039", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"617b2bd17197fc6a321812336e00e2ef57f77037", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"v2wycp45Wo8ovzvsx7op", "api_key"=>"478d0a0f81ccd6cdd8793ca538cd06c5d66e04ee", "updated_at"=>2014-11-22 16:18:30 UTC, "created_at"=>2014-11-22 16:18:30 UTC}] flags=[] (0.1349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6871ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b75687f6438c5900003a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:18:11 UTC, "updated_at"=>2014-11-22 16:18:30 UTC, "memberships"=>[{"_id"=>"5470b75687f6438c5900003b", "role"=>"admin", "account_id"=>"5470b75687f6438c59000039"}]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75687f6438c5900003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75687f6438c5900003a", "_id"=>{"$ne"=>"5470b75687f6438c5900003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3071ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75687f6438c5900003c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b75687f6438c5900003a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:30 UTC, "created_at"=>2014-11-22 16:18:30 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75687f6438c5900003a", "template_dependencies.en"=>{"$in"=>["5470b75687f6438c5900003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75687f6438c5900003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75687f6438c5900003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75687f6438c5900003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4537ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75687f6438c5900003a", "_id"=>{"$ne"=>"5470b75787f6438c5900003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75687f6438c5900003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6940ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75787f6438c5900003d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b75687f6438c5900003a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:31 UTC, "created_at"=>2014-11-22 16:18:31 UTC}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75687f6438c5900003a", "template_dependencies.en"=>{"$in"=>["5470b75787f6438c5900003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75787f6438c5900003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3669ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75787f6438c5900003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b75687f6438c5900003a", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b75787f6438c5900003e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b75687f6438c5900003a", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b75787f6438c5900003f", "updated_at"=>2014-11-22 16:18:31 UTC, "created_at"=>2014-11-22 16:18:31 UTC, "entries_custom_fields"=>[{"_id"=>"5470b75787f6438c5900003f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b75687f6438c5900003a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b75787f6438c5900003e"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b75787f6438c59000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b75687f6438c5900003a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b75787f6438c59000041", "updated_at"=>2014-11-22 16:18:31 UTC, "created_at"=>2014-11-22 16:18:31 UTC, "entries_custom_fields"=>[{"_id"=>"5470b75787f6438c59000041", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b75787f6438c59000042", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b75787f6438c5900003e", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b75787f6438c59000043", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b75687f6438c5900003a", "_id"=>"5470b75787f6438c5900003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b75787f6438c59000040"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6390ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c5900003e"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1202ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b75787f6438c5900003e"} update={"$set"=>{"updated_at"=>2014-11-22 16:18:31 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b75787f6438c59000044", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b75787f6438c59000040", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1602ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b75787f6438c5900003e"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b75787f6438c59000040", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75787f6438c59000045"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c5900003e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b75787f6438c5900003e", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3283ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c5900003e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b75787f6438c59000045", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b75787f6438c5900003e", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b75787f6438c59000040", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b75787f6438c5900003e", "content_type_id"=>"5470b75787f6438c5900003e", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b75687f6438c5900003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:18:31 UTC, "created_at"=>2014-11-22 16:18:31 UTC}] flags=[] (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b75787f6438c59000045", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c59000040"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75787f6438c59000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c59000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b75787f6438c59000040", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c59000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4041ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c59000040"]}}} (0.3977ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b75787f6438c59000046", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b75787f6438c59000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b75787f6438c5900003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b75787f6438c59000045", "_type"=>"Locomotive::ContentEntry5470b75787f6438c59000040", "content_type_id"=>"5470b75787f6438c59000040", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b75687f6438c5900003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:31 UTC, "created_at"=>2014-11-22 16:18:31 UTC}] flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75887f6438c59000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c59000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b75787f6438c59000040", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c59000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4520ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c59000040"]}}} (0.3912ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c59000040"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4778ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b75887f6438c59000047", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b75787f6438c59000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b75787f6438c5900003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b75787f6438c59000040", "content_type_id"=>"5470b75787f6438c59000040", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b75687f6438c5900003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:32 UTC, "created_at"=>2014-11-22 16:18:32 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6959ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75687f6438c5900003a", "parent_id"=>"5470b75687f6438c5900003c", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75687f6438c5900003c", "site_id"=>"5470b75687f6438c5900003a", "_id"=>{"$ne"=>"5470b75887f6438c59000048"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b75687f6438c5900003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75887f6438c59000048", "parent_ids"=>["5470b75687f6438c5900003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b75687f6438c5900003a", "parent_id"=>"5470b75687f6438c5900003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:32 UTC, "created_at"=>2014-11-22 16:18:32 UTC, "editable_elements"=>[{"_id"=>"5470b75887f6438c59000049", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:18:32 UTC, "created_at"=>2014-11-22 16:18:32 UTC}]}] flags=[] (0.3169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75687f6438c5900003a", "template_dependencies.en"=>{"$in"=>["5470b75887f6438c59000048"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75887f6438c59000048"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3192ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75887f6438c59000048"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75687f6438c5900003a", "parent_id"=>"5470b75687f6438c5900003c", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75687f6438c5900003c", "site_id"=>"5470b75687f6438c5900003a", "_id"=>{"$ne"=>"5470b75987f6438c5900004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7598ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75687f6438c5900003c", "site_id"=>"5470b75687f6438c5900003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b75687f6438c5900003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6011ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75987f6438c5900004a", "parent_ids"=>["5470b75687f6438c5900003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b75687f6438c5900003a", "parent_id"=>"5470b75687f6438c5900003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:33 UTC, "created_at"=>2014-11-22 16:18:33 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75687f6438c5900003a", "template_dependencies.en"=>{"$in"=>["5470b75987f6438c5900004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75987f6438c5900004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75987f6438c5900004a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75687f6438c5900003a", "parent_id"=>"5470b75687f6438c5900003c", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4013ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75687f6438c5900003c", "site_id"=>"5470b75687f6438c5900003a", "_id"=>{"$ne"=>"5470b75987f6438c5900004b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75687f6438c5900003c", "site_id"=>"5470b75687f6438c5900003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b75687f6438c5900003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5157ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75987f6438c5900004b", "parent_ids"=>["5470b75687f6438c5900003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b75687f6438c5900003a", "parent_id"=>"5470b75687f6438c5900003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:33 UTC, "created_at"=>2014-11-22 16:18:33 UTC}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75687f6438c5900003a", "template_dependencies.en"=>{"$in"=>["5470b75987f6438c5900004b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75987f6438c5900004b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75987f6438c5900004b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75687f6438c5900003a", "parent_id"=>"5470b75687f6438c5900003c", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75687f6438c5900003c", "site_id"=>"5470b75687f6438c5900003a", "_id"=>{"$ne"=>"5470b75987f6438c5900004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75687f6438c5900003c", "site_id"=>"5470b75687f6438c5900003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4942ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b75687f6438c5900003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75987f6438c5900004c", "parent_ids"=>["5470b75687f6438c5900003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b75687f6438c5900003a", "parent_id"=>"5470b75687f6438c5900003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:33 UTC, "created_at"=>2014-11-22 16:18:33 UTC}] flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75687f6438c5900003a", "template_dependencies.en"=>{"$in"=>["5470b75987f6438c5900004c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75987f6438c5900004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2930ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75987f6438c5900004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75687f6438c5900003a", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b75687f6438c5900003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4201ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b75687f6438c5900003c"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:18:34 UTC}} flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75687f6438c5900003a", "template_dependencies.en"=>{"$in"=>["5470b75687f6438c5900003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3593ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b75a87f6438c5900004d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:18:11 UTC, "updated_at"=>2014-11-22 16:18:34 UTC, "memberships"=>[{"_id"=>"5470b75a87f6438c5900004e", "role"=>"admin", "account_id"=>"5470b75687f6438c59000039"}]}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75a87f6438c5900004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75a87f6438c5900004d", "_id"=>{"$ne"=>"5470b75a87f6438c5900004f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75a87f6438c5900004f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b75a87f6438c5900004d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:34 UTC, "created_at"=>2014-11-22 16:18:34 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75a87f6438c5900004d", "template_dependencies.en"=>{"$in"=>["5470b75a87f6438c5900004f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75a87f6438c5900004f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3109ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75a87f6438c5900004f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75a87f6438c5900004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4086ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75a87f6438c5900004d", "_id"=>{"$ne"=>"5470b75a87f6438c59000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75a87f6438c5900004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75a87f6438c59000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b75a87f6438c5900004d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:34 UTC, "created_at"=>2014-11-22 16:18:34 UTC}] flags=[] (0.2067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75a87f6438c5900004d", "template_dependencies.en"=>{"$in"=>["5470b75a87f6438c59000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75a87f6438c59000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75a87f6438c59000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75a87f6438c5900004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75a87f6438c5900004d", "_id"=>{"$ne"=>"5470b75a87f6438c59000051"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75a87f6438c5900004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3419ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75a87f6438c59000051", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b75a87f6438c5900004d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:34 UTC, "created_at"=>2014-11-22 16:18:34 UTC}] flags=[] (0.1898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75a87f6438c5900004d", "template_dependencies.en"=>{"$in"=>["5470b75a87f6438c59000051"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75a87f6438c59000051"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2820ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75a87f6438c59000051"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b75a87f6438c5900004d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4518ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b75b87f6438c59000052", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b75a87f6438c5900004d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b75b87f6438c59000053", "updated_at"=>2014-11-22 16:18:35 UTC, "created_at"=>2014-11-22 16:18:35 UTC, "entries_custom_fields"=>[{"_id"=>"5470b75b87f6438c59000053", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75b87f6438c59000054"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75b87f6438c59000052"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b75b87f6438c59000052", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75b87f6438c59000052"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3803ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b75b87f6438c59000054", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b75b87f6438c59000052", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b75b87f6438c59000052", "content_type_id"=>"5470b75b87f6438c59000052", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b75a87f6438c5900004d", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:35 UTC, "created_at"=>2014-11-22 16:18:35 UTC}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75787f6438c59000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c59000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75887f6438c59000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c59000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b75787f6438c5900003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5381ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75787f6438c59000040"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1421ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b75787f6438c59000040"} update={"$set"=>{"updated_at"=>2014-11-22 16:18:35 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.1221ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b75787f6438c59000040"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b75787f6438c5900003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b75687f6438c5900003a", "_id"=>"5470b75787f6438c5900003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.0850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0791ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7491ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3657ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b75c87f6438c59000055", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3c3539eb15e7644502ca1e40b3fbceb7db492862", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"2z8Qvc6J1rSQv1nCgcxH", "api_key"=>"607a18920cbed0da5e4d179943386f123ac98dd7", "updated_at"=>2014-11-22 16:18:36 UTC, "created_at"=>2014-11-22 16:18:36 UTC}] flags=[] (0.1400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b75c87f6438c59000056", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:18:11 UTC, "updated_at"=>2014-11-22 16:18:36 UTC, "memberships"=>[{"_id"=>"5470b75c87f6438c59000057", "role"=>"admin", "account_id"=>"5470b75c87f6438c59000055"}]}] flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75c87f6438c59000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75c87f6438c59000056", "_id"=>{"$ne"=>"5470b75c87f6438c59000058"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3281ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75c87f6438c59000058", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b75c87f6438c59000056", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:36 UTC, "created_at"=>2014-11-22 16:18:36 UTC}] flags=[] (0.2077ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "template_dependencies.en"=>{"$in"=>["5470b75c87f6438c59000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75c87f6438c59000058"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75c87f6438c59000058"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75c87f6438c59000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75c87f6438c59000056", "_id"=>{"$ne"=>"5470b75c87f6438c59000059"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75c87f6438c59000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75c87f6438c59000059", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b75c87f6438c59000056", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:36 UTC, "created_at"=>2014-11-22 16:18:36 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "template_dependencies.en"=>{"$in"=>["5470b75c87f6438c59000059"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75c87f6438c59000059"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75c87f6438c59000059"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b75c87f6438c59000056", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6971ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b75c87f6438c5900005a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b75c87f6438c59000056", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b75c87f6438c5900005b", "updated_at"=>2014-11-22 16:18:36 UTC, "created_at"=>2014-11-22 16:18:36 UTC, "entries_custom_fields"=>[{"_id"=>"5470b75c87f6438c5900005b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b75c87f6438c59000056", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b75c87f6438c5900005a"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b75c87f6438c5900005c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b75c87f6438c59000056", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b75c87f6438c5900005d", "updated_at"=>2014-11-22 16:18:36 UTC, "created_at"=>2014-11-22 16:18:36 UTC, "entries_custom_fields"=>[{"_id"=>"5470b75c87f6438c5900005d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b75c87f6438c5900005e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b75c87f6438c5900005a", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b75c87f6438c5900005f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b75c87f6438c59000056", "_id"=>"5470b75c87f6438c5900005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b75c87f6438c5900005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75c87f6438c5900005a"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b75c87f6438c5900005a"} update={"$set"=>{"updated_at"=>2014-11-22 16:18:36 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b75c87f6438c59000060", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b75c87f6438c5900005c", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b75c87f6438c5900005a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b75c87f6438c5900005c", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75c87f6438c59000061"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75c87f6438c5900005a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b75c87f6438c5900005a", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3383ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75c87f6438c5900005a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b75c87f6438c59000061", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b75c87f6438c5900005a", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b75c87f6438c5900005c", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b75c87f6438c5900005a", "content_type_id"=>"5470b75c87f6438c5900005a", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b75c87f6438c59000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:18:36 UTC, "created_at"=>2014-11-22 16:18:36 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b75c87f6438c59000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75c87f6438c5900005c"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75d87f6438c59000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75c87f6438c5900005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b75c87f6438c5900005c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75c87f6438c5900005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4098ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75c87f6438c5900005c"]}}} (0.3741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b75d87f6438c59000062", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b75c87f6438c5900005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b75c87f6438c5900005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b75c87f6438c59000061", "_type"=>"Locomotive::ContentEntry5470b75c87f6438c5900005c", "content_type_id"=>"5470b75c87f6438c5900005c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b75c87f6438c59000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:37 UTC, "created_at"=>2014-11-22 16:18:37 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b75d87f6438c59000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b75c87f6438c5900005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b75c87f6438c5900005c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75c87f6438c5900005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5393ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75c87f6438c5900005c"]}}} (0.3819ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b75c87f6438c5900005c"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5372ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b75d87f6438c59000063", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b75c87f6438c5900005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b75c87f6438c5900005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b75c87f6438c5900005c", "content_type_id"=>"5470b75c87f6438c5900005c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b75c87f6438c59000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:37 UTC, "created_at"=>2014-11-22 16:18:37 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6731ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75c87f6438c59000056", "parent_id"=>"5470b75c87f6438c59000058", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75c87f6438c59000058", "site_id"=>"5470b75c87f6438c59000056", "_id"=>{"$ne"=>"5470b75e87f6438c59000064"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b75c87f6438c59000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5717ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75e87f6438c59000064", "parent_ids"=>["5470b75c87f6438c59000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b75c87f6438c59000056", "parent_id"=>"5470b75c87f6438c59000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:38 UTC, "created_at"=>2014-11-22 16:18:38 UTC, "editable_elements"=>[{"_id"=>"5470b75e87f6438c59000065", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:18:38 UTC, "created_at"=>2014-11-22 16:18:38 UTC}]}] flags=[] (0.3219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "template_dependencies.en"=>{"$in"=>["5470b75e87f6438c59000064"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75e87f6438c59000064"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3052ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75e87f6438c59000064"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0927ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75c87f6438c59000056", "parent_id"=>"5470b75c87f6438c59000058", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75c87f6438c59000058", "site_id"=>"5470b75c87f6438c59000056", "_id"=>{"$ne"=>"5470b75e87f6438c59000066"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75c87f6438c59000058", "site_id"=>"5470b75c87f6438c59000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b75c87f6438c59000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75e87f6438c59000066", "parent_ids"=>["5470b75c87f6438c59000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b75c87f6438c59000056", "parent_id"=>"5470b75c87f6438c59000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:38 UTC, "created_at"=>2014-11-22 16:18:38 UTC}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "template_dependencies.en"=>{"$in"=>["5470b75e87f6438c59000066"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75e87f6438c59000066"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2949ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75e87f6438c59000066"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75c87f6438c59000056", "parent_id"=>"5470b75c87f6438c59000058", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75c87f6438c59000058", "site_id"=>"5470b75c87f6438c59000056", "_id"=>{"$ne"=>"5470b75e87f6438c59000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75c87f6438c59000058", "site_id"=>"5470b75c87f6438c59000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b75c87f6438c59000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5460ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75e87f6438c59000067", "parent_ids"=>["5470b75c87f6438c59000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b75c87f6438c59000056", "parent_id"=>"5470b75c87f6438c59000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:38 UTC, "created_at"=>2014-11-22 16:18:38 UTC}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "template_dependencies.en"=>{"$in"=>["5470b75e87f6438c59000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75e87f6438c59000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2780ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75e87f6438c59000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75c87f6438c59000056", "parent_id"=>"5470b75c87f6438c59000058", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75c87f6438c59000058", "site_id"=>"5470b75c87f6438c59000056", "_id"=>{"$ne"=>"5470b75e87f6438c59000068"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75c87f6438c59000058", "site_id"=>"5470b75c87f6438c59000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b75c87f6438c59000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75e87f6438c59000068", "parent_ids"=>["5470b75c87f6438c59000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b75c87f6438c59000056", "parent_id"=>"5470b75c87f6438c59000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:38 UTC, "created_at"=>2014-11-22 16:18:38 UTC}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "template_dependencies.en"=>{"$in"=>["5470b75e87f6438c59000068"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75e87f6438c59000068"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75e87f6438c59000068"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b75c87f6438c59000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4840ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b75c87f6438c59000058"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:18:39 UTC}} flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "template_dependencies.en"=>{"$in"=>["5470b75c87f6438c59000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b75f87f6438c59000069", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:18:11 UTC, "updated_at"=>2014-11-22 16:18:39 UTC, "memberships"=>[{"_id"=>"5470b75f87f6438c5900006a", "role"=>"admin", "account_id"=>"5470b75c87f6438c59000055"}]}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75f87f6438c59000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75f87f6438c59000069", "_id"=>{"$ne"=>"5470b75f87f6438c5900006b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b75f87f6438c5900006b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b75f87f6438c59000069", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:39 UTC, "created_at"=>2014-11-22 16:18:39 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75f87f6438c59000069", "template_dependencies.en"=>{"$in"=>["5470b75f87f6438c5900006b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b75f87f6438c5900006b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b75f87f6438c5900006b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75f87f6438c59000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75f87f6438c59000069", "_id"=>{"$ne"=>"5470b76087f6438c5900006c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75f87f6438c59000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5052ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b76087f6438c5900006c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b75f87f6438c59000069", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:40 UTC, "created_at"=>2014-11-22 16:18:40 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75f87f6438c59000069", "template_dependencies.en"=>{"$in"=>["5470b76087f6438c5900006c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b76087f6438c5900006c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b76087f6438c5900006c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b75f87f6438c59000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75f87f6438c59000069", "_id"=>{"$ne"=>"5470b76087f6438c5900006d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b75f87f6438c59000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3242ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b76087f6438c5900006d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b75f87f6438c59000069", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:18:40 UTC, "created_at"=>2014-11-22 16:18:40 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75f87f6438c59000069", "template_dependencies.en"=>{"$in"=>["5470b76087f6438c5900006d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b76087f6438c5900006d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2961ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b76087f6438c5900006d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0787ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b75f87f6438c59000069", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b76187f6438c5900006e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b75f87f6438c59000069", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b76187f6438c5900006f", "updated_at"=>2014-11-22 16:18:41 UTC, "created_at"=>2014-11-22 16:18:41 UTC, "entries_custom_fields"=>[{"_id"=>"5470b76187f6438c5900006f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b76187f6438c59000070"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b76187f6438c5900006e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b76187f6438c5900006e", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b76187f6438c5900006e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4117ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b76187f6438c59000070", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b76187f6438c5900006e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b76187f6438c5900006e", "content_type_id"=>"5470b76187f6438c5900006e", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b75f87f6438c59000069", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:18:41 UTC, "created_at"=>2014-11-22 16:18:41 UTC}] flags=[] (0.1662ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:18:41 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7038ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 17:18:41 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7012ms) Rendered text template (0.0ms) Completed 200 OK in 593.9ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 17:18:42 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6297ms) Rendered text template (0.0ms) Completed 200 OK in 4.4ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:18:42 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5550ms) Rendered text template (0.0ms) Completed 200 OK in 3.7ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 17:18:42 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b75c87f6438c59000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7927ms) Rendered text template (0.0ms) Completed 200 OK in 629.3ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6440ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6489ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3907ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8981ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9649ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.3592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6981ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4098ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b77f87f6432f06000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"36ba0692dee1c161512ea06c0a8a3b1ab4f39d2f", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Tn2cs4bmeYXh3o3qxzzf", "api_key"=>"b20b196bad4102a9920c0eeef4fe74534f08b303", "updated_at"=>2014-11-22 16:19:11 UTC, "created_at"=>2014-11-22 16:19:11 UTC}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b77f87f6432f06000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:19:10 UTC, "updated_at"=>2014-11-22 16:19:11 UTC, "memberships"=>[{"_id"=>"5470b77f87f6432f06000003", "role"=>"admin", "account_id"=>"5470b77f87f6432f06000001"}]}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b77f87f6432f06000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b77f87f6432f06000002", "_id"=>{"$ne"=>"5470b77f87f6432f06000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b77f87f6432f06000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b77f87f6432f06000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:11 UTC, "created_at"=>2014-11-22 16:19:11 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b77f87f6432f06000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4947ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002", "template_dependencies.en"=>{"$in"=>["5470b77f87f6432f06000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3009ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b77f87f6432f06000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b77f87f6432f06000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b77f87f6432f06000002", "_id"=>{"$ne"=>"5470b78087f6432f06000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5281ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78087f6432f06000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b77f87f6432f06000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:12 UTC, "created_at"=>2014-11-22 16:19:12 UTC}] flags=[] (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002", "template_dependencies.en"=>{"$in"=>["5470b78087f6432f06000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78087f6432f06000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3002ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78087f6432f06000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b77f87f6432f06000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4151ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b78087f6432f06000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b77f87f6432f06000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b78087f6432f06000007", "updated_at"=>2014-11-22 16:19:12 UTC, "created_at"=>2014-11-22 16:19:12 UTC, "entries_custom_fields"=>[{"_id"=>"5470b78087f6432f06000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b77f87f6432f06000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b78087f6432f06000006"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b78087f6432f06000008", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b77f87f6432f06000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b78087f6432f06000009", "updated_at"=>2014-11-22 16:19:12 UTC, "created_at"=>2014-11-22 16:19:12 UTC, "entries_custom_fields"=>[{"_id"=>"5470b78087f6432f06000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b78087f6432f0600000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b78087f6432f06000006", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b78087f6432f0600000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b77f87f6432f06000002", "_id"=>"5470b78087f6432f06000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b78087f6432f06000008"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2078ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78087f6432f06000006"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1380ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b78087f6432f06000006"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:12 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b78087f6432f0600000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b78087f6432f06000008", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78087f6432f06000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78087f6432f06000008", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78087f6432f0600000d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78087f6432f06000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78087f6432f06000006", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78087f6432f06000006"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3881ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b78087f6432f0600000d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b78087f6432f06000006", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78087f6432f06000008", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b78087f6432f06000006", "content_type_id"=>"5470b78087f6432f06000006", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b77f87f6432f06000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:19:12 UTC, "created_at"=>2014-11-22 16:19:12 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b78087f6432f0600000d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78087f6432f06000008"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78087f6432f0600000e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78087f6432f06000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78087f6432f06000008", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78087f6432f06000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3948ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78087f6432f06000008"]}}} (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b78087f6432f0600000e", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b78087f6432f06000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78087f6432f06000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b78087f6432f0600000d", "_type"=>"Locomotive::ContentEntry5470b78087f6432f06000008", "content_type_id"=>"5470b78087f6432f06000008", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b77f87f6432f06000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:12 UTC, "created_at"=>2014-11-22 16:19:12 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78187f6432f0600000f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78087f6432f06000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78087f6432f06000008", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78087f6432f06000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4470ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78087f6432f06000008"]}}} (0.3829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78087f6432f06000008"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b78187f6432f0600000f", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b78087f6432f06000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78087f6432f06000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b78087f6432f06000008", "content_type_id"=>"5470b78087f6432f06000008", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b77f87f6432f06000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:13 UTC, "created_at"=>2014-11-22 16:19:13 UTC}] flags=[] (0.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6952ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b77f87f6432f06000002", "parent_id"=>"5470b77f87f6432f06000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4728ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b77f87f6432f06000004", "site_id"=>"5470b77f87f6432f06000002", "_id"=>{"$ne"=>"5470b78187f6432f06000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b77f87f6432f06000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5567ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78187f6432f06000010", "parent_ids"=>["5470b77f87f6432f06000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b77f87f6432f06000002", "parent_id"=>"5470b77f87f6432f06000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:13 UTC, "created_at"=>2014-11-22 16:19:13 UTC, "editable_elements"=>[{"_id"=>"5470b78187f6432f06000011", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:19:13 UTC, "created_at"=>2014-11-22 16:19:13 UTC}]}] flags=[] (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002", "template_dependencies.en"=>{"$in"=>["5470b78187f6432f06000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78187f6432f06000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2949ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78187f6432f06000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b77f87f6432f06000002", "parent_id"=>"5470b77f87f6432f06000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b77f87f6432f06000004", "site_id"=>"5470b77f87f6432f06000002", "_id"=>{"$ne"=>"5470b78287f6432f06000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b77f87f6432f06000004", "site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b77f87f6432f06000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5777ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78287f6432f06000012", "parent_ids"=>["5470b77f87f6432f06000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b77f87f6432f06000002", "parent_id"=>"5470b77f87f6432f06000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:14 UTC, "created_at"=>2014-11-22 16:19:14 UTC}] flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002", "template_dependencies.en"=>{"$in"=>["5470b78287f6432f06000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78287f6432f06000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2539ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78287f6432f06000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b77f87f6432f06000002", "parent_id"=>"5470b77f87f6432f06000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b77f87f6432f06000004", "site_id"=>"5470b77f87f6432f06000002", "_id"=>{"$ne"=>"5470b78287f6432f06000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b77f87f6432f06000004", "site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b77f87f6432f06000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5162ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78287f6432f06000013", "parent_ids"=>["5470b77f87f6432f06000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b77f87f6432f06000002", "parent_id"=>"5470b77f87f6432f06000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:14 UTC, "created_at"=>2014-11-22 16:19:14 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002", "template_dependencies.en"=>{"$in"=>["5470b78287f6432f06000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78287f6432f06000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2561ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78287f6432f06000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b77f87f6432f06000002", "parent_id"=>"5470b77f87f6432f06000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4463ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b77f87f6432f06000004", "site_id"=>"5470b77f87f6432f06000002", "_id"=>{"$ne"=>"5470b78287f6432f06000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b77f87f6432f06000004", "site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b77f87f6432f06000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5372ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78287f6432f06000014", "parent_ids"=>["5470b77f87f6432f06000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b77f87f6432f06000002", "parent_id"=>"5470b77f87f6432f06000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:14 UTC, "created_at"=>2014-11-22 16:19:14 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002", "template_dependencies.en"=>{"$in"=>["5470b78287f6432f06000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78287f6432f06000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2902ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78287f6432f06000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7553ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4232ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b77f87f6432f06000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:19:14 UTC}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002", "template_dependencies.en"=>{"$in"=>["5470b77f87f6432f06000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4199ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b78387f6432f06000015", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:19:10 UTC, "updated_at"=>2014-11-22 16:19:15 UTC, "memberships"=>[{"_id"=>"5470b78387f6432f06000016", "role"=>"admin", "account_id"=>"5470b77f87f6432f06000001"}]}] flags=[] (0.2003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78387f6432f06000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78387f6432f06000015", "_id"=>{"$ne"=>"5470b78387f6432f06000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78387f6432f06000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b78387f6432f06000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:15 UTC, "created_at"=>2014-11-22 16:19:15 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78387f6432f06000015", "template_dependencies.en"=>{"$in"=>["5470b78387f6432f06000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78387f6432f06000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78387f6432f06000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78387f6432f06000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78387f6432f06000015", "_id"=>{"$ne"=>"5470b78387f6432f06000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78387f6432f06000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78387f6432f06000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b78387f6432f06000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:15 UTC, "created_at"=>2014-11-22 16:19:15 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78387f6432f06000015", "template_dependencies.en"=>{"$in"=>["5470b78387f6432f06000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78387f6432f06000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3669ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78387f6432f06000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78387f6432f06000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78387f6432f06000015", "_id"=>{"$ne"=>"5470b78387f6432f06000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78387f6432f06000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78387f6432f06000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b78387f6432f06000015", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:15 UTC, "created_at"=>2014-11-22 16:19:15 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78387f6432f06000015", "template_dependencies.en"=>{"$in"=>["5470b78387f6432f06000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78387f6432f06000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78387f6432f06000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b78387f6432f06000015", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b78487f6432f0600001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b78387f6432f06000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b78487f6432f0600001b", "updated_at"=>2014-11-22 16:19:16 UTC, "created_at"=>2014-11-22 16:19:16 UTC, "entries_custom_fields"=>[{"_id"=>"5470b78487f6432f0600001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78487f6432f0600001c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78487f6432f0600001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78487f6432f0600001a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3893ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78487f6432f0600001a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b78487f6432f0600001c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b78487f6432f0600001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b78487f6432f0600001a", "content_type_id"=>"5470b78487f6432f0600001a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b78387f6432f06000015", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:16 UTC, "created_at"=>2014-11-22 16:19:16 UTC}] flags=[] (0.2551ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 17:19:17 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b77f87f6432f06000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5400ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (15.7ms) Completed 200 OK in 35.7ms (Views: 29.7ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 17:19:17 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (7ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 17:19:17 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (8ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 17:19:17 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 17:19:17 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b77f87f6432f06000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5140ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b77f87f6432f06000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 16:19:17 UTC, "updated_at"=>2014-11-22 16:19:17 UTC}} flags=[] (0.1221ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b77f87f6432f06000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 16:19:17 UTC, "current_sign_in_at"=>2014-11-22 16:19:17 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 16:19:17 UTC}} flags=[] (0.1249ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 17.4ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:19:17 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b77f87f6432f06000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b77f87f6432f06000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.6069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3020ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4158115978506] (0.1128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b78087f6432f06000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b78087f6432f06000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7470ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (28.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (9.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (50.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b77f87f6432f06000001", :role=>:admin}}}} (0.6912ms) Rendered locomotive/shared/_main_app_head.html.haml (2.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (15.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b77f87f6432f06000001"}} (0.5398ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b77f87f6432f06000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5910ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (3.8ms) Rendered locomotive/shared/_main_app_header.html.haml (5.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (29.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 132.0ms (Views: 115.8ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 17:19:17 +0100 Served asset /locomotive.js - 200 OK (101ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 17:19:17 +0100 Served asset /locomotive.css - 200 OK (32ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 17:19:18 +0100 Served asset /locomotive/search_bar.js - 200 OK (4ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 17:19:18 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 17:19:18 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 17:19:18 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 17:19:18 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:19:18 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b77f87f6432f06000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b77f87f6432f06000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2143ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4157997371890] (0.0770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b77f87f6432f06000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b78087f6432f06000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b78087f6432f06000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7317ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (15.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (21.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b77f87f6432f06000001", :role=>:admin}}}} (0.4911ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b77f87f6432f06000001"}} (0.5422ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b77f87f6432f06000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5059ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (7.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 52.3ms (Views: 38.0ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 17:19:18 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b77f87f6432f06000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b77f87f6432f06000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5016ms) Completed 200 OK in 765.6ms (Views: 0.8ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6700ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5099ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5059ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3592ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8609ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3290ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b78887f6432f0600001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"503cee9c049ef5c26c30b8043422b501051341b0", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"YxCQJVvJqyv6NCsNzCio", "api_key"=>"3701aa7748d69111546b2227d7ac3bf4ab988ccd", "updated_at"=>2014-11-22 16:19:20 UTC, "created_at"=>2014-11-22 16:19:20 UTC}] flags=[] (0.1321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6118ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b78887f6432f0600001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:19:10 UTC, "updated_at"=>2014-11-22 16:19:20 UTC, "memberships"=>[{"_id"=>"5470b78887f6432f0600001f", "role"=>"admin", "account_id"=>"5470b78887f6432f0600001d"}]}] flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78887f6432f0600001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78887f6432f0600001e", "_id"=>{"$ne"=>"5470b78887f6432f06000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3207ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78887f6432f06000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b78887f6432f0600001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:20 UTC, "created_at"=>2014-11-22 16:19:20 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78887f6432f0600001e", "template_dependencies.en"=>{"$in"=>["5470b78887f6432f06000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78887f6432f06000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2580ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78887f6432f06000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78887f6432f0600001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78887f6432f0600001e", "_id"=>{"$ne"=>"5470b78987f6432f06000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78887f6432f0600001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5081ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78987f6432f06000021", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b78887f6432f0600001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:21 UTC, "created_at"=>2014-11-22 16:19:21 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78887f6432f0600001e", "template_dependencies.en"=>{"$in"=>["5470b78987f6432f06000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78987f6432f06000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2820ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78987f6432f06000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b78887f6432f0600001e", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6196ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b78987f6432f06000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b78887f6432f0600001e", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b78987f6432f06000023", "updated_at"=>2014-11-22 16:19:21 UTC, "created_at"=>2014-11-22 16:19:21 UTC, "entries_custom_fields"=>[{"_id"=>"5470b78987f6432f06000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b78887f6432f0600001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b78987f6432f06000022"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b78987f6432f06000024", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b78887f6432f0600001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b78987f6432f06000025", "updated_at"=>2014-11-22 16:19:21 UTC, "created_at"=>2014-11-22 16:19:21 UTC, "entries_custom_fields"=>[{"_id"=>"5470b78987f6432f06000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b78987f6432f06000026", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b78987f6432f06000022", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b78987f6432f06000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b78887f6432f0600001e", "_id"=>"5470b78987f6432f06000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b78987f6432f06000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000022"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1132ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b78987f6432f06000022"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:21 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b78987f6432f06000028", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b78987f6432f06000024", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78987f6432f06000022"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78987f6432f06000024", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78987f6432f06000029"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78987f6432f06000022", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b78987f6432f06000029", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b78987f6432f06000022", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78987f6432f06000024", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b78987f6432f06000022", "content_type_id"=>"5470b78987f6432f06000022", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b78887f6432f0600001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:19:21 UTC, "created_at"=>2014-11-22 16:19:21 UTC}] flags=[] (0.1967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b78987f6432f06000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000024"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78987f6432f0600002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78987f6432f06000024", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4001ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000024"]}}} (0.3500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b78987f6432f0600002a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b78987f6432f06000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78987f6432f06000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b78987f6432f06000029", "_type"=>"Locomotive::ContentEntry5470b78987f6432f06000024", "content_type_id"=>"5470b78987f6432f06000024", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b78887f6432f0600001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:21 UTC, "created_at"=>2014-11-22 16:19:21 UTC}] flags=[] (0.2346ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78a87f6432f0600002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78987f6432f06000024", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5260ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000024"]}}} (0.3381ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000024"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b78a87f6432f0600002b", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b78987f6432f06000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78987f6432f06000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b78987f6432f06000024", "content_type_id"=>"5470b78987f6432f06000024", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b78887f6432f0600001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:22 UTC, "created_at"=>2014-11-22 16:19:22 UTC}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6778ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78887f6432f0600001e", "parent_id"=>"5470b78887f6432f06000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78887f6432f06000020", "site_id"=>"5470b78887f6432f0600001e", "_id"=>{"$ne"=>"5470b78a87f6432f0600002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b78887f6432f06000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5538ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78a87f6432f0600002c", "parent_ids"=>["5470b78887f6432f06000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b78887f6432f0600001e", "parent_id"=>"5470b78887f6432f06000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:22 UTC, "created_at"=>2014-11-22 16:19:22 UTC, "editable_elements"=>[{"_id"=>"5470b78a87f6432f0600002d", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:19:22 UTC, "created_at"=>2014-11-22 16:19:22 UTC}]}] flags=[] (0.2909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78887f6432f0600001e", "template_dependencies.en"=>{"$in"=>["5470b78a87f6432f0600002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78a87f6432f0600002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78a87f6432f0600002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6547ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78887f6432f0600001e", "parent_id"=>"5470b78887f6432f06000020", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78887f6432f06000020", "site_id"=>"5470b78887f6432f0600001e", "_id"=>{"$ne"=>"5470b78b87f6432f0600002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78887f6432f06000020", "site_id"=>"5470b78887f6432f0600001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b78887f6432f06000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5703ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78b87f6432f0600002e", "parent_ids"=>["5470b78887f6432f06000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b78887f6432f0600001e", "parent_id"=>"5470b78887f6432f06000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:23 UTC, "created_at"=>2014-11-22 16:19:23 UTC}] flags=[] (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78887f6432f0600001e", "template_dependencies.en"=>{"$in"=>["5470b78b87f6432f0600002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78b87f6432f0600002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78b87f6432f0600002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78887f6432f0600001e", "parent_id"=>"5470b78887f6432f06000020", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78887f6432f06000020", "site_id"=>"5470b78887f6432f0600001e", "_id"=>{"$ne"=>"5470b78b87f6432f0600002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78887f6432f06000020", "site_id"=>"5470b78887f6432f0600001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b78887f6432f06000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78b87f6432f0600002f", "parent_ids"=>["5470b78887f6432f06000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b78887f6432f0600001e", "parent_id"=>"5470b78887f6432f06000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:23 UTC, "created_at"=>2014-11-22 16:19:23 UTC}] flags=[] (0.1812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78887f6432f0600001e", "template_dependencies.en"=>{"$in"=>["5470b78b87f6432f0600002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78b87f6432f0600002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2644ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78b87f6432f0600002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78887f6432f0600001e", "parent_id"=>"5470b78887f6432f06000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78887f6432f06000020", "site_id"=>"5470b78887f6432f0600001e", "_id"=>{"$ne"=>"5470b78b87f6432f06000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78887f6432f06000020", "site_id"=>"5470b78887f6432f0600001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b78887f6432f06000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78b87f6432f06000030", "parent_ids"=>["5470b78887f6432f06000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b78887f6432f0600001e", "parent_id"=>"5470b78887f6432f06000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:23 UTC, "created_at"=>2014-11-22 16:19:23 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78887f6432f0600001e", "template_dependencies.en"=>{"$in"=>["5470b78b87f6432f06000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78b87f6432f06000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2849ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78b87f6432f06000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78887f6432f0600001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b78887f6432f0600001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b78887f6432f06000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:19:24 UTC}} flags=[] (0.1538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78887f6432f0600001e", "template_dependencies.en"=>{"$in"=>["5470b78887f6432f06000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3769ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b78c87f6432f06000031", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:19:10 UTC, "updated_at"=>2014-11-22 16:19:24 UTC, "memberships"=>[{"_id"=>"5470b78c87f6432f06000032", "role"=>"admin", "account_id"=>"5470b78887f6432f0600001d"}]}] flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78c87f6432f06000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78c87f6432f06000031", "_id"=>{"$ne"=>"5470b78c87f6432f06000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5162ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78c87f6432f06000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b78c87f6432f06000031", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:24 UTC, "created_at"=>2014-11-22 16:19:24 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78c87f6432f06000031", "template_dependencies.en"=>{"$in"=>["5470b78c87f6432f06000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78c87f6432f06000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2887ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78c87f6432f06000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78c87f6432f06000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78c87f6432f06000031", "_id"=>{"$ne"=>"5470b78c87f6432f06000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78c87f6432f06000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78c87f6432f06000034", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b78c87f6432f06000031", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:24 UTC, "created_at"=>2014-11-22 16:19:24 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78c87f6432f06000031", "template_dependencies.en"=>{"$in"=>["5470b78c87f6432f06000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78c87f6432f06000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3061ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78c87f6432f06000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78c87f6432f06000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78c87f6432f06000031", "_id"=>{"$ne"=>"5470b78c87f6432f06000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78c87f6432f06000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4606ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78c87f6432f06000035", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b78c87f6432f06000031", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:24 UTC, "created_at"=>2014-11-22 16:19:24 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78c87f6432f06000031", "template_dependencies.en"=>{"$in"=>["5470b78c87f6432f06000035"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78c87f6432f06000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78c87f6432f06000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b78c87f6432f06000031", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b78d87f6432f06000036", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b78c87f6432f06000031", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b78d87f6432f06000037", "updated_at"=>2014-11-22 16:19:25 UTC, "created_at"=>2014-11-22 16:19:25 UTC, "entries_custom_fields"=>[{"_id"=>"5470b78d87f6432f06000037", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78d87f6432f06000038"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78d87f6432f06000036"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78d87f6432f06000036", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4313ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78d87f6432f06000036"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3889ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b78d87f6432f06000038", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b78d87f6432f06000036", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b78d87f6432f06000036", "content_type_id"=>"5470b78d87f6432f06000036", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b78c87f6432f06000031", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:25 UTC, "created_at"=>2014-11-22 16:19:25 UTC}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78987f6432f0600002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78a87f6432f0600002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b78987f6432f06000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4869ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78987f6432f06000024"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b78987f6432f06000024"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:25 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.1013ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78987f6432f06000024"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78987f6432f06000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b78887f6432f0600001e", "_id"=>"5470b78987f6432f06000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3351ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1699ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0831ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7460ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3452ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b78e87f6432f06000039", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c35342c16b593e2abcb5281eb7c44aa1a4cc6dfa", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"DZUp7FqBpEAAy7L1Gmfe", "api_key"=>"0ea829b6a8a869860297d170c08b095341cd017b", "updated_at"=>2014-11-22 16:19:26 UTC, "created_at"=>2014-11-22 16:19:26 UTC}] flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6428ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b78e87f6432f0600003a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:19:10 UTC, "updated_at"=>2014-11-22 16:19:26 UTC, "memberships"=>[{"_id"=>"5470b78e87f6432f0600003b", "role"=>"admin", "account_id"=>"5470b78e87f6432f06000039"}]}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78e87f6432f0600003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78e87f6432f0600003a", "_id"=>{"$ne"=>"5470b78e87f6432f0600003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78e87f6432f0600003c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b78e87f6432f0600003a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:26 UTC, "created_at"=>2014-11-22 16:19:26 UTC}] flags=[] (0.2489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "template_dependencies.en"=>{"$in"=>["5470b78e87f6432f0600003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78e87f6432f0600003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78e87f6432f0600003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78e87f6432f0600003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78e87f6432f0600003a", "_id"=>{"$ne"=>"5470b78e87f6432f0600003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b78e87f6432f0600003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5043ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b78e87f6432f0600003d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b78e87f6432f0600003a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:26 UTC, "created_at"=>2014-11-22 16:19:26 UTC}] flags=[] (0.2093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "template_dependencies.en"=>{"$in"=>["5470b78e87f6432f0600003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3493ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78e87f6432f0600003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b78e87f6432f0600003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b78e87f6432f0600003a", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7019ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b78e87f6432f0600003e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b78e87f6432f0600003a", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b78e87f6432f0600003f", "updated_at"=>2014-11-22 16:19:26 UTC, "created_at"=>2014-11-22 16:19:26 UTC, "entries_custom_fields"=>[{"_id"=>"5470b78e87f6432f0600003f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2267ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b78e87f6432f0600003a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b78e87f6432f0600003e"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b78e87f6432f06000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b78e87f6432f0600003a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b78e87f6432f06000041", "updated_at"=>2014-11-22 16:19:26 UTC, "created_at"=>2014-11-22 16:19:26 UTC, "entries_custom_fields"=>[{"_id"=>"5470b78e87f6432f06000041", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b78e87f6432f06000042", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b78e87f6432f0600003e", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b78e87f6432f06000043", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b78e87f6432f0600003a", "_id"=>"5470b78e87f6432f0600003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b78e87f6432f06000040"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6442ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78e87f6432f0600003e"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b78e87f6432f0600003e"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:26 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b78e87f6432f06000044", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b78e87f6432f06000040", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78e87f6432f0600003e"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78e87f6432f06000040", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78e87f6432f06000045"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78e87f6432f0600003e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78e87f6432f0600003e", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78e87f6432f0600003e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3309ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b78e87f6432f06000045", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b78e87f6432f0600003e", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78e87f6432f06000040", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b78e87f6432f0600003e", "content_type_id"=>"5470b78e87f6432f0600003e", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b78e87f6432f0600003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:19:26 UTC, "created_at"=>2014-11-22 16:19:26 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b78e87f6432f06000045", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78e87f6432f06000040"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3703ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78f87f6432f06000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78e87f6432f06000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78e87f6432f06000040", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78e87f6432f06000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4008ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78e87f6432f06000040"]}}} (0.3610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b78f87f6432f06000046", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b78e87f6432f06000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78e87f6432f0600003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b78e87f6432f06000045", "_type"=>"Locomotive::ContentEntry5470b78e87f6432f06000040", "content_type_id"=>"5470b78e87f6432f06000040", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b78e87f6432f0600003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:27 UTC, "created_at"=>2014-11-22 16:19:27 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b78f87f6432f06000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b78e87f6432f06000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b78e87f6432f06000040", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78e87f6432f06000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4468ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78e87f6432f06000040"]}}} (0.3393ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b78e87f6432f06000040"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5248ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b78f87f6432f06000047", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b78e87f6432f06000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b78e87f6432f0600003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b78e87f6432f06000040", "content_type_id"=>"5470b78e87f6432f06000040", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b78e87f6432f0600003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:27 UTC, "created_at"=>2014-11-22 16:19:27 UTC}] flags=[] (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6740ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78e87f6432f0600003a", "parent_id"=>"5470b78e87f6432f0600003c", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78e87f6432f0600003c", "site_id"=>"5470b78e87f6432f0600003a", "_id"=>{"$ne"=>"5470b79087f6432f06000048"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b78e87f6432f0600003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79087f6432f06000048", "parent_ids"=>["5470b78e87f6432f0600003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b78e87f6432f0600003a", "parent_id"=>"5470b78e87f6432f0600003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:28 UTC, "created_at"=>2014-11-22 16:19:28 UTC, "editable_elements"=>[{"_id"=>"5470b79087f6432f06000049", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:19:28 UTC, "created_at"=>2014-11-22 16:19:28 UTC}]}] flags=[] (0.2947ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "template_dependencies.en"=>{"$in"=>["5470b79087f6432f06000048"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79087f6432f06000048"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79087f6432f06000048"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78e87f6432f0600003a", "parent_id"=>"5470b78e87f6432f0600003c", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78e87f6432f0600003c", "site_id"=>"5470b78e87f6432f0600003a", "_id"=>{"$ne"=>"5470b79087f6432f0600004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78e87f6432f0600003c", "site_id"=>"5470b78e87f6432f0600003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b78e87f6432f0600003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79087f6432f0600004a", "parent_ids"=>["5470b78e87f6432f0600003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b78e87f6432f0600003a", "parent_id"=>"5470b78e87f6432f0600003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:28 UTC, "created_at"=>2014-11-22 16:19:28 UTC}] flags=[] (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "template_dependencies.en"=>{"$in"=>["5470b79087f6432f0600004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79087f6432f0600004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3028ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79087f6432f0600004a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0944ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78e87f6432f0600003a", "parent_id"=>"5470b78e87f6432f0600003c", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78e87f6432f0600003c", "site_id"=>"5470b78e87f6432f0600003a", "_id"=>{"$ne"=>"5470b79087f6432f0600004b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78e87f6432f0600003c", "site_id"=>"5470b78e87f6432f0600003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b78e87f6432f0600003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5100ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79087f6432f0600004b", "parent_ids"=>["5470b78e87f6432f0600003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b78e87f6432f0600003a", "parent_id"=>"5470b78e87f6432f0600003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:28 UTC, "created_at"=>2014-11-22 16:19:28 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "template_dependencies.en"=>{"$in"=>["5470b79087f6432f0600004b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79087f6432f0600004b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79087f6432f0600004b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4537ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b78e87f6432f0600003a", "parent_id"=>"5470b78e87f6432f0600003c", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78e87f6432f0600003c", "site_id"=>"5470b78e87f6432f0600003a", "_id"=>{"$ne"=>"5470b79087f6432f0600004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b78e87f6432f0600003c", "site_id"=>"5470b78e87f6432f0600003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b78e87f6432f0600003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79087f6432f0600004c", "parent_ids"=>["5470b78e87f6432f0600003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b78e87f6432f0600003a", "parent_id"=>"5470b78e87f6432f0600003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:28 UTC, "created_at"=>2014-11-22 16:19:28 UTC}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "template_dependencies.en"=>{"$in"=>["5470b79087f6432f0600004c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79087f6432f0600004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3638ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79087f6432f0600004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b78e87f6432f0600003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b78e87f6432f0600003c"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:19:29 UTC}} flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "template_dependencies.en"=>{"$in"=>["5470b78e87f6432f0600003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0087ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b79187f6432f0600004d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:19:10 UTC, "updated_at"=>2014-11-22 16:19:29 UTC, "memberships"=>[{"_id"=>"5470b79187f6432f0600004e", "role"=>"admin", "account_id"=>"5470b78e87f6432f06000039"}]}] flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79187f6432f0600004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79187f6432f0600004d", "_id"=>{"$ne"=>"5470b79187f6432f0600004f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6447ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79187f6432f0600004f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b79187f6432f0600004d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:29 UTC, "created_at"=>2014-11-22 16:19:29 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79187f6432f0600004d", "template_dependencies.en"=>{"$in"=>["5470b79187f6432f0600004f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79187f6432f0600004f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3049ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79187f6432f0600004f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79187f6432f0600004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79187f6432f0600004d", "_id"=>{"$ne"=>"5470b79287f6432f06000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79187f6432f0600004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79287f6432f06000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b79187f6432f0600004d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:30 UTC, "created_at"=>2014-11-22 16:19:30 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79187f6432f0600004d", "template_dependencies.en"=>{"$in"=>["5470b79287f6432f06000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79287f6432f06000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79287f6432f06000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79187f6432f0600004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79187f6432f0600004d", "_id"=>{"$ne"=>"5470b79287f6432f06000051"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79187f6432f0600004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4933ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79287f6432f06000051", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b79187f6432f0600004d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:30 UTC, "created_at"=>2014-11-22 16:19:30 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79187f6432f0600004d", "template_dependencies.en"=>{"$in"=>["5470b79287f6432f06000051"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79287f6432f06000051"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2909ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79287f6432f06000051"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b79187f6432f0600004d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b79287f6432f06000052", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b79187f6432f0600004d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b79287f6432f06000053", "updated_at"=>2014-11-22 16:19:30 UTC, "created_at"=>2014-11-22 16:19:30 UTC, "entries_custom_fields"=>[{"_id"=>"5470b79287f6432f06000053", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b79287f6432f06000054"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b79287f6432f06000052"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b79287f6432f06000052", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b79287f6432f06000052"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b79287f6432f06000054", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b79287f6432f06000052", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b79287f6432f06000052", "content_type_id"=>"5470b79287f6432f06000052", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b79187f6432f0600004d", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:30 UTC, "created_at"=>2014-11-22 16:19:30 UTC}] flags=[] (0.2577ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:19:31 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6499ms) Rendered text template (0.0ms) Completed 200 OK in 9.1ms (Views: 2.3ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 17:19:31 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7911ms) Rendered text template (0.0ms) Completed 200 OK in 662.4ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 17:19:32 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5734ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6251ms) Rendered text template (0.0ms) Completed 200 OK in 4.6ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:19:32 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5319ms) Rendered text template (0.0ms) Completed 200 OK in 4.0ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 17:19:32 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b78e87f6432f0600003a", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6394ms) Rendered text template (0.0ms) Completed 200 OK in 637.4ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6208ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5049ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2500ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2491ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8199ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6793ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b79587f6432f06000055", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"32820b8c3d7c3885e8207472ba29c814337325a4", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"pBc2Cx1nn23zB4a7BySb", "api_key"=>"9999dc07bd617d4eeb341daed2b4bed7605c0659", "updated_at"=>2014-11-22 16:19:33 UTC, "created_at"=>2014-11-22 16:19:33 UTC}] flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6752ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b79587f6432f06000056", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:19:10 UTC, "updated_at"=>2014-11-22 16:19:33 UTC, "memberships"=>[{"_id"=>"5470b79587f6432f06000057", "role"=>"admin", "account_id"=>"5470b79587f6432f06000055"}]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79587f6432f06000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79587f6432f06000056", "_id"=>{"$ne"=>"5470b79587f6432f06000058"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3097ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79587f6432f06000058", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b79587f6432f06000056", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:33 UTC, "created_at"=>2014-11-22 16:19:33 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "template_dependencies.en"=>{"$in"=>["5470b79587f6432f06000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79587f6432f06000058"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79587f6432f06000058"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79587f6432f06000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79587f6432f06000056", "_id"=>{"$ne"=>"5470b79687f6432f06000059"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79587f6432f06000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79687f6432f06000059", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b79587f6432f06000056", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:34 UTC, "created_at"=>2014-11-22 16:19:34 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "template_dependencies.en"=>{"$in"=>["5470b79687f6432f06000059"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79687f6432f06000059"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2952ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79687f6432f06000059"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b79587f6432f06000056", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b79687f6432f0600005a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b79587f6432f06000056", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b79687f6432f0600005b", "updated_at"=>2014-11-22 16:19:34 UTC, "created_at"=>2014-11-22 16:19:34 UTC, "entries_custom_fields"=>[{"_id"=>"5470b79687f6432f0600005b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b79587f6432f06000056", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4497ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b79687f6432f0600005a"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b79687f6432f0600005c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b79587f6432f06000056", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b79687f6432f0600005d", "updated_at"=>2014-11-22 16:19:34 UTC, "created_at"=>2014-11-22 16:19:34 UTC, "entries_custom_fields"=>[{"_id"=>"5470b79687f6432f0600005d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b79687f6432f0600005e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b79687f6432f0600005a", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b79687f6432f0600005f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b79587f6432f06000056", "_id"=>"5470b79687f6432f0600005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b79687f6432f0600005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5839ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005a"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1218ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b79687f6432f0600005a"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:34 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b79687f6432f06000060", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b79687f6432f0600005c", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1643ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b79687f6432f0600005a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b79687f6432f0600005c", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b79687f6432f06000061"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b79687f6432f0600005a", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4222ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b79687f6432f06000061", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b79687f6432f0600005a", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b79687f6432f0600005c", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b79687f6432f0600005a", "content_type_id"=>"5470b79687f6432f0600005a", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b79587f6432f06000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:19:34 UTC, "created_at"=>2014-11-22 16:19:34 UTC}] flags=[] (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b79687f6432f06000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b79687f6432f06000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b79687f6432f0600005c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4539ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}}} (0.3982ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b79687f6432f06000062", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b79687f6432f0600005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b79687f6432f0600005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b79687f6432f06000061", "_type"=>"Locomotive::ContentEntry5470b79687f6432f0600005c", "content_type_id"=>"5470b79687f6432f0600005c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b79587f6432f06000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:34 UTC, "created_at"=>2014-11-22 16:19:34 UTC}] flags=[] (0.2699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b79787f6432f06000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b79687f6432f0600005c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4559ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}}} (0.3400ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5202ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b79787f6432f06000063", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b79687f6432f0600005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b79687f6432f0600005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b79687f6432f0600005c", "content_type_id"=>"5470b79687f6432f0600005c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b79587f6432f06000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:35 UTC, "created_at"=>2014-11-22 16:19:35 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6981ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79587f6432f06000056", "parent_id"=>"5470b79587f6432f06000058", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79587f6432f06000058", "site_id"=>"5470b79587f6432f06000056", "_id"=>{"$ne"=>"5470b79787f6432f06000064"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b79587f6432f06000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79787f6432f06000064", "parent_ids"=>["5470b79587f6432f06000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b79587f6432f06000056", "parent_id"=>"5470b79587f6432f06000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:35 UTC, "created_at"=>2014-11-22 16:19:35 UTC, "editable_elements"=>[{"_id"=>"5470b79787f6432f06000065", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:19:35 UTC, "created_at"=>2014-11-22 16:19:35 UTC}]}] flags=[] (0.2899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "template_dependencies.en"=>{"$in"=>["5470b79787f6432f06000064"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79787f6432f06000064"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3028ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79787f6432f06000064"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79587f6432f06000056", "parent_id"=>"5470b79587f6432f06000058", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79587f6432f06000058", "site_id"=>"5470b79587f6432f06000056", "_id"=>{"$ne"=>"5470b79787f6432f06000066"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79587f6432f06000058", "site_id"=>"5470b79587f6432f06000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b79587f6432f06000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79787f6432f06000066", "parent_ids"=>["5470b79587f6432f06000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b79587f6432f06000056", "parent_id"=>"5470b79587f6432f06000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:35 UTC, "created_at"=>2014-11-22 16:19:35 UTC}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "template_dependencies.en"=>{"$in"=>["5470b79787f6432f06000066"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79787f6432f06000066"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3083ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79787f6432f06000066"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79587f6432f06000056", "parent_id"=>"5470b79587f6432f06000058", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79587f6432f06000058", "site_id"=>"5470b79587f6432f06000056", "_id"=>{"$ne"=>"5470b79787f6432f06000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79587f6432f06000058", "site_id"=>"5470b79587f6432f06000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b79587f6432f06000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5012ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79787f6432f06000067", "parent_ids"=>["5470b79587f6432f06000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b79587f6432f06000056", "parent_id"=>"5470b79587f6432f06000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:36 UTC, "created_at"=>2014-11-22 16:19:36 UTC}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "template_dependencies.en"=>{"$in"=>["5470b79787f6432f06000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79787f6432f06000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2871ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79787f6432f06000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79587f6432f06000056", "parent_id"=>"5470b79587f6432f06000058", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79587f6432f06000058", "site_id"=>"5470b79587f6432f06000056", "_id"=>{"$ne"=>"5470b79887f6432f06000068"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79587f6432f06000058", "site_id"=>"5470b79587f6432f06000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b79587f6432f06000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79887f6432f06000068", "parent_ids"=>["5470b79587f6432f06000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b79587f6432f06000056", "parent_id"=>"5470b79587f6432f06000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:36 UTC, "created_at"=>2014-11-22 16:19:36 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "template_dependencies.en"=>{"$in"=>["5470b79887f6432f06000068"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79887f6432f06000068"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3078ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79887f6432f06000068"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b79587f6432f06000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5178ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b79587f6432f06000058"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:19:36 UTC}} flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "template_dependencies.en"=>{"$in"=>["5470b79587f6432f06000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b79987f6432f06000069", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:19:10 UTC, "updated_at"=>2014-11-22 16:19:37 UTC, "memberships"=>[{"_id"=>"5470b79987f6432f0600006a", "role"=>"admin", "account_id"=>"5470b79587f6432f06000055"}]}] flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79987f6432f06000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79987f6432f06000069", "_id"=>{"$ne"=>"5470b79987f6432f0600006b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79987f6432f0600006b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b79987f6432f06000069", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:37 UTC, "created_at"=>2014-11-22 16:19:37 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79987f6432f06000069", "template_dependencies.en"=>{"$in"=>["5470b79987f6432f0600006b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79987f6432f0600006b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3569ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79987f6432f0600006b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1447ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79987f6432f06000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79987f6432f06000069", "_id"=>{"$ne"=>"5470b79987f6432f0600006c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79987f6432f06000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79987f6432f0600006c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b79987f6432f06000069", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:37 UTC, "created_at"=>2014-11-22 16:19:37 UTC}] flags=[] (0.2267ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79987f6432f06000069", "template_dependencies.en"=>{"$in"=>["5470b79987f6432f0600006c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79987f6432f0600006c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79987f6432f0600006c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b79987f6432f06000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79987f6432f06000069", "_id"=>{"$ne"=>"5470b79987f6432f0600006d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7942ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b79987f6432f06000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b79987f6432f0600006d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b79987f6432f06000069", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:37 UTC, "created_at"=>2014-11-22 16:19:37 UTC}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79987f6432f06000069", "template_dependencies.en"=>{"$in"=>["5470b79987f6432f0600006d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b79987f6432f0600006d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b79987f6432f0600006d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b79987f6432f06000069", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4129ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b79a87f6432f0600006e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b79987f6432f06000069", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b79a87f6432f0600006f", "updated_at"=>2014-11-22 16:19:38 UTC, "created_at"=>2014-11-22 16:19:38 UTC, "entries_custom_fields"=>[{"_id"=>"5470b79a87f6432f0600006f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2177ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b79a87f6432f06000070"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b79a87f6432f0600006e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b79a87f6432f0600006e", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b79a87f6432f0600006e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b79a87f6432f06000070", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b79a87f6432f0600006e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b79a87f6432f0600006e", "content_type_id"=>"5470b79a87f6432f0600006e", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b79987f6432f06000069", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:38 UTC, "created_at"=>2014-11-22 16:19:38 UTC}] flags=[] (0.1698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b79687f6432f06000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b79787f6432f06000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b79687f6432f0600005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1380ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b79687f6432f0600005c"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:38 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.1028ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b79687f6432f0600005c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b79687f6432f0600005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1497ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b79587f6432f06000056", "_id"=>"5470b79687f6432f0600005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6928ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:19:38 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5858ms) Rendered text template (0.0ms) Completed 200 OK in 4.2ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 17:19:38 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5641ms) Rendered text template (0.0ms) Completed 200 OK in 433.1ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b79687f6432f0600005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b79687f6432f0600005c", "updated_at"=>{"$lt"=>2014-11-22 16:19:38 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b79587f6432f06000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b79687f6432f0600005c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4761ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470b79687f6432f06000062"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:39 UTC}} flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470b79687f6432f06000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b79687f6432f0600005a"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b79587f6432f06000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b79687f6432f0600005c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470b79787f6432f06000063"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:39 UTC}} flags=[] (0.1342ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:19:40 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6630ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 17:19:40 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b79587f6432f06000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6678ms) Rendered text template (0.0ms) Completed 200 OK in 439.7ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5822ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4288ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2410ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2209ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8202ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9971ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5031ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (4.5712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b7a187f643657e000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"492f0d495a4fce1414d3cb78ee79de639f9775f6", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"xyKcyJ8kNNxoL1JLziBa", "api_key"=>"e8d696f79be85ab95116dbcbf90fa16dfaa60b12", "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.1447ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7632ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7a187f643657e000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:19:45 UTC, "updated_at"=>2014-11-22 16:19:45 UTC, "memberships"=>[{"_id"=>"5470b7a187f643657e000003", "role"=>"admin", "account_id"=>"5470b7a187f643657e000001"}]}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a187f643657e000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a187f643657e000002", "_id"=>{"$ne"=>"5470b7a187f643657e000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a187f643657e000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7a187f643657e000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002", "template_dependencies.en"=>{"$in"=>["5470b7a187f643657e000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a187f643657e000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a187f643657e000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.1570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a187f643657e000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a187f643657e000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a187f643657e000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a187f643657e000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a187f643657e000002", "_id"=>{"$ne"=>"5470b7a187f643657e000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a187f643657e000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7a187f643657e000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002", "template_dependencies.en"=>{"$in"=>["5470b7a187f643657e000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3338ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a187f643657e000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a187f643657e000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5198ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a187f643657e000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b7a187f643657e000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b7a187f643657e000008", "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a187f643657e000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a187f643657e000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a187f643657e000007"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a187f643657e000009", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7a187f643657e000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7a187f643657e00000a", "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a187f643657e00000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b7a187f643657e00000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b7a187f643657e000007", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b7a187f643657e00000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a187f643657e000002", "_id"=>"5470b7a187f643657e000007"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a187f643657e000009"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000007"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1168ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a187f643657e000007"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:45 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b7a187f643657e00000d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b7a187f643657e000009", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a187f643657e000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a187f643657e000009", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a187f643657e00000e"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a187f643657e000007", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000007"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a187f643657e00000e", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a187f643657e000007", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a187f643657e000009", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a187f643657e000007", "content_type_id"=>"5470b7a187f643657e000007", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b7a187f643657e000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.2601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a187f643657e000007", "original_id"=>"5470b7a187f643657e00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5362ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b7a187f643657e00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000009"]}}} (0.4330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7a187f643657e00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a187f643657e00000f", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b7a187f643657e000002", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b7a187f643657e000007", "original_id"=>"5470b7a187f643657e00000e", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a187f643657e000010"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a187f643657e000009", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000009"]}}} (0.3178ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a187f643657e000010", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a187f643657e000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a187f643657e000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b7a187f643657e00000e", "_type"=>"Locomotive::ContentEntry5470b7a187f643657e000009", "content_type_id"=>"5470b7a187f643657e000009", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b7a187f643657e000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a187f643657e000009", "original_id"=>"5470b7a187f643657e000010", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3077ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7a187f643657e00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a187f643657e000011", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b7a187f643657e000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a187f643657e000009", "original_id"=>"5470b7a187f643657e000010", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a187f643657e000012"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a187f643657e000009", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4258ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000009"]}}} (0.3650ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000009"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4783ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a187f643657e000012", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a187f643657e000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a187f643657e000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a187f643657e000009", "content_type_id"=>"5470b7a187f643657e000009", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b7a187f643657e000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a187f643657e000009", "original_id"=>"5470b7a187f643657e000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a187f643657e000013", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b7a187f643657e000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a187f643657e000009", "original_id"=>"5470b7a187f643657e000012", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5739ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a187f643657e000002", "parent_id"=>"5470b7a187f643657e000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000004", "site_id"=>"5470b7a187f643657e000002", "_id"=>{"$ne"=>"5470b7a187f643657e000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a187f643657e000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a187f643657e000014", "parent_ids"=>["5470b7a187f643657e000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b7a187f643657e000002", "parent_id"=>"5470b7a187f643657e000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC, "editable_elements"=>[{"_id"=>"5470b7a187f643657e000015", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}]}] flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002", "template_dependencies.en"=>{"$in"=>["5470b7a187f643657e000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a187f643657e000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a187f643657e000014", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a187f643657e000016", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b7a187f643657e000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a187f643657e000014", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a187f643657e000002", "parent_id"=>"5470b7a187f643657e000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000004", "site_id"=>"5470b7a187f643657e000002", "_id"=>{"$ne"=>"5470b7a187f643657e000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000004", "site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a187f643657e000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a187f643657e000017", "parent_ids"=>["5470b7a187f643657e000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b7a187f643657e000002", "parent_id"=>"5470b7a187f643657e000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002", "template_dependencies.en"=>{"$in"=>["5470b7a187f643657e000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2761ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a187f643657e000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a187f643657e000002", "parent_id"=>"5470b7a187f643657e000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000004", "site_id"=>"5470b7a187f643657e000002", "_id"=>{"$ne"=>"5470b7a187f643657e000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000004", "site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5336ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a187f643657e000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a187f643657e000018", "parent_ids"=>["5470b7a187f643657e000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b7a187f643657e000002", "parent_id"=>"5470b7a187f643657e000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002", "template_dependencies.en"=>{"$in"=>["5470b7a187f643657e000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a187f643657e000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a187f643657e000002", "parent_id"=>"5470b7a187f643657e000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000004", "site_id"=>"5470b7a187f643657e000002", "_id"=>{"$ne"=>"5470b7a187f643657e000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000004", "site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a187f643657e000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4952ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a187f643657e000019", "parent_ids"=>["5470b7a187f643657e000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b7a187f643657e000002", "parent_id"=>"5470b7a187f643657e000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002", "template_dependencies.en"=>{"$in"=>["5470b7a187f643657e000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a187f643657e000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a187f643657e000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a187f643657e000002", "locale"=>"en"}} (1.3201ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a187f643657e000002", "locale"=>"en"}} (0.4807ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a187f643657e00001a", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b7a187f643657e000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a187f643657e000019", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b7a187f643657e000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:19:45 UTC}} flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002", "template_dependencies.en"=>{"$in"=>["5470b7a187f643657e000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a187f643657e000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4249ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b7a187f643657e000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a187f643657e000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7a187f643657e00001b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:19:45 UTC, "updated_at"=>2014-11-22 16:19:45 UTC, "memberships"=>[{"_id"=>"5470b7a187f643657e00001c", "role"=>"admin", "account_id"=>"5470b7a187f643657e000001"}]}] flags=[] (0.1230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a187f643657e00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a187f643657e00001b", "_id"=>{"$ne"=>"5470b7a187f643657e00001d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a187f643657e00001d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7a187f643657e00001b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e00001b", "template_dependencies.en"=>{"$in"=>["5470b7a187f643657e00001d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e00001d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3219ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a187f643657e00001d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a187f643657e00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a187f643657e00001e", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a187f643657e00001b", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a187f643657e00001d", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a187f643657e00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a187f643657e00001b", "_id"=>{"$ne"=>"5470b7a187f643657e00001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a187f643657e00001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a187f643657e00001f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7a187f643657e00001b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e00001b", "template_dependencies.en"=>{"$in"=>["5470b7a187f643657e00001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a187f643657e00001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a187f643657e00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a187f643657e00001b", "_id"=>{"$ne"=>"5470b7a187f643657e000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a187f643657e00001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3002ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a187f643657e000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b7a187f643657e00001b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e00001b", "template_dependencies.en"=>{"$in"=>["5470b7a187f643657e000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a187f643657e000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2902ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a187f643657e000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a187f643657e000020", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a187f643657e000021", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b7a187f643657e00001b", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a187f643657e000020", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a187f643657e00001b", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3681ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a187f643657e000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7a187f643657e00001b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7a187f643657e000023", "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a187f643657e000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a187f643657e000024"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6073ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a187f643657e000022", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a187f643657e000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a187f643657e000024", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a187f643657e000022", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a187f643657e000022", "content_type_id"=>"5470b7a187f643657e000022", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b7a187f643657e00001b", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:45 UTC, "created_at"=>2014-11-22 16:19:45 UTC}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a187f643657e000022", "original_id"=>"5470b7a187f643657e000024", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3929ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a187f643657e000025", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b7a187f643657e00001b", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a187f643657e000022", "original_id"=>"5470b7a187f643657e000024", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1280ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 17:19:46 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8383ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b7a187f643657e000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4549ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.6ms) Completed 200 OK in 38.8ms (Views: 33.2ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 17:19:46 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (7ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 17:19:46 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (7ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 17:19:46 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 17:19:46 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b7a187f643657e000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6149ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b7a187f643657e000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 16:19:46 UTC, "updated_at"=>2014-11-22 16:19:46 UTC}} flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b7a187f643657e000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 16:19:46 UTC, "current_sign_in_at"=>2014-11-22 16:19:46 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 16:19:46 UTC}} flags=[] (0.2587ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.4ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:19:46 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5603ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b7a187f643657e000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b7a187f643657e000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.4241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3058ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4248112793826] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7a187f643657e000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6847ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7a187f643657e000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7622ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (29.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (10.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (52.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b7a187f643657e000001", :role=>:admin}}}} (0.4802ms) Rendered locomotive/shared/_main_app_head.html.haml (1.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (13.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b7a187f643657e000001"}} (0.4869ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b7a187f643657e000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6459ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (3.7ms) Rendered locomotive/shared/_main_app_header.html.haml (5.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (26.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 132.9ms (Views: 114.7ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 17:19:47 +0100 Served asset /locomotive.js - 200 OK (102ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 17:19:47 +0100 Served asset /locomotive.css - 200 OK (33ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 17:19:47 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 17:19:47 +0100 Served asset /locomotive/search_bar.js - 200 OK (3ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 17:19:47 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 17:19:47 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 17:19:47 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:19:47 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b7a187f643657e000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b7a187f643657e000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.5681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1950ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4248522932882] (0.0710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7a187f643657e000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7a187f643657e000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7a187f643657e000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6731ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (14.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (21.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b7a187f643657e000001", :role=>:admin}}}} (0.4821ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b7a187f643657e000001"}} (0.4463ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b7a187f643657e000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6223ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (8.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 55.6ms (Views: 39.0ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 17:19:47 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b7a187f643657e000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b7a187f643657e000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4301ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"findable ", "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a187f643657e000002"}} (4.4601ms) Completed 200 OK in 20.7ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7501ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.7153ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2619ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2321ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2910ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7927ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.0989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b7a487f643657e000026", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c5535d1c6c9eef2eda6996b79ed37a6d39e0c139", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"zfRskZzWtPXgfyFjqepf", "api_key"=>"20c7bde25dd6b15f84ea74c0cff59bbb744a0a7a", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5372ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7a487f643657e000027", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:19:45 UTC, "updated_at"=>2014-11-22 16:19:48 UTC, "memberships"=>[{"_id"=>"5470b7a487f643657e000028", "role"=>"admin", "account_id"=>"5470b7a487f643657e000026"}]}] flags=[] (0.1400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000027", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000027", "_id"=>{"$ne"=>"5470b7a487f643657e000029"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000029", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7a487f643657e000027", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000029"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2728ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000029"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4568ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e00002a", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a487f643657e000027", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000029", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000027", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000027", "_id"=>{"$ne"=>"5470b7a487f643657e00002b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e00002b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7a487f643657e000027", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e00002b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00002b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e00002b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e000027", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a487f643657e00002c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b7a487f643657e000027", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b7a487f643657e00002d", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e00002d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e000027", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e00002c"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a487f643657e00002e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7a487f643657e000027", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7a487f643657e00002f", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e00002f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b7a487f643657e000030", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e00002c", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b7a487f643657e000031", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e000027", "_id"=>"5470b7a487f643657e00002c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e00002e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7410ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002c"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.2973ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e00002c"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e000032", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e00002e", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e00002c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e00002e", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.4210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e000033"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e00002c", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3688ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e000033", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e00002c", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e00002e", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a487f643657e00002c", "content_type_id"=>"5470b7a487f643657e00002c", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b7a487f643657e000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e00002c", "original_id"=>"5470b7a487f643657e000033", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5350ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b7a487f643657e000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002e"]}}} (0.4010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7a487f643657e000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002e"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000034", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b7a487f643657e000027", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e00002c", "original_id"=>"5470b7a487f643657e000033", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e000035"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e00002e", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3688ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002e"]}}} (0.3452ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e000035", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e00002e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e00002c"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b7a487f643657e000033", "_type"=>"Locomotive::ContentEntry5470b7a487f643657e00002e", "content_type_id"=>"5470b7a487f643657e00002e", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b7a487f643657e000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e00002e", "original_id"=>"5470b7a487f643657e000035", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7a487f643657e000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002e"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5369ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000036", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b7a487f643657e000027", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e00002e", "original_id"=>"5470b7a487f643657e000035", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e000037"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e00002e", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4222ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002e"]}}} (0.3281ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00002e"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e000037", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e00002e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e00002c"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a487f643657e00002e", "content_type_id"=>"5470b7a487f643657e00002e", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b7a487f643657e000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e00002e", "original_id"=>"5470b7a487f643657e000037", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000038", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b7a487f643657e000027", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e00002e", "original_id"=>"5470b7a487f643657e000037", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5581ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000027", "parent_id"=>"5470b7a487f643657e000029", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000029", "site_id"=>"5470b7a487f643657e000027", "_id"=>{"$ne"=>"5470b7a487f643657e000039"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000039", "parent_ids"=>["5470b7a487f643657e000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b7a487f643657e000027", "parent_id"=>"5470b7a487f643657e000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "editable_elements"=>[{"_id"=>"5470b7a487f643657e00003a", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}]}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000039"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000039"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2811ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000039"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000039", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e00003b", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b7a487f643657e000027", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000039", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1473ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000027", "parent_id"=>"5470b7a487f643657e000029", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000029", "site_id"=>"5470b7a487f643657e000027", "_id"=>{"$ne"=>"5470b7a487f643657e00003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000029", "site_id"=>"5470b7a487f643657e000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e00003c", "parent_ids"=>["5470b7a487f643657e000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b7a487f643657e000027", "parent_id"=>"5470b7a487f643657e000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e00003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2949ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e00003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000027", "parent_id"=>"5470b7a487f643657e000029", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000029", "site_id"=>"5470b7a487f643657e000027", "_id"=>{"$ne"=>"5470b7a487f643657e00003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000029", "site_id"=>"5470b7a487f643657e000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e00003d", "parent_ids"=>["5470b7a487f643657e000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b7a487f643657e000027", "parent_id"=>"5470b7a487f643657e000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e00003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2999ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e00003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000027", "parent_id"=>"5470b7a487f643657e000029", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000029", "site_id"=>"5470b7a487f643657e000027", "_id"=>{"$ne"=>"5470b7a487f643657e00003e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000029", "site_id"=>"5470b7a487f643657e000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e00003e", "parent_ids"=>["5470b7a487f643657e000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b7a487f643657e000027", "parent_id"=>"5470b7a487f643657e000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e00003e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00003e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2911ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e00003e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00003e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3369ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a487f643657e000027", "locale"=>"en"}} (0.5319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a487f643657e000027", "locale"=>"en"}} (0.4432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e00003f", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b7a487f643657e000027", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00003e", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b7a487f643657e000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b7a487f643657e000029"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:19:48 UTC}} flags=[] (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000029"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b7a487f643657e00002a"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a487f643657e000027", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3247ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7a487f643657e000040", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:19:45 UTC, "updated_at"=>2014-11-22 16:19:48 UTC, "memberships"=>[{"_id"=>"5470b7a487f643657e000041", "role"=>"admin", "account_id"=>"5470b7a487f643657e000026"}]}] flags=[] (0.2921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000040", "_id"=>{"$ne"=>"5470b7a487f643657e000042"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4959ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000042", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7a487f643657e000040", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000040", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000042"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000042"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3061ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000042"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000042", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3269ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000043", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a487f643657e000040", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000042", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1307ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000040", "_id"=>{"$ne"=>"5470b7a487f643657e000044"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000040"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000044", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7a487f643657e000040", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000040", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000044"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000044"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2782ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000044"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000040", "_id"=>{"$ne"=>"5470b7a487f643657e000045"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000040"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000045", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b7a487f643657e000040", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000040", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000045"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000045"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000045"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000045", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3383ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000046", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b7a487f643657e000040", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000045", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e000040", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a487f643657e000047", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7a487f643657e000040", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7a487f643657e000048", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e000048", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e000049"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000047"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000047", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000047"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e000049", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e000047", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a487f643657e000047", "content_type_id"=>"5470b7a487f643657e000047", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b7a487f643657e000040", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000047", "original_id"=>"5470b7a487f643657e000049", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4089ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e00004a", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b7a487f643657e000040", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000047", "original_id"=>"5470b7a487f643657e000049", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1800ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:19:48 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6609ms) Rendered text template (0.0ms) Completed 200 OK in 8.2ms (Views: 1.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 17:19:48 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"findable", "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a487f643657e000027", "locale"=>"en"}} (0.6571ms) Rendered text template (0.0ms) Completed 200 OK in 7.7ms (Views: 0.3ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 17:19:48 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6237ms) Rendered text template (0.0ms) Completed 200 OK in 4.3ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:19:48 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6673ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6251ms) Rendered text template (0.0ms) Completed 200 OK in 4.3ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 17:19:48 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000027", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7031ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"not found", "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a487f643657e000027", "locale"=>"en"}} (0.5617ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5918ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7539ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4740ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4790ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4439ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4151ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4079ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1054ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b7a487f643657e00004b", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"21e4e788515c5af14a748109a2017b401dc12434", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"aLKi8qAyXyayRdx6ts89", "api_key"=>"3a379da866d3d533b040b60ecf6395f527cfc558", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7a487f643657e00004c", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:19:45 UTC, "updated_at"=>2014-11-22 16:19:48 UTC, "memberships"=>[{"_id"=>"5470b7a487f643657e00004d", "role"=>"admin", "account_id"=>"5470b7a487f643657e00004b"}]}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e00004c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e00004c", "_id"=>{"$ne"=>"5470b7a487f643657e00004e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e00004e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7a487f643657e00004c", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e00004c", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e00004e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00004e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e00004e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4673ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e00004f", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a487f643657e00004c", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00004e", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e00004c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e00004c", "_id"=>{"$ne"=>"5470b7a487f643657e000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e00004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4601ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7a487f643657e00004c", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e00004c", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e00004c", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a487f643657e000051", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b7a487f643657e00004c", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b7a487f643657e000052", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e000052", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e00004c", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e000051"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4139ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a487f643657e000053", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7a487f643657e00004c", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7a487f643657e000054", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e000054", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b7a487f643657e000055", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000051", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b7a487f643657e000056", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e00004c", "_id"=>"5470b7a487f643657e000051"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e000053"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000051"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1252ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e000051"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e000057", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000053", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000051"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000053", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e000058"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000051"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000051", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000051"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e000058", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e000051", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000053", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a487f643657e000051", "content_type_id"=>"5470b7a487f643657e000051", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b7a487f643657e00004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000051", "original_id"=>"5470b7a487f643657e000058", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5612ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b7a487f643657e000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}}} (0.4330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7a487f643657e000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000059", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b7a487f643657e00004c", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000051", "original_id"=>"5470b7a487f643657e000058", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e00005a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000053", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3257ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4120ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}}} (0.2921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e00005a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e000053", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000051"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b7a487f643657e000058", "_type"=>"Locomotive::ContentEntry5470b7a487f643657e000053", "content_type_id"=>"5470b7a487f643657e000053", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b7a487f643657e00004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000053", "original_id"=>"5470b7a487f643657e00005a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7a487f643657e000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5162ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e00005b", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b7a487f643657e00004c", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000053", "original_id"=>"5470b7a487f643657e00005a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e00005c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000053", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3951ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}}} (0.3161ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4439ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e00005c", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e000053", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000051"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a487f643657e000053", "content_type_id"=>"5470b7a487f643657e000053", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b7a487f643657e00004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000053", "original_id"=>"5470b7a487f643657e00005c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3698ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e00005d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b7a487f643657e00004c", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000053", "original_id"=>"5470b7a487f643657e00005c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5231ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e00004c", "parent_id"=>"5470b7a487f643657e00004e", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00004e", "site_id"=>"5470b7a487f643657e00004c", "_id"=>{"$ne"=>"5470b7a487f643657e00005e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4773ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e00004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e00005e", "parent_ids"=>["5470b7a487f643657e00004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b7a487f643657e00004c", "parent_id"=>"5470b7a487f643657e00004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "editable_elements"=>[{"_id"=>"5470b7a487f643657e00005f", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}]}] flags=[] (0.2801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e00004c", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e00005e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00005e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2871ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e00005e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00005e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3352ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000060", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b7a487f643657e00004c", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00005e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e00004c", "parent_id"=>"5470b7a487f643657e00004e", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00004e", "site_id"=>"5470b7a487f643657e00004c", "_id"=>{"$ne"=>"5470b7a487f643657e000061"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00004e", "site_id"=>"5470b7a487f643657e00004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e00004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5403ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000061", "parent_ids"=>["5470b7a487f643657e00004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b7a487f643657e00004c", "parent_id"=>"5470b7a487f643657e00004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1817ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e00004c", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000061"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000061"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2720ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000061"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e00004c", "parent_id"=>"5470b7a487f643657e00004e", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00004e", "site_id"=>"5470b7a487f643657e00004c", "_id"=>{"$ne"=>"5470b7a487f643657e000062"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00004e", "site_id"=>"5470b7a487f643657e00004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e00004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4902ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000062", "parent_ids"=>["5470b7a487f643657e00004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b7a487f643657e00004c", "parent_id"=>"5470b7a487f643657e00004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e00004c", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000062"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000062"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2978ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000062"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e00004c", "parent_id"=>"5470b7a487f643657e00004e", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00004e", "site_id"=>"5470b7a487f643657e00004c", "_id"=>{"$ne"=>"5470b7a487f643657e000063"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00004e", "site_id"=>"5470b7a487f643657e00004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e00004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5152ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000063", "parent_ids"=>["5470b7a487f643657e00004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b7a487f643657e00004c", "parent_id"=>"5470b7a487f643657e00004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e00004c", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000063"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000063"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3037ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000063"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000063", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a487f643657e00004c", "locale"=>"en"}} (0.5171ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a487f643657e00004c", "locale"=>"en"}} (0.4833ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000064", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b7a487f643657e00004c", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000063", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e00004c", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b7a487f643657e00004c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b7a487f643657e00004e"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:19:48 UTC}} flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e00004c", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e00004e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b7a487f643657e00004f"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a487f643657e00004c", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3002ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7a487f643657e000065", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:19:45 UTC, "updated_at"=>2014-11-22 16:19:48 UTC, "memberships"=>[{"_id"=>"5470b7a487f643657e000066", "role"=>"admin", "account_id"=>"5470b7a487f643657e00004b"}]}] flags=[] (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000065", "_id"=>{"$ne"=>"5470b7a487f643657e000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4668ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000067", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7a487f643657e000065", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000065", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3636ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000067", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000068", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a487f643657e000065", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000067", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000065", "_id"=>{"$ne"=>"5470b7a487f643657e000069"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000065"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4661ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000069", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7a487f643657e000065", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000065", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000069"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000069"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2792ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000069"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000065", "_id"=>{"$ne"=>"5470b7a487f643657e00006a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000065"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e00006a", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b7a487f643657e000065", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000065", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e00006a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00006a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3037ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e00006a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1023ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00006a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3526ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e00006b", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b7a487f643657e000065", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00006a", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e000065", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a487f643657e00006c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7a487f643657e000065", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7a487f643657e00006d", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e00006d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e00006e"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00006c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e00006c", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e00006c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e00006e", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e00006c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a487f643657e00006c", "content_type_id"=>"5470b7a487f643657e00006c", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b7a487f643657e000065", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e00006c", "original_id"=>"5470b7a487f643657e00006e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e00006f", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b7a487f643657e000065", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e00006c", "original_id"=>"5470b7a487f643657e00006e", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e00005a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4942ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e00005c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3803ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e000051"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4659ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000053"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1190ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e000053"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.1020ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000053"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000051"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e00004c", "_id"=>"5470b7a487f643657e000051"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7269ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4730ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4067ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4392ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5920ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.0870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b7a487f643657e000070", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"01ffdd58ef3c2ee57ae169b4d532906aff532432", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"yid5FFffsyxTF68Qc9dy", "api_key"=>"d5dffd7c01503d5e8a0fc2dc79423ec002810553", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3283ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7a487f643657e000071", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:19:45 UTC, "updated_at"=>2014-11-22 16:19:48 UTC, "memberships"=>[{"_id"=>"5470b7a487f643657e000072", "role"=>"admin", "account_id"=>"5470b7a487f643657e000070"}]}] flags=[] (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000071", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000071", "_id"=>{"$ne"=>"5470b7a487f643657e000073"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000073", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7a487f643657e000071", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000073"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000073"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000073"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000073", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000074", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a487f643657e000071", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000073", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000071", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000071", "_id"=>{"$ne"=>"5470b7a487f643657e000075"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4861ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000075", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7a487f643657e000071", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000075"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000075"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000075"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e000071", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a487f643657e000076", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b7a487f643657e000071", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b7a487f643657e000077", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e000077", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e000071", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e000076"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a487f643657e000078", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7a487f643657e000071", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7a487f643657e000079", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e000079", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b7a487f643657e00007a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000076", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b7a487f643657e00007b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e000071", "_id"=>"5470b7a487f643657e000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e000078"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5720ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000076"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1190ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e000076"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e00007c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000078", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000076"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000078", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e00007d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000076"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000076", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000076"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3631ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e00007d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e000076", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000078", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a487f643657e000076", "content_type_id"=>"5470b7a487f643657e000076", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b7a487f643657e000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000076", "original_id"=>"5470b7a487f643657e00007d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b7a487f643657e00007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}}} (0.4380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7a487f643657e00007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4044ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e00007e", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b7a487f643657e000071", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000076", "original_id"=>"5470b7a487f643657e00007d", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e00007f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000078", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4661ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}}} (0.3028ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e00007f", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e000078", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b7a487f643657e00007d", "_type"=>"Locomotive::ContentEntry5470b7a487f643657e000078", "content_type_id"=>"5470b7a487f643657e000078", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b7a487f643657e000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000078", "original_id"=>"5470b7a487f643657e00007f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7a487f643657e00007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5400ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000080", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b7a487f643657e000071", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000078", "original_id"=>"5470b7a487f643657e00007f", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e000081"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000078", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4232ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}}} (0.3321ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e000081", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e000078", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a487f643657e000078", "content_type_id"=>"5470b7a487f643657e000078", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b7a487f643657e000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000078", "original_id"=>"5470b7a487f643657e000081", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3712ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000082", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b7a487f643657e000071", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000078", "original_id"=>"5470b7a487f643657e000081", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5572ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000071", "parent_id"=>"5470b7a487f643657e000073", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000073", "site_id"=>"5470b7a487f643657e000071", "_id"=>{"$ne"=>"5470b7a487f643657e000083"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4637ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4828ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000083", "parent_ids"=>["5470b7a487f643657e000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b7a487f643657e000071", "parent_id"=>"5470b7a487f643657e000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "editable_elements"=>[{"_id"=>"5470b7a487f643657e000084", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}]}] flags=[] (0.2692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000083"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000083"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2952ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000083"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000083", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000085", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b7a487f643657e000071", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000083", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000071", "parent_id"=>"5470b7a487f643657e000073", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000073", "site_id"=>"5470b7a487f643657e000071", "_id"=>{"$ne"=>"5470b7a487f643657e000086"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000073", "site_id"=>"5470b7a487f643657e000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5214ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000086", "parent_ids"=>["5470b7a487f643657e000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b7a487f643657e000071", "parent_id"=>"5470b7a487f643657e000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000086"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3316ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000086"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2997ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000086"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000071", "parent_id"=>"5470b7a487f643657e000073", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000073", "site_id"=>"5470b7a487f643657e000071", "_id"=>{"$ne"=>"5470b7a487f643657e000087"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000073", "site_id"=>"5470b7a487f643657e000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000087", "parent_ids"=>["5470b7a487f643657e000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b7a487f643657e000071", "parent_id"=>"5470b7a487f643657e000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000087"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000087"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2921ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000087"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e000071", "parent_id"=>"5470b7a487f643657e000073", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000073", "site_id"=>"5470b7a487f643657e000071", "_id"=>{"$ne"=>"5470b7a487f643657e000088"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000073", "site_id"=>"5470b7a487f643657e000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a487f643657e000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5088ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e000088", "parent_ids"=>["5470b7a487f643657e000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b7a487f643657e000071", "parent_id"=>"5470b7a487f643657e000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000088"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e000088"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2992ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e000088"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000088", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3419ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a487f643657e000071", "locale"=>"en"}} (0.5507ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a487f643657e000071", "locale"=>"en"}} (0.4711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000089", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b7a487f643657e000071", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000088", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b7a487f643657e000071"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b7a487f643657e000073"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:19:48 UTC}} flags=[] (0.1431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e000073"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e000073", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4439ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b7a487f643657e000074"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a487f643657e000071", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3049ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7a487f643657e00008a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:19:45 UTC, "updated_at"=>2014-11-22 16:19:48 UTC, "memberships"=>[{"_id"=>"5470b7a487f643657e00008b", "role"=>"admin", "account_id"=>"5470b7a487f643657e000070"}]}] flags=[] (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e00008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e00008a", "_id"=>{"$ne"=>"5470b7a487f643657e00008c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4668ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e00008c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7a487f643657e00008a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e00008a", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e00008c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3347ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00008c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2968ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e00008c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00008c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3557ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e00008d", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a487f643657e00008a", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00008c", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e00008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e00008a", "_id"=>{"$ne"=>"5470b7a487f643657e00008e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e00008a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e00008e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7a487f643657e00008a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e00008a", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e00008e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00008e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e00008e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a487f643657e00008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e00008a", "_id"=>{"$ne"=>"5470b7a487f643657e00008f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7403ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a487f643657e00008a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3178ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a487f643657e00008f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b7a487f643657e00008a", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e00008a", "template_dependencies.en"=>{"$in"=>["5470b7a487f643657e00008f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a487f643657e00008f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2961ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a487f643657e00008f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00008f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3378ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000090", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b7a487f643657e00008a", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a487f643657e00008f", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e00008a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a487f643657e000091", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7a487f643657e00008a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7a487f643657e000092", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7a487f643657e000092", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e000093"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000091"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6363ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000091", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000091"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7a487f643657e000093", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a487f643657e000091", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a487f643657e000091", "content_type_id"=>"5470b7a487f643657e000091", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b7a487f643657e00008a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:48 UTC, "created_at"=>2014-11-22 16:19:48 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000091", "original_id"=>"5470b7a487f643657e000093", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3638ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a487f643657e000094", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b7a487f643657e00008a", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000091", "original_id"=>"5470b7a487f643657e000093", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e00007f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7a487f643657e000081"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3767ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5002ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1240ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e000078"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:48 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.0920ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000078"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a487f643657e000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a487f643657e000071", "_id"=>"5470b7a487f643657e000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6499ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:19:48 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5350ms) Rendered text template (0.0ms) Completed 200 OK in 4.0ms (Views: 0.3ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 17:19:48 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6490ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"stuff", "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a487f643657e000071", "locale"=>"en"}} (0.5748ms) Rendered text template (0.0ms) Completed 200 OK in 5.9ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a487f643657e000078"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a487f643657e000078", "updated_at"=>{"$lt"=>2014-11-22 16:19:48 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b7a487f643657e000071"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b7a487f643657e000078"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6320ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470b7a487f643657e00007f"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:48 UTC}} flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000078", "original_id"=>"5470b7a487f643657e00007f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470b7a487f643657e00007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000076"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b7a487f643657e000076"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7a487f643657e00007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a487f643657e000078"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b7a487f643657e000080"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b7a487f643657e000071", :content_type_slug=>"examples"}, "content"=>["Findable entry", "John Doe", "Some stuff"]}} flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b7a487f643657e000071"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b7a487f643657e000078"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4640ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470b7a487f643657e000081"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:48 UTC}} flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a487f643657e000078", "original_id"=>"5470b7a487f643657e000081", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b7a487f643657e000082"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b7a487f643657e000071", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.1462ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:19:48 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5047ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5512ms) Rendered text template (0.0ms) Completed 200 OK in 3.9ms (Views: 0.3ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 17:19:48 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5817ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a487f643657e000071", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"stuff", "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a487f643657e000071", "locale"=>"en"}} (0.7753ms) Rendered text template (0.0ms) Completed 200 OK in 6.2ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6330ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7770ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4160ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4258ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4020ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8767ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4978ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.0939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.9371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3619ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b7a987f643bab8000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"67720ec8c2b5d1bac6be52ea8a2e6dc9c97d4ffa", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"AuL7AH5p3PH6psTgWWzd", "api_key"=>"d71f9972baa7771a1cd7b2050c7361561ff3146a", "updated_at"=>2014-11-22 16:19:53 UTC, "created_at"=>2014-11-22 16:19:53 UTC}] flags=[] (0.1061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7019ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7a987f643bab8000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:19:53 UTC, "updated_at"=>2014-11-22 16:19:53 UTC, "memberships"=>[{"_id"=>"5470b7a987f643bab8000003", "role"=>"admin", "account_id"=>"5470b7a987f643bab8000001"}]}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a987f643bab8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a987f643bab8000002", "_id"=>{"$ne"=>"5470b7a987f643bab8000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3488ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a987f643bab8000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7a987f643bab8000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:53 UTC, "created_at"=>2014-11-22 16:19:53 UTC}] flags=[] (0.2308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a987f643bab8000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002", "template_dependencies.en"=>{"$in"=>["5470b7a987f643bab8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3672ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a987f643bab8000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a987f643bab8000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7a987f643bab8000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a987f643bab8000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7a987f643bab8000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a987f643bab8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a987f643bab8000002", "_id"=>{"$ne"=>"5470b7a987f643bab8000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7a987f643bab8000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7a987f643bab8000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:53 UTC, "created_at"=>2014-11-22 16:19:53 UTC}] flags=[] (0.1588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002", "template_dependencies.en"=>{"$in"=>["5470b7a987f643bab8000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a987f643bab8000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7a987f643bab8000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a987f643bab8000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4308ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7a987f643bab8000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b7a987f643bab8000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b7aa87f643bab8000008", "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7aa87f643bab8000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a987f643bab8000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a987f643bab8000007"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5503ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7aa87f643bab8000009", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7a987f643bab8000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7aa87f643bab800000a", "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7aa87f643bab800000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b7aa87f643bab800000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b7a987f643bab8000007", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b7aa87f643bab800000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a987f643bab8000002", "_id"=>"5470b7a987f643bab8000007"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7aa87f643bab8000009"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a987f643bab8000007"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7a987f643bab8000007"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:54 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b7aa87f643bab800000d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b7aa87f643bab8000009", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a987f643bab8000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7aa87f643bab8000009", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7aa87f643bab800000e"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a987f643bab8000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7a987f643bab8000007", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7a987f643bab8000007"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7aa87f643bab800000e", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7a987f643bab8000007", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7aa87f643bab8000009", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7a987f643bab8000007", "content_type_id"=>"5470b7a987f643bab8000007", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b7a987f643bab8000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7a987f643bab8000007", "original_id"=>"5470b7aa87f643bab800000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b7aa87f643bab800000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000009"]}}} (0.4258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7aa87f643bab800000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7aa87f643bab800000f", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b7a987f643bab8000002", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b7a987f643bab8000007", "original_id"=>"5470b7aa87f643bab800000e", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7aa87f643bab8000010"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4573ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7aa87f643bab8000009", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3779ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000009"]}}} (0.3748ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7aa87f643bab8000010", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7aa87f643bab8000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a987f643bab8000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b7aa87f643bab800000e", "_type"=>"Locomotive::ContentEntry5470b7aa87f643bab8000009", "content_type_id"=>"5470b7aa87f643bab8000009", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b7a987f643bab8000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7aa87f643bab8000009", "original_id"=>"5470b7aa87f643bab8000010", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7aa87f643bab800000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7aa87f643bab8000011", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b7a987f643bab8000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7aa87f643bab8000009", "original_id"=>"5470b7aa87f643bab8000010", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7aa87f643bab8000012"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7aa87f643bab8000009", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4044ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000009"]}}} (0.3078ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000009"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7aa87f643bab8000012", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7aa87f643bab8000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7a987f643bab8000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7aa87f643bab8000009", "content_type_id"=>"5470b7aa87f643bab8000009", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b7a987f643bab8000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7aa87f643bab8000009", "original_id"=>"5470b7aa87f643bab8000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7aa87f643bab8000013", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b7a987f643bab8000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7aa87f643bab8000009", "original_id"=>"5470b7aa87f643bab8000012", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6149ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a987f643bab8000002", "parent_id"=>"5470b7a987f643bab8000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a987f643bab8000004", "site_id"=>"5470b7a987f643bab8000002", "_id"=>{"$ne"=>"5470b7aa87f643bab8000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a987f643bab8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7aa87f643bab8000014", "parent_ids"=>["5470b7a987f643bab8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b7a987f643bab8000002", "parent_id"=>"5470b7a987f643bab8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC, "editable_elements"=>[{"_id"=>"5470b7aa87f643bab8000015", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC}]}] flags=[] (0.2801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002", "template_dependencies.en"=>{"$in"=>["5470b7aa87f643bab8000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7aa87f643bab8000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2899ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7aa87f643bab8000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7aa87f643bab8000014", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7aa87f643bab8000016", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b7a987f643bab8000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7aa87f643bab8000014", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a987f643bab8000002", "parent_id"=>"5470b7a987f643bab8000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a987f643bab8000004", "site_id"=>"5470b7a987f643bab8000002", "_id"=>{"$ne"=>"5470b7aa87f643bab8000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a987f643bab8000004", "site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a987f643bab8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7aa87f643bab8000017", "parent_ids"=>["5470b7a987f643bab8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b7a987f643bab8000002", "parent_id"=>"5470b7a987f643bab8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002", "template_dependencies.en"=>{"$in"=>["5470b7aa87f643bab8000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7aa87f643bab8000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7aa87f643bab8000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1237ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a987f643bab8000002", "parent_id"=>"5470b7a987f643bab8000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a987f643bab8000004", "site_id"=>"5470b7a987f643bab8000002", "_id"=>{"$ne"=>"5470b7aa87f643bab8000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a987f643bab8000004", "site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a987f643bab8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5112ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7aa87f643bab8000018", "parent_ids"=>["5470b7a987f643bab8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b7a987f643bab8000002", "parent_id"=>"5470b7a987f643bab8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002", "template_dependencies.en"=>{"$in"=>["5470b7aa87f643bab8000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7aa87f643bab8000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3419ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7aa87f643bab8000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7a987f643bab8000002", "parent_id"=>"5470b7a987f643bab8000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a987f643bab8000004", "site_id"=>"5470b7a987f643bab8000002", "_id"=>{"$ne"=>"5470b7aa87f643bab8000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7a987f643bab8000004", "site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7a987f643bab8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5701ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7aa87f643bab8000019", "parent_ids"=>["5470b7a987f643bab8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b7a987f643bab8000002", "parent_id"=>"5470b7a987f643bab8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC}] flags=[] (0.2232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002", "template_dependencies.en"=>{"$in"=>["5470b7aa87f643bab8000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7aa87f643bab8000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3178ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7aa87f643bab8000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7aa87f643bab8000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a987f643bab8000002", "locale"=>"en"}} (0.6080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7a987f643bab8000002", "locale"=>"en"}} (0.5689ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7aa87f643bab800001a", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b7a987f643bab8000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7aa87f643bab8000019", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6483ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b7a987f643bab8000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:19:54 UTC}} flags=[] (0.1538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002", "template_dependencies.en"=>{"$in"=>["5470b7a987f643bab8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7a987f643bab8000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b7a987f643bab8000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7a987f643bab8000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3309ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7aa87f643bab800001b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:19:53 UTC, "updated_at"=>2014-11-22 16:19:54 UTC, "memberships"=>[{"_id"=>"5470b7aa87f643bab800001c", "role"=>"admin", "account_id"=>"5470b7a987f643bab8000001"}]}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7aa87f643bab800001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7aa87f643bab800001b", "_id"=>{"$ne"=>"5470b7aa87f643bab800001d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7aa87f643bab800001d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7aa87f643bab800001b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7aa87f643bab800001b", "template_dependencies.en"=>{"$in"=>["5470b7aa87f643bab800001d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3557ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7aa87f643bab800001d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7aa87f643bab800001d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7aa87f643bab800001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3767ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7aa87f643bab800001e", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7aa87f643bab800001b", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7aa87f643bab800001d", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7aa87f643bab800001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7aa87f643bab800001b", "_id"=>{"$ne"=>"5470b7aa87f643bab800001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7aa87f643bab800001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7aa87f643bab800001f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7aa87f643bab800001b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC}] flags=[] (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7aa87f643bab800001b", "template_dependencies.en"=>{"$in"=>["5470b7aa87f643bab800001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7aa87f643bab800001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3307ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7aa87f643bab800001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7aa87f643bab800001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7aa87f643bab800001b", "_id"=>{"$ne"=>"5470b7aa87f643bab8000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7aa87f643bab800001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3018ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7aa87f643bab8000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b7aa87f643bab800001b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7aa87f643bab800001b", "template_dependencies.en"=>{"$in"=>["5470b7aa87f643bab8000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7aa87f643bab8000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7aa87f643bab8000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7aa87f643bab8000020", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7aa87f643bab8000021", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b7aa87f643bab800001b", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7aa87f643bab8000020", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7aa87f643bab800001b", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7aa87f643bab8000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7aa87f643bab800001b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7aa87f643bab8000023", "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7aa87f643bab8000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7aa87f643bab8000024"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7aa87f643bab8000022", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7aa87f643bab8000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3791ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7aa87f643bab8000024", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7aa87f643bab8000022", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7aa87f643bab8000022", "content_type_id"=>"5470b7aa87f643bab8000022", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b7aa87f643bab800001b", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:54 UTC, "created_at"=>2014-11-22 16:19:54 UTC}] flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7aa87f643bab8000022", "original_id"=>"5470b7aa87f643bab8000024", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3769ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7aa87f643bab8000025", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b7aa87f643bab800001b", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7aa87f643bab8000022", "original_id"=>"5470b7aa87f643bab8000024", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1490ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b7a987f643bab8000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5209ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.4ms) Completed 200 OK in 38.8ms (Views: 32.5ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (7ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (9ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b7a987f643bab8000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b7a987f643bab8000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 16:19:55 UTC, "updated_at"=>2014-11-22 16:19:55 UTC}} flags=[] (0.1259ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b7a987f643bab8000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 16:19:55 UTC, "current_sign_in_at"=>2014-11-22 16:19:55 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 16:19:55 UTC}} flags=[] (0.1321ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 18.0ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b7a987f643bab8000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b7a987f643bab8000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.6580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2929ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4352385821216] (0.1101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7a987f643bab8000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7aa87f643bab8000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7858ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (24.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (1.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (9.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (44.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b7a987f643bab8000001", :role=>:admin}}}} (0.6042ms) Rendered locomotive/shared/_main_app_head.html.haml (1.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (12.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b7a987f643bab8000001"}} (0.6123ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b7a987f643bab8000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6640ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (3.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (3.9ms) Rendered locomotive/shared/_main_app_header.html.haml (5.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (27.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 122.8ms (Views: 105.7ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Served asset /locomotive.css - 200 OK (44ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Served asset /locomotive.js - 200 OK (99ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Served asset /locomotive/search_bar.js - 200 OK (4ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2014-11-22 17:19:55 +0100 Processing by Locomotive::PagesController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b7a987f643bab8000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b7a987f643bab8000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2641ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4352523331957] (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7a987f643bab8000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7aa87f643bab8000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7331ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (15.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_assets/_picker.html.haml (6.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/theme_assets/_picker.html.haml (5.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_editable_elements.html.haml (6.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7a987f643bab8000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7a987f643bab8000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8943ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_form.html.haml (101.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_form_actions.html.haml (2.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (132.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b7a987f643bab8000001", :role=>:admin}}}} (0.5121ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (5.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b7a987f643bab8000001"}} (0.5991ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (1.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b7a987f643bab8000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6018ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (10.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 169.9ms (Views: 158.5ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2014-11-22 17:19:56 +0100 Served asset /locomotive/form/input-sep.png - 200 OK (5ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2014-11-22 17:19:56 +0100 Served asset /locomotive/jquery/images/ui-icons_222222_256x240.png - 200 OK (4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.2070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2391ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6880ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1661ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6683ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3521ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.0958ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.3202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4323ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3138ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b7ac87f643bab8000027", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3f85ba28aff839c9ccb843c29826f6069b6a5f1e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ug6yNA2YCNgystpjVaLz", "api_key"=>"e7f69a0536018ba4a9109d0c7d81eb4fbd2ae7e7", "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.0999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5612ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7ac87f643bab8000028", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:19:53 UTC, "updated_at"=>2014-11-22 16:19:56 UTC, "memberships"=>[{"_id"=>"5470b7ac87f643bab8000029", "role"=>"admin", "account_id"=>"5470b7ac87f643bab8000027"}]}] flags=[] (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7ac87f643bab8000028", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7ac87f643bab8000028", "_id"=>{"$ne"=>"5470b7ac87f643bab800002a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7ac87f643bab800002a", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7ac87f643bab8000028", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028", "template_dependencies.en"=>{"$in"=>["5470b7ac87f643bab800002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7ac87f643bab800002a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7ac87f643bab800002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7ac87f643bab800002b", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7ac87f643bab8000028", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7ac87f643bab800002a", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7ac87f643bab8000028", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7ac87f643bab8000028", "_id"=>{"$ne"=>"5470b7ac87f643bab800002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7ac87f643bab800002c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7ac87f643bab8000028", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028", "template_dependencies.en"=>{"$in"=>["5470b7ac87f643bab800002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7ac87f643bab800002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7ac87f643bab8000028", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7ac87f643bab800002d", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b7ac87f643bab8000028", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b7ac87f643bab800002e", "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7ac87f643bab800002e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7ac87f643bab8000028", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7ac87f643bab800002d"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7589ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7ac87f643bab800002f", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7ac87f643bab8000028", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7ac87f643bab8000030", "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7ac87f643bab8000030", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b7ac87f643bab8000031", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b7ac87f643bab800002d", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b7ac87f643bab8000032", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7ac87f643bab8000028", "_id"=>"5470b7ac87f643bab800002d"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6154ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7ac87f643bab800002f"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002d"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1149ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b7ac87f643bab800002d"} update={"$set"=>{"updated_at"=>2014-11-22 16:19:56 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b7ac87f643bab8000033", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b7ac87f643bab800002f", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7ac87f643bab800002d"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7ac87f643bab800002f", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7ac87f643bab8000034"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002d"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7ac87f643bab800002d", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002d"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7ac87f643bab8000034", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7ac87f643bab800002d", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7ac87f643bab800002f", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7ac87f643bab800002d", "content_type_id"=>"5470b7ac87f643bab800002d", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b7ac87f643bab8000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.2003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7ac87f643bab800002d", "original_id"=>"5470b7ac87f643bab8000034", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b7ac87f643bab8000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002f"]}}} (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7ac87f643bab8000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002f"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7ac87f643bab8000035", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b7ac87f643bab8000028", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b7ac87f643bab800002d", "original_id"=>"5470b7ac87f643bab8000034", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7ac87f643bab8000036"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002f"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7ac87f643bab800002f", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002f"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4051ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002f"]}}} (0.4218ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7ac87f643bab8000036", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7ac87f643bab800002f", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7ac87f643bab800002d"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b7ac87f643bab8000034", "_type"=>"Locomotive::ContentEntry5470b7ac87f643bab800002f", "content_type_id"=>"5470b7ac87f643bab800002f", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b7ac87f643bab8000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7ac87f643bab800002f", "original_id"=>"5470b7ac87f643bab8000036", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b7ac87f643bab8000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002f"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5422ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7ac87f643bab8000037", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b7ac87f643bab8000028", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7ac87f643bab800002f", "original_id"=>"5470b7ac87f643bab8000036", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7ac87f643bab8000038"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002f"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4377ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7ac87f643bab800002f", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002f"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4117ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002f"]}}} (0.3209ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab800002f"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7ac87f643bab8000038", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7ac87f643bab800002f", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b7ac87f643bab800002d"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7ac87f643bab800002f", "content_type_id"=>"5470b7ac87f643bab800002f", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b7ac87f643bab8000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7ac87f643bab800002f", "original_id"=>"5470b7ac87f643bab8000038", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3560ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7ac87f643bab8000039", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b7ac87f643bab8000028", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7ac87f643bab800002f", "original_id"=>"5470b7ac87f643bab8000038", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5589ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7ac87f643bab8000028", "parent_id"=>"5470b7ac87f643bab800002a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3917ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800002a", "site_id"=>"5470b7ac87f643bab8000028", "_id"=>{"$ne"=>"5470b7ac87f643bab800003a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7ac87f643bab800002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7ac87f643bab800003a", "parent_ids"=>["5470b7ac87f643bab800002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b7ac87f643bab8000028", "parent_id"=>"5470b7ac87f643bab800002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC, "editable_elements"=>[{"_id"=>"5470b7ac87f643bab800003b", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}]}] flags=[] (0.2558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028", "template_dependencies.en"=>{"$in"=>["5470b7ac87f643bab800003a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800003a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7ac87f643bab800003a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7ac87f643bab800003a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3552ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7ac87f643bab800003c", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b7ac87f643bab8000028", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7ac87f643bab800003a", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7ac87f643bab8000028", "parent_id"=>"5470b7ac87f643bab800002a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800002a", "site_id"=>"5470b7ac87f643bab8000028", "_id"=>{"$ne"=>"5470b7ac87f643bab800003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800002a", "site_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7ac87f643bab800002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7ac87f643bab800003d", "parent_ids"=>["5470b7ac87f643bab800002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b7ac87f643bab8000028", "parent_id"=>"5470b7ac87f643bab800002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028", "template_dependencies.en"=>{"$in"=>["5470b7ac87f643bab800003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2871ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7ac87f643bab800003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7ac87f643bab8000028", "parent_id"=>"5470b7ac87f643bab800002a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800002a", "site_id"=>"5470b7ac87f643bab8000028", "_id"=>{"$ne"=>"5470b7ac87f643bab800003e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800002a", "site_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7ac87f643bab800002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7ac87f643bab800003e", "parent_ids"=>["5470b7ac87f643bab800002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b7ac87f643bab8000028", "parent_id"=>"5470b7ac87f643bab800002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028", "template_dependencies.en"=>{"$in"=>["5470b7ac87f643bab800003e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800003e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7ac87f643bab800003e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7ac87f643bab8000028", "parent_id"=>"5470b7ac87f643bab800002a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800002a", "site_id"=>"5470b7ac87f643bab8000028", "_id"=>{"$ne"=>"5470b7ac87f643bab800003f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800002a", "site_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b7ac87f643bab800002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4833ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7ac87f643bab800003f", "parent_ids"=>["5470b7ac87f643bab800002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b7ac87f643bab8000028", "parent_id"=>"5470b7ac87f643bab800002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028", "template_dependencies.en"=>{"$in"=>["5470b7ac87f643bab800003f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3393ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab800003f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2940ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7ac87f643bab800003f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7ac87f643bab800003f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3192ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7ac87f643bab8000028", "locale"=>"en"}} (0.5519ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b7ac87f643bab8000028", "locale"=>"en"}} (0.4222ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7ac87f643bab8000040", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b7ac87f643bab8000028", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7ac87f643bab800003f", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b7ac87f643bab800002a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:19:56 UTC}} flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028", "template_dependencies.en"=>{"$in"=>["5470b7ac87f643bab800002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7ac87f643bab800002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b7ac87f643bab800002b"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7ac87f643bab8000028", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b7ac87f643bab8000041", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:19:53 UTC, "updated_at"=>2014-11-22 16:19:56 UTC, "memberships"=>[{"_id"=>"5470b7ac87f643bab8000042", "role"=>"admin", "account_id"=>"5470b7ac87f643bab8000027"}]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7ac87f643bab8000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7ac87f643bab8000041", "_id"=>{"$ne"=>"5470b7ac87f643bab8000043"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7ac87f643bab8000043", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b7ac87f643bab8000041", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000041", "template_dependencies.en"=>{"$in"=>["5470b7ac87f643bab8000043"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab8000043"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7ac87f643bab8000043"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7ac87f643bab8000043", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7ac87f643bab8000044", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b7ac87f643bab8000041", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7ac87f643bab8000043", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7ac87f643bab8000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7ac87f643bab8000041", "_id"=>{"$ne"=>"5470b7ac87f643bab8000045"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7ac87f643bab8000041"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4592ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7ac87f643bab8000045", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b7ac87f643bab8000041", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000041", "template_dependencies.en"=>{"$in"=>["5470b7ac87f643bab8000045"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab8000045"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2890ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7ac87f643bab8000045"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b7ac87f643bab8000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7ac87f643bab8000041", "_id"=>{"$ne"=>"5470b7ac87f643bab8000046"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b7ac87f643bab8000041"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b7ac87f643bab8000046", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b7ac87f643bab8000041", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000041", "template_dependencies.en"=>{"$in"=>["5470b7ac87f643bab8000046"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b7ac87f643bab8000046"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3109ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b7ac87f643bab8000046"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b7ac87f643bab8000046", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7ac87f643bab8000047", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b7ac87f643bab8000041", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b7ac87f643bab8000046", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7ac87f643bab8000041", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b7ac87f643bab8000048", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b7ac87f643bab8000041", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b7ac87f643bab8000049", "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC, "entries_custom_fields"=>[{"_id"=>"5470b7ac87f643bab8000049", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b7ac87f643bab800004a"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab8000048"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b7ac87f643bab8000048", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b7ac87f643bab8000048"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3619ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b7ac87f643bab800004a", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b7ac87f643bab8000048", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b7ac87f643bab8000048", "content_type_id"=>"5470b7ac87f643bab8000048", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b7ac87f643bab8000041", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:19:56 UTC, "created_at"=>2014-11-22 16:19:56 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b7ac87f643bab8000048", "original_id"=>"5470b7ac87f643bab800004a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b7ac87f643bab800004b", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b7ac87f643bab8000041", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b7ac87f643bab8000048", "original_id"=>"5470b7ac87f643bab800004a", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1302ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 17:19:56 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b7ac87f643bab8000027"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4480ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (3.5ms) Completed 200 OK in 7.8ms (Views: 4.9ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 17:19:56 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b7ac87f643bab8000027"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b7ac87f643bab8000027"} update={"$set"=>{"remember_created_at"=>2014-11-22 16:19:56 UTC, "updated_at"=>2014-11-22 16:19:56 UTC}} flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b7ac87f643bab8000027"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 16:19:56 UTC, "current_sign_in_at"=>2014-11-22 16:19:56 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 16:19:56 UTC}} flags=[] (0.1400ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 6.9ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:19:56 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b7ac87f643bab8000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b7ac87f643bab8000027"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.5152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.5078ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4378223636523] (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7ac87f643bab800002d"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7ac87f643bab800002f"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6762ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (14.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (21.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b7ac87f643bab8000027", :role=>:admin}}}} (0.5579ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b7ac87f643bab8000027"}} (0.4730ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b7ac87f643bab8000027"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5140ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (7.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 52.5ms (Views: 36.6ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2014-11-22 17:19:56 +0100 Processing by Locomotive::ContentTypesController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b7ac87f643bab8000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b7ac87f643bab8000027"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3869ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4378090321149] (0.0918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b7ac87f643bab8000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7ac87f643bab800002d"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b7ac87f643bab800002f"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6852ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (16.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7ac87f643bab8000028"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8061ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (3.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/custom_fields/_select_templates.html.haml (2.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/custom_fields/_form.html.haml (48.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b7ac87f643bab8000028", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6702ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_types/_form.html.haml (68.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_form_actions.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (90.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b7ac87f643bab8000027", :role=>:admin}}}} (0.5789ms) Rendered locomotive/shared/_main_app_head.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (5.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b7ac87f643bab8000027"}} (0.4780ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b7ac87f643bab8000027"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5541ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (6.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 120.7ms (Views: 109.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6142ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7420ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4187ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4151ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.3710ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4301ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5229ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4117ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b85087f643a60f000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8aa71d4de5cc35fe1a1c0f03fc96d7250615ccc0", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ts1wesGxFz1PotzmrAD8", "api_key"=>"e1da6bce84036a7847263a183077503360f0fff3", "updated_at"=>2014-11-22 16:22:40 UTC, "created_at"=>2014-11-22 16:22:40 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b85087f643a60f000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:22:39 UTC, "updated_at"=>2014-11-22 16:22:40 UTC, "memberships"=>[{"_id"=>"5470b85087f643a60f000003", "role"=>"admin", "account_id"=>"5470b85087f643a60f000001"}]}] flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85087f643a60f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85087f643a60f000002", "_id"=>{"$ne"=>"5470b85087f643a60f000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3207ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85087f643a60f000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b85087f643a60f000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:40 UTC, "created_at"=>2014-11-22 16:22:40 UTC}] flags=[] (0.1812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85087f643a60f000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002", "template_dependencies.en"=>{"$in"=>["5470b85087f643a60f000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3338ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85087f643a60f000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85087f643a60f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85087f643a60f000002", "_id"=>{"$ne"=>"5470b85187f643a60f000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4888ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85187f643a60f000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b85087f643a60f000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:41 UTC, "created_at"=>2014-11-22 16:22:41 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002", "template_dependencies.en"=>{"$in"=>["5470b85187f643a60f000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85187f643a60f000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2789ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85187f643a60f000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b85087f643a60f000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4401ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b85187f643a60f000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b85087f643a60f000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b85187f643a60f000007", "updated_at"=>2014-11-22 16:22:41 UTC, "created_at"=>2014-11-22 16:22:41 UTC, "entries_custom_fields"=>[{"_id"=>"5470b85187f643a60f000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.3190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b85087f643a60f000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b85187f643a60f000006"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b85187f643a60f000008", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b85087f643a60f000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b85187f643a60f000009", "updated_at"=>2014-11-22 16:22:41 UTC, "created_at"=>2014-11-22 16:22:41 UTC, "entries_custom_fields"=>[{"_id"=>"5470b85187f643a60f000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b85187f643a60f00000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b85187f643a60f000006", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b85187f643a60f00000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b85087f643a60f000002", "_id"=>"5470b85187f643a60f000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b85187f643a60f000008"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5851ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85187f643a60f000006"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1259ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b85187f643a60f000006"} update={"$set"=>{"updated_at"=>2014-11-22 16:22:41 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b85187f643a60f00000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b85187f643a60f000008", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b85187f643a60f000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b85187f643a60f000008", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b85187f643a60f00000d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b85187f643a60f000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b85187f643a60f000006", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85187f643a60f000006"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b85187f643a60f00000d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b85187f643a60f000006", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b85187f643a60f000008", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b85187f643a60f000006", "content_type_id"=>"5470b85187f643a60f000006", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b85087f643a60f000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:22:41 UTC, "created_at"=>2014-11-22 16:22:41 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b85187f643a60f00000d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b85187f643a60f000008"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b85187f643a60f00000e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b85187f643a60f000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b85187f643a60f000008", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85187f643a60f000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4432ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85187f643a60f000008"]}}} (0.3579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b85187f643a60f00000e", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b85187f643a60f000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b85187f643a60f000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b85187f643a60f00000d", "_type"=>"Locomotive::ContentEntry5470b85187f643a60f000008", "content_type_id"=>"5470b85187f643a60f000008", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b85087f643a60f000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:22:41 UTC, "created_at"=>2014-11-22 16:22:41 UTC}] flags=[] (0.2441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b85287f643a60f00000f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b85187f643a60f000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b85187f643a60f000008", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85187f643a60f000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4489ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85187f643a60f000008"]}}} (0.3388ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85187f643a60f000008"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b85287f643a60f00000f", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b85187f643a60f000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b85187f643a60f000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b85187f643a60f000008", "content_type_id"=>"5470b85187f643a60f000008", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b85087f643a60f000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:22:42 UTC, "created_at"=>2014-11-22 16:22:42 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7291ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85087f643a60f000002", "parent_id"=>"5470b85087f643a60f000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85087f643a60f000004", "site_id"=>"5470b85087f643a60f000002", "_id"=>{"$ne"=>"5470b85287f643a60f000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b85087f643a60f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85287f643a60f000010", "parent_ids"=>["5470b85087f643a60f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b85087f643a60f000002", "parent_id"=>"5470b85087f643a60f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:42 UTC, "created_at"=>2014-11-22 16:22:42 UTC, "editable_elements"=>[{"_id"=>"5470b85287f643a60f000011", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:22:42 UTC, "created_at"=>2014-11-22 16:22:42 UTC}]}] flags=[] (0.3278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002", "template_dependencies.en"=>{"$in"=>["5470b85287f643a60f000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85287f643a60f000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3183ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85287f643a60f000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85087f643a60f000002", "parent_id"=>"5470b85087f643a60f000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85087f643a60f000004", "site_id"=>"5470b85087f643a60f000002", "_id"=>{"$ne"=>"5470b85387f643a60f000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85087f643a60f000004", "site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b85087f643a60f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85387f643a60f000012", "parent_ids"=>["5470b85087f643a60f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b85087f643a60f000002", "parent_id"=>"5470b85087f643a60f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:43 UTC, "created_at"=>2014-11-22 16:22:43 UTC}] flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002", "template_dependencies.en"=>{"$in"=>["5470b85387f643a60f000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85387f643a60f000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2921ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85387f643a60f000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85087f643a60f000002", "parent_id"=>"5470b85087f643a60f000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85087f643a60f000004", "site_id"=>"5470b85087f643a60f000002", "_id"=>{"$ne"=>"5470b85387f643a60f000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85087f643a60f000004", "site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b85087f643a60f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85387f643a60f000013", "parent_ids"=>["5470b85087f643a60f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b85087f643a60f000002", "parent_id"=>"5470b85087f643a60f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:43 UTC, "created_at"=>2014-11-22 16:22:43 UTC}] flags=[] (0.2067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002", "template_dependencies.en"=>{"$in"=>["5470b85387f643a60f000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85387f643a60f000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2742ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85387f643a60f000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85087f643a60f000002", "parent_id"=>"5470b85087f643a60f000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85087f643a60f000004", "site_id"=>"5470b85087f643a60f000002", "_id"=>{"$ne"=>"5470b85387f643a60f000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85087f643a60f000004", "site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b85087f643a60f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6962ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85387f643a60f000014", "parent_ids"=>["5470b85087f643a60f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b85087f643a60f000002", "parent_id"=>"5470b85087f643a60f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:43 UTC, "created_at"=>2014-11-22 16:22:43 UTC}] flags=[] (0.3183ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002", "template_dependencies.en"=>{"$in"=>["5470b85387f643a60f000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4563ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85387f643a60f000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3042ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85387f643a60f000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b85087f643a60f000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:22:44 UTC}} flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002", "template_dependencies.en"=>{"$in"=>["5470b85087f643a60f000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4053ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b85587f643a60f000015", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:22:39 UTC, "updated_at"=>2014-11-22 16:22:45 UTC, "memberships"=>[{"_id"=>"5470b85587f643a60f000016", "role"=>"admin", "account_id"=>"5470b85087f643a60f000001"}]}] flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85587f643a60f000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4113ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85587f643a60f000015", "_id"=>{"$ne"=>"5470b85587f643a60f000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85587f643a60f000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b85587f643a60f000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:45 UTC, "created_at"=>2014-11-22 16:22:45 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85587f643a60f000015", "template_dependencies.en"=>{"$in"=>["5470b85587f643a60f000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85587f643a60f000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2849ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85587f643a60f000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85587f643a60f000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85587f643a60f000015", "_id"=>{"$ne"=>"5470b85587f643a60f000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85587f643a60f000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85587f643a60f000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b85587f643a60f000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:45 UTC, "created_at"=>2014-11-22 16:22:45 UTC}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85587f643a60f000015", "template_dependencies.en"=>{"$in"=>["5470b85587f643a60f000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85587f643a60f000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3152ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85587f643a60f000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85587f643a60f000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85587f643a60f000015", "_id"=>{"$ne"=>"5470b85587f643a60f000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85587f643a60f000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3178ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85587f643a60f000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b85587f643a60f000015", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:45 UTC, "created_at"=>2014-11-22 16:22:45 UTC}] flags=[] (0.1993ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85587f643a60f000015", "template_dependencies.en"=>{"$in"=>["5470b85587f643a60f000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85587f643a60f000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85587f643a60f000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b85587f643a60f000015", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b85687f643a60f00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b85587f643a60f000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b85687f643a60f00001b", "updated_at"=>2014-11-22 16:22:46 UTC, "created_at"=>2014-11-22 16:22:46 UTC, "entries_custom_fields"=>[{"_id"=>"5470b85687f643a60f00001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b85687f643a60f00001c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b85687f643a60f00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b85687f643a60f00001a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85687f643a60f00001a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b85687f643a60f00001c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b85687f643a60f00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b85687f643a60f00001a", "content_type_id"=>"5470b85687f643a60f00001a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b85587f643a60f000015", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:22:46 UTC, "created_at"=>2014-11-22 16:22:46 UTC}] flags=[] (0.2141ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9527ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b85087f643a60f000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5131ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (15.2ms) Completed 200 OK in 33.3ms (Views: 27.4ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (7ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (8ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b85087f643a60f000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5162ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b85087f643a60f000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 16:22:48 UTC, "updated_at"=>2014-11-22 16:22:48 UTC}} flags=[] (0.1249ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b85087f643a60f000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 16:22:48 UTC, "current_sign_in_at"=>2014-11-22 16:22:48 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 16:22:48 UTC}} flags=[] (0.1330ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 18.0ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b85087f643a60f000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b85087f643a60f000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.5080ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4399493505616] (0.1142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4497ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b85187f643a60f000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b85187f643a60f000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.9389ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (26.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (4.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (12.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (51.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b85087f643a60f000001", :role=>:admin}}}} (0.5529ms) Rendered locomotive/shared/_main_app_head.html.haml (1.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (11.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b85087f643a60f000001"}} (0.5369ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (3.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b85087f643a60f000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6118ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (4.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (3.9ms) Rendered locomotive/shared/_main_app_header.html.haml (5.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (30.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 131.4ms (Views: 113.9ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Served asset /locomotive.css - 200 OK (41ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Served asset /locomotive.js - 200 OK (105ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b85087f643a60f000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b85087f643a60f000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1268ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4399905447951] (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b85087f643a60f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b85187f643a60f000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b85187f643a60f000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7291ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (13.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (20.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b85087f643a60f000001", :role=>:admin}}}} (0.5512ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (5.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b85087f643a60f000001"}} (0.4432ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b85087f643a60f000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5250ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (9.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 52.2ms (Views: 39.2ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 17:22:48 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b85087f643a60f000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b85087f643a60f000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4408ms) Completed 200 OK in 447.2ms (Views: 0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5771ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2879ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2453ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8430ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b85a87f643a60f00001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"e2d2f2515efd7ae2aa23871b6c914b1b576ae3d1", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"a2NMQMnZ2djLSobx3DWs", "api_key"=>"d6882b565bf8f1929f038935d1b9f7f650ae5c8f", "updated_at"=>2014-11-22 16:22:50 UTC, "created_at"=>2014-11-22 16:22:50 UTC}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b85a87f643a60f00001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:22:39 UTC, "updated_at"=>2014-11-22 16:22:50 UTC, "memberships"=>[{"_id"=>"5470b85a87f643a60f00001f", "role"=>"admin", "account_id"=>"5470b85a87f643a60f00001d"}]}] flags=[] (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85a87f643a60f00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85a87f643a60f00001e", "_id"=>{"$ne"=>"5470b85a87f643a60f000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3290ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85a87f643a60f000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b85a87f643a60f00001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:50 UTC, "created_at"=>2014-11-22 16:22:50 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "template_dependencies.en"=>{"$in"=>["5470b85a87f643a60f000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85a87f643a60f000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85a87f643a60f000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85a87f643a60f00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4637ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85a87f643a60f00001e", "_id"=>{"$ne"=>"5470b85b87f643a60f000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85a87f643a60f00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4959ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85b87f643a60f000021", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b85a87f643a60f00001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:51 UTC, "created_at"=>2014-11-22 16:22:51 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "template_dependencies.en"=>{"$in"=>["5470b85b87f643a60f000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85b87f643a60f000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3018ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85b87f643a60f000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0913ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b85a87f643a60f00001e", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6840ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b85b87f643a60f000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b85a87f643a60f00001e", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b85b87f643a60f000023", "updated_at"=>2014-11-22 16:22:51 UTC, "created_at"=>2014-11-22 16:22:51 UTC, "entries_custom_fields"=>[{"_id"=>"5470b85b87f643a60f000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b85a87f643a60f00001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b85b87f643a60f000022"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b85b87f643a60f000024", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b85a87f643a60f00001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b85b87f643a60f000025", "updated_at"=>2014-11-22 16:22:51 UTC, "created_at"=>2014-11-22 16:22:51 UTC, "entries_custom_fields"=>[{"_id"=>"5470b85b87f643a60f000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b85b87f643a60f000026", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b85b87f643a60f000022", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b85b87f643a60f000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b85a87f643a60f00001e", "_id"=>"5470b85b87f643a60f000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b85b87f643a60f000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5438ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85b87f643a60f000022"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1178ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b85b87f643a60f000022"} update={"$set"=>{"updated_at"=>2014-11-22 16:22:51 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b85b87f643a60f000028", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b85b87f643a60f000024", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b85b87f643a60f000022"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b85b87f643a60f000024", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b85b87f643a60f000029"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b85b87f643a60f000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b85b87f643a60f000022", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85b87f643a60f000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b85b87f643a60f000029", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b85b87f643a60f000022", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b85b87f643a60f000024", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b85b87f643a60f000022", "content_type_id"=>"5470b85b87f643a60f000022", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b85a87f643a60f00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:22:51 UTC, "created_at"=>2014-11-22 16:22:51 UTC}] flags=[] (0.2203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b85b87f643a60f000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b85b87f643a60f000024"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b85b87f643a60f00002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b85b87f643a60f000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4947ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b85b87f643a60f000024", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85b87f643a60f000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3908ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85b87f643a60f000024"]}}} (0.3490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b85b87f643a60f00002a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b85b87f643a60f000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b85b87f643a60f000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b85b87f643a60f000029", "_type"=>"Locomotive::ContentEntry5470b85b87f643a60f000024", "content_type_id"=>"5470b85b87f643a60f000024", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b85a87f643a60f00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:22:51 UTC, "created_at"=>2014-11-22 16:22:51 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b85c87f643a60f00002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b85b87f643a60f000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b85b87f643a60f000024", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85b87f643a60f000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5400ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85b87f643a60f000024"]}}} (0.3779ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85b87f643a60f000024"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b85c87f643a60f00002b", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b85b87f643a60f000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b85b87f643a60f000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b85b87f643a60f000024", "content_type_id"=>"5470b85b87f643a60f000024", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b85a87f643a60f00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:22:52 UTC, "created_at"=>2014-11-22 16:22:52 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6690ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85a87f643a60f00001e", "parent_id"=>"5470b85a87f643a60f000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3977ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85a87f643a60f000020", "site_id"=>"5470b85a87f643a60f00001e", "_id"=>{"$ne"=>"5470b85c87f643a60f00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b85a87f643a60f000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85c87f643a60f00002c", "parent_ids"=>["5470b85a87f643a60f000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b85a87f643a60f00001e", "parent_id"=>"5470b85a87f643a60f000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:52 UTC, "created_at"=>2014-11-22 16:22:52 UTC, "editable_elements"=>[{"_id"=>"5470b85c87f643a60f00002d", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:22:52 UTC, "created_at"=>2014-11-22 16:22:52 UTC}]}] flags=[] (0.2949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "template_dependencies.en"=>{"$in"=>["5470b85c87f643a60f00002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85c87f643a60f00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85c87f643a60f00002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85a87f643a60f00001e", "parent_id"=>"5470b85a87f643a60f000020", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3977ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85a87f643a60f000020", "site_id"=>"5470b85a87f643a60f00001e", "_id"=>{"$ne"=>"5470b85d87f643a60f00002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85a87f643a60f000020", "site_id"=>"5470b85a87f643a60f00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b85a87f643a60f000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5078ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85d87f643a60f00002e", "parent_ids"=>["5470b85a87f643a60f000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b85a87f643a60f00001e", "parent_id"=>"5470b85a87f643a60f000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:53 UTC, "created_at"=>2014-11-22 16:22:53 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "template_dependencies.en"=>{"$in"=>["5470b85d87f643a60f00002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85d87f643a60f00002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3238ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85d87f643a60f00002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85a87f643a60f00001e", "parent_id"=>"5470b85a87f643a60f000020", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3526ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85a87f643a60f000020", "site_id"=>"5470b85a87f643a60f00001e", "_id"=>{"$ne"=>"5470b85d87f643a60f00002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85a87f643a60f000020", "site_id"=>"5470b85a87f643a60f00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b85a87f643a60f000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4938ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85d87f643a60f00002f", "parent_ids"=>["5470b85a87f643a60f000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b85a87f643a60f00001e", "parent_id"=>"5470b85a87f643a60f000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:53 UTC, "created_at"=>2014-11-22 16:22:53 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "template_dependencies.en"=>{"$in"=>["5470b85d87f643a60f00002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3393ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85d87f643a60f00002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85d87f643a60f00002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85a87f643a60f00001e", "parent_id"=>"5470b85a87f643a60f000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85a87f643a60f000020", "site_id"=>"5470b85a87f643a60f00001e", "_id"=>{"$ne"=>"5470b85d87f643a60f000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85a87f643a60f000020", "site_id"=>"5470b85a87f643a60f00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b85a87f643a60f000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4761ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85d87f643a60f000030", "parent_ids"=>["5470b85a87f643a60f000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b85a87f643a60f00001e", "parent_id"=>"5470b85a87f643a60f000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:53 UTC, "created_at"=>2014-11-22 16:22:53 UTC}] flags=[] (0.2387ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "template_dependencies.en"=>{"$in"=>["5470b85d87f643a60f000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85d87f643a60f000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85d87f643a60f000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b85a87f643a60f00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b85a87f643a60f000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:22:54 UTC}} flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "template_dependencies.en"=>{"$in"=>["5470b85a87f643a60f000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3662ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b85e87f643a60f000031", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:22:39 UTC, "updated_at"=>2014-11-22 16:22:54 UTC, "memberships"=>[{"_id"=>"5470b85e87f643a60f000032", "role"=>"admin", "account_id"=>"5470b85a87f643a60f00001d"}]}] flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85e87f643a60f000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85e87f643a60f000031", "_id"=>{"$ne"=>"5470b85e87f643a60f000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85e87f643a60f000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b85e87f643a60f000031", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:54 UTC, "created_at"=>2014-11-22 16:22:54 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85e87f643a60f000031", "template_dependencies.en"=>{"$in"=>["5470b85e87f643a60f000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85e87f643a60f000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3102ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85e87f643a60f000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85e87f643a60f000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85e87f643a60f000031", "_id"=>{"$ne"=>"5470b85f87f643a60f000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85e87f643a60f000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85f87f643a60f000034", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b85e87f643a60f000031", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:55 UTC, "created_at"=>2014-11-22 16:22:55 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85e87f643a60f000031", "template_dependencies.en"=>{"$in"=>["5470b85f87f643a60f000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85f87f643a60f000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3250ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85f87f643a60f000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b85e87f643a60f000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85e87f643a60f000031", "_id"=>{"$ne"=>"5470b85f87f643a60f000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7563ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b85e87f643a60f000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3283ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b85f87f643a60f000035", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b85e87f643a60f000031", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:55 UTC, "created_at"=>2014-11-22 16:22:55 UTC}] flags=[] (0.2148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85e87f643a60f000031", "template_dependencies.en"=>{"$in"=>["5470b85f87f643a60f000035"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3247ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b85f87f643a60f000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2789ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b85f87f643a60f000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b85e87f643a60f000031", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b85f87f643a60f000036", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b85e87f643a60f000031", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b85f87f643a60f000037", "updated_at"=>2014-11-22 16:22:55 UTC, "created_at"=>2014-11-22 16:22:55 UTC, "entries_custom_fields"=>[{"_id"=>"5470b85f87f643a60f000037", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b85f87f643a60f000038"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b85f87f643a60f000036"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b85f87f643a60f000036", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b85f87f643a60f000036"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b85f87f643a60f000038", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b85f87f643a60f000036", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b85f87f643a60f000036", "content_type_id"=>"5470b85f87f643a60f000036", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b85e87f643a60f000031", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:22:55 UTC, "created_at"=>2014-11-22 16:22:55 UTC}] flags=[] (0.1860ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:22:55 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5648ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5839ms) Rendered text template (0.0ms) Completed 200 OK in 7.8ms (Views: 1.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 17:22:55 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5589ms) Rendered text template (0.0ms) Completed 200 OK in 693.9ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 17:22:56 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8430ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:22:56 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7660ms) Rendered text template (0.0ms) Completed 200 OK in 4.5ms (Views: 0.4ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 17:22:56 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b85a87f643a60f00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6111ms) Rendered text template (0.0ms) Completed 200 OK in 577.6ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3719ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2059ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1818ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7899ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b86187f643a60f000039", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"0c6f4993cc8f7abe4b01991ffc600a27448b025c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"qz1gCfvkoM6CqepZTpj1", "api_key"=>"936f073888ab77e6437b99373e915264212b1354", "updated_at"=>2014-11-22 16:22:57 UTC, "created_at"=>2014-11-22 16:22:57 UTC}] flags=[] (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6406ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b86187f643a60f00003a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:22:39 UTC, "updated_at"=>2014-11-22 16:22:57 UTC, "memberships"=>[{"_id"=>"5470b86187f643a60f00003b", "role"=>"admin", "account_id"=>"5470b86187f643a60f000039"}]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86187f643a60f00003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6866ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86187f643a60f00003a", "_id"=>{"$ne"=>"5470b86187f643a60f00003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86187f643a60f00003c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b86187f643a60f00003a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:57 UTC, "created_at"=>2014-11-22 16:22:57 UTC}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86187f643a60f00003a", "template_dependencies.en"=>{"$in"=>["5470b86187f643a60f00003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86187f643a60f00003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86187f643a60f00003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86187f643a60f00003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86187f643a60f00003a", "_id"=>{"$ne"=>"5470b86287f643a60f00003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86187f643a60f00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86287f643a60f00003d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b86187f643a60f00003a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:22:58 UTC, "created_at"=>2014-11-22 16:22:58 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86187f643a60f00003a", "template_dependencies.en"=>{"$in"=>["5470b86287f643a60f00003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86287f643a60f00003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86287f643a60f00003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0956ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b86187f643a60f00003a", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b86287f643a60f00003e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b86187f643a60f00003a", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b86287f643a60f00003f", "updated_at"=>2014-11-22 16:22:58 UTC, "created_at"=>2014-11-22 16:22:58 UTC, "entries_custom_fields"=>[{"_id"=>"5470b86287f643a60f00003f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b86187f643a60f00003a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b86287f643a60f00003e"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4423ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b86287f643a60f000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b86187f643a60f00003a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b86287f643a60f000041", "updated_at"=>2014-11-22 16:22:58 UTC, "created_at"=>2014-11-22 16:22:58 UTC, "entries_custom_fields"=>[{"_id"=>"5470b86287f643a60f000041", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b86287f643a60f000042", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b86287f643a60f00003e", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b86287f643a60f000043", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b86187f643a60f00003a", "_id"=>"5470b86287f643a60f00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b86287f643a60f000040"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f00003e"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1788ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b86287f643a60f00003e"} update={"$set"=>{"updated_at"=>2014-11-22 16:22:58 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b86287f643a60f000044", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b86287f643a60f000040", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86287f643a60f00003e"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b86287f643a60f000040", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86287f643a60f000045"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f00003e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86287f643a60f00003e", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f00003e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3881ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b86287f643a60f000045", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b86287f643a60f00003e", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b86287f643a60f000040", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b86287f643a60f00003e", "content_type_id"=>"5470b86287f643a60f00003e", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b86187f643a60f00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:22:58 UTC, "created_at"=>2014-11-22 16:22:58 UTC}] flags=[] (0.2601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b86287f643a60f000045", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f000040"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86387f643a60f000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86287f643a60f000040", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4439ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f000040"]}}} (0.4261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b86387f643a60f000046", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b86287f643a60f000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b86287f643a60f00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b86287f643a60f000045", "_type"=>"Locomotive::ContentEntry5470b86287f643a60f000040", "content_type_id"=>"5470b86287f643a60f000040", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b86187f643a60f00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:22:59 UTC, "created_at"=>2014-11-22 16:22:59 UTC}] flags=[] (0.2549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86387f643a60f000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86287f643a60f000040", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4773ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f000040"]}}} (0.4001ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f000040"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4969ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b86387f643a60f000047", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b86287f643a60f000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b86287f643a60f00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b86287f643a60f000040", "content_type_id"=>"5470b86287f643a60f000040", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b86187f643a60f00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:22:59 UTC, "created_at"=>2014-11-22 16:22:59 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7157ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86187f643a60f00003a", "parent_id"=>"5470b86187f643a60f00003c", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86187f643a60f00003c", "site_id"=>"5470b86187f643a60f00003a", "_id"=>{"$ne"=>"5470b86487f643a60f000048"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b86187f643a60f00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86487f643a60f000048", "parent_ids"=>["5470b86187f643a60f00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b86187f643a60f00003a", "parent_id"=>"5470b86187f643a60f00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:00 UTC, "created_at"=>2014-11-22 16:23:00 UTC, "editable_elements"=>[{"_id"=>"5470b86487f643a60f000049", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:23:00 UTC, "created_at"=>2014-11-22 16:23:00 UTC}]}] flags=[] (0.3209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86187f643a60f00003a", "template_dependencies.en"=>{"$in"=>["5470b86487f643a60f000048"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86487f643a60f000048"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3250ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86487f643a60f000048"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86187f643a60f00003a", "parent_id"=>"5470b86187f643a60f00003c", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86187f643a60f00003c", "site_id"=>"5470b86187f643a60f00003a", "_id"=>{"$ne"=>"5470b86487f643a60f00004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86187f643a60f00003c", "site_id"=>"5470b86187f643a60f00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b86187f643a60f00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86487f643a60f00004a", "parent_ids"=>["5470b86187f643a60f00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b86187f643a60f00003a", "parent_id"=>"5470b86187f643a60f00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:00 UTC, "created_at"=>2014-11-22 16:23:00 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86187f643a60f00003a", "template_dependencies.en"=>{"$in"=>["5470b86487f643a60f00004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86487f643a60f00004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2851ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86487f643a60f00004a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86187f643a60f00003a", "parent_id"=>"5470b86187f643a60f00003c", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86187f643a60f00003c", "site_id"=>"5470b86187f643a60f00003a", "_id"=>{"$ne"=>"5470b86487f643a60f00004b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86187f643a60f00003c", "site_id"=>"5470b86187f643a60f00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b86187f643a60f00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86487f643a60f00004b", "parent_ids"=>["5470b86187f643a60f00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b86187f643a60f00003a", "parent_id"=>"5470b86187f643a60f00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:00 UTC, "created_at"=>2014-11-22 16:23:00 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86187f643a60f00003a", "template_dependencies.en"=>{"$in"=>["5470b86487f643a60f00004b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86487f643a60f00004b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86487f643a60f00004b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86187f643a60f00003a", "parent_id"=>"5470b86187f643a60f00003c", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86187f643a60f00003c", "site_id"=>"5470b86187f643a60f00003a", "_id"=>{"$ne"=>"5470b86487f643a60f00004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86187f643a60f00003c", "site_id"=>"5470b86187f643a60f00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b86187f643a60f00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4852ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86487f643a60f00004c", "parent_ids"=>["5470b86187f643a60f00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b86187f643a60f00003a", "parent_id"=>"5470b86187f643a60f00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:00 UTC, "created_at"=>2014-11-22 16:23:00 UTC}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86187f643a60f00003a", "template_dependencies.en"=>{"$in"=>["5470b86487f643a60f00004c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86487f643a60f00004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2890ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86487f643a60f00004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86187f643a60f00003a", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b86187f643a60f00003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4721ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b86187f643a60f00003c"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:23:01 UTC}} flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86187f643a60f00003a", "template_dependencies.en"=>{"$in"=>["5470b86187f643a60f00003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b86587f643a60f00004d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:22:39 UTC, "updated_at"=>2014-11-22 16:23:01 UTC, "memberships"=>[{"_id"=>"5470b86587f643a60f00004e", "role"=>"admin", "account_id"=>"5470b86187f643a60f000039"}]}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86587f643a60f00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86587f643a60f00004d", "_id"=>{"$ne"=>"5470b86587f643a60f00004f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86587f643a60f00004f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b86587f643a60f00004d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:01 UTC, "created_at"=>2014-11-22 16:23:01 UTC}] flags=[] (0.2708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86587f643a60f00004d", "template_dependencies.en"=>{"$in"=>["5470b86587f643a60f00004f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86587f643a60f00004f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86587f643a60f00004f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86587f643a60f00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86587f643a60f00004d", "_id"=>{"$ne"=>"5470b86687f643a60f000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86587f643a60f00004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86687f643a60f000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b86587f643a60f00004d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:02 UTC, "created_at"=>2014-11-22 16:23:02 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86587f643a60f00004d", "template_dependencies.en"=>{"$in"=>["5470b86687f643a60f000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86687f643a60f000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3119ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86687f643a60f000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86587f643a60f00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86587f643a60f00004d", "_id"=>{"$ne"=>"5470b86687f643a60f000051"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86587f643a60f00004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3128ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86687f643a60f000051", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b86587f643a60f00004d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:02 UTC, "created_at"=>2014-11-22 16:23:02 UTC}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86587f643a60f00004d", "template_dependencies.en"=>{"$in"=>["5470b86687f643a60f000051"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86687f643a60f000051"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3040ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86687f643a60f000051"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b86587f643a60f00004d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4117ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b86687f643a60f000052", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b86587f643a60f00004d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b86687f643a60f000053", "updated_at"=>2014-11-22 16:23:02 UTC, "created_at"=>2014-11-22 16:23:02 UTC, "entries_custom_fields"=>[{"_id"=>"5470b86687f643a60f000053", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86687f643a60f000054"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86687f643a60f000052"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86687f643a60f000052", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86687f643a60f000052"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3922ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b86687f643a60f000054", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b86687f643a60f000052", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b86687f643a60f000052", "content_type_id"=>"5470b86687f643a60f000052", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b86587f643a60f00004d", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:02 UTC, "created_at"=>2014-11-22 16:23:02 UTC}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86387f643a60f000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86387f643a60f000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b86287f643a60f00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86287f643a60f000040"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1431ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b86287f643a60f000040"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:03 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.1438ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86287f643a60f000040"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b86287f643a60f00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b86187f643a60f00003a", "_id"=>"5470b86287f643a60f00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6492ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2629ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.0991ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0881ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7429ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8547ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b86787f643a60f000055", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"932563b095ce03e0ebdd07199d705b53b34414ac", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"JgLaFVnLB4PWM8Uz6Kzj", "api_key"=>"01f8e4cc8734935ea6e6bf60c44d4471b30ba6b9", "updated_at"=>2014-11-22 16:23:03 UTC, "created_at"=>2014-11-22 16:23:03 UTC}] flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b86787f643a60f000056", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:22:39 UTC, "updated_at"=>2014-11-22 16:23:03 UTC, "memberships"=>[{"_id"=>"5470b86787f643a60f000057", "role"=>"admin", "account_id"=>"5470b86787f643a60f000055"}]}] flags=[] (0.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86787f643a60f000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86787f643a60f000056", "_id"=>{"$ne"=>"5470b86787f643a60f000058"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86787f643a60f000058", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b86787f643a60f000056", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:03 UTC, "created_at"=>2014-11-22 16:23:03 UTC}] flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "template_dependencies.en"=>{"$in"=>["5470b86787f643a60f000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86787f643a60f000058"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2739ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86787f643a60f000058"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86787f643a60f000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86787f643a60f000056", "_id"=>{"$ne"=>"5470b86887f643a60f000059"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86787f643a60f000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86887f643a60f000059", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b86787f643a60f000056", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:04 UTC, "created_at"=>2014-11-22 16:23:04 UTC}] flags=[] (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "template_dependencies.en"=>{"$in"=>["5470b86887f643a60f000059"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3603ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86887f643a60f000059"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86887f643a60f000059"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b86787f643a60f000056", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b86887f643a60f00005a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b86787f643a60f000056", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b86887f643a60f00005b", "updated_at"=>2014-11-22 16:23:04 UTC, "created_at"=>2014-11-22 16:23:04 UTC, "entries_custom_fields"=>[{"_id"=>"5470b86887f643a60f00005b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b86787f643a60f000056", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b86887f643a60f00005a"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4506ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b86887f643a60f00005c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b86787f643a60f000056", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b86887f643a60f00005d", "updated_at"=>2014-11-22 16:23:04 UTC, "created_at"=>2014-11-22 16:23:04 UTC, "entries_custom_fields"=>[{"_id"=>"5470b86887f643a60f00005d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b86887f643a60f00005e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b86887f643a60f00005a", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b86887f643a60f00005f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b86787f643a60f000056", "_id"=>"5470b86887f643a60f00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b86887f643a60f00005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005a"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1180ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b86887f643a60f00005a"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:04 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b86887f643a60f000060", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b86887f643a60f00005c", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1593ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86887f643a60f00005a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b86887f643a60f00005c", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86887f643a60f000061"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86887f643a60f00005a", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4141ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b86887f643a60f000061", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b86887f643a60f00005a", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b86887f643a60f00005c", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b86887f643a60f00005a", "content_type_id"=>"5470b86887f643a60f00005a", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b86787f643a60f000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:23:04 UTC, "created_at"=>2014-11-22 16:23:04 UTC}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b86887f643a60f000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86887f643a60f000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5157ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86887f643a60f00005c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3970ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}}} (0.3510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b86887f643a60f000062", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b86887f643a60f00005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b86887f643a60f00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b86887f643a60f000061", "_type"=>"Locomotive::ContentEntry5470b86887f643a60f00005c", "content_type_id"=>"5470b86887f643a60f00005c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b86787f643a60f000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:04 UTC, "created_at"=>2014-11-22 16:23:04 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86987f643a60f000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86887f643a60f00005c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4401ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}}} (0.5021ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5598ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b86987f643a60f000063", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b86887f643a60f00005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b86887f643a60f00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b86887f643a60f00005c", "content_type_id"=>"5470b86887f643a60f00005c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b86787f643a60f000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:05 UTC, "created_at"=>2014-11-22 16:23:05 UTC}] flags=[] (0.2539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7060ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86787f643a60f000056", "parent_id"=>"5470b86787f643a60f000058", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86787f643a60f000058", "site_id"=>"5470b86787f643a60f000056", "_id"=>{"$ne"=>"5470b86987f643a60f000064"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b86787f643a60f000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86987f643a60f000064", "parent_ids"=>["5470b86787f643a60f000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b86787f643a60f000056", "parent_id"=>"5470b86787f643a60f000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:05 UTC, "created_at"=>2014-11-22 16:23:05 UTC, "editable_elements"=>[{"_id"=>"5470b86987f643a60f000065", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:23:05 UTC, "created_at"=>2014-11-22 16:23:05 UTC}]}] flags=[] (0.3228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "template_dependencies.en"=>{"$in"=>["5470b86987f643a60f000064"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86987f643a60f000064"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2890ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86987f643a60f000064"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86787f643a60f000056", "parent_id"=>"5470b86787f643a60f000058", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86787f643a60f000058", "site_id"=>"5470b86787f643a60f000056", "_id"=>{"$ne"=>"5470b86987f643a60f000066"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86787f643a60f000058", "site_id"=>"5470b86787f643a60f000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b86787f643a60f000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86987f643a60f000066", "parent_ids"=>["5470b86787f643a60f000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b86787f643a60f000056", "parent_id"=>"5470b86787f643a60f000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:05 UTC, "created_at"=>2014-11-22 16:23:05 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "template_dependencies.en"=>{"$in"=>["5470b86987f643a60f000066"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86987f643a60f000066"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86987f643a60f000066"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86787f643a60f000056", "parent_id"=>"5470b86787f643a60f000058", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86787f643a60f000058", "site_id"=>"5470b86787f643a60f000056", "_id"=>{"$ne"=>"5470b86987f643a60f000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8383ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86787f643a60f000058", "site_id"=>"5470b86787f643a60f000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b86787f643a60f000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86987f643a60f000067", "parent_ids"=>["5470b86787f643a60f000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b86787f643a60f000056", "parent_id"=>"5470b86787f643a60f000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:05 UTC, "created_at"=>2014-11-22 16:23:05 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "template_dependencies.en"=>{"$in"=>["5470b86987f643a60f000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86987f643a60f000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2909ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86987f643a60f000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86787f643a60f000056", "parent_id"=>"5470b86787f643a60f000058", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86787f643a60f000058", "site_id"=>"5470b86787f643a60f000056", "_id"=>{"$ne"=>"5470b86987f643a60f000068"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86787f643a60f000058", "site_id"=>"5470b86787f643a60f000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b86787f643a60f000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5128ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86987f643a60f000068", "parent_ids"=>["5470b86787f643a60f000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b86787f643a60f000056", "parent_id"=>"5470b86787f643a60f000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:05 UTC, "created_at"=>2014-11-22 16:23:05 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "template_dependencies.en"=>{"$in"=>["5470b86987f643a60f000068"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86987f643a60f000068"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2999ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86987f643a60f000068"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b86787f643a60f000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b86787f643a60f000058"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:23:06 UTC}} flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "template_dependencies.en"=>{"$in"=>["5470b86787f643a60f000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3972ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b86b87f643a60f000069", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:22:39 UTC, "updated_at"=>2014-11-22 16:23:07 UTC, "memberships"=>[{"_id"=>"5470b86b87f643a60f00006a", "role"=>"admin", "account_id"=>"5470b86787f643a60f000055"}]}] flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86b87f643a60f000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86b87f643a60f000069", "_id"=>{"$ne"=>"5470b86b87f643a60f00006b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5302ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86b87f643a60f00006b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b86b87f643a60f000069", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:07 UTC, "created_at"=>2014-11-22 16:23:07 UTC}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86b87f643a60f000069", "template_dependencies.en"=>{"$in"=>["5470b86b87f643a60f00006b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86b87f643a60f00006b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2811ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86b87f643a60f00006b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86b87f643a60f000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86b87f643a60f000069", "_id"=>{"$ne"=>"5470b86b87f643a60f00006c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86b87f643a60f000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86b87f643a60f00006c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b86b87f643a60f000069", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:07 UTC, "created_at"=>2014-11-22 16:23:07 UTC}] flags=[] (0.2367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86b87f643a60f000069", "template_dependencies.en"=>{"$in"=>["5470b86b87f643a60f00006c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86b87f643a60f00006c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86b87f643a60f00006c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b86b87f643a60f000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86b87f643a60f000069", "_id"=>{"$ne"=>"5470b86b87f643a60f00006d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7596ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b86b87f643a60f000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b86b87f643a60f00006d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b86b87f643a60f000069", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:07 UTC, "created_at"=>2014-11-22 16:23:07 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86b87f643a60f000069", "template_dependencies.en"=>{"$in"=>["5470b86b87f643a60f00006d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b86b87f643a60f00006d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2942ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b86b87f643a60f00006d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0877ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b86b87f643a60f000069", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4179ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b86c87f643a60f00006e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b86b87f643a60f000069", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b86c87f643a60f00006f", "updated_at"=>2014-11-22 16:23:08 UTC, "created_at"=>2014-11-22 16:23:08 UTC, "entries_custom_fields"=>[{"_id"=>"5470b86c87f643a60f00006f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86c87f643a60f000070"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86c87f643a60f00006e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86c87f643a60f00006e", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86c87f643a60f00006e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b86c87f643a60f000070", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b86c87f643a60f00006e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b86c87f643a60f00006e", "content_type_id"=>"5470b86c87f643a60f00006e", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b86b87f643a60f000069", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:08 UTC, "created_at"=>2014-11-22 16:23:08 UTC}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86887f643a60f000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b86987f643a60f000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b86887f643a60f00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1309ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b86887f643a60f00005c"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:08 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.1118ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86887f643a60f00005c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b86887f643a60f00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1383ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b86787f643a60f000056", "_id"=>"5470b86887f643a60f00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6590ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:23:08 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5691ms) Rendered text template (0.0ms) Completed 200 OK in 4.0ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 17:23:08 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5639ms) Rendered text template (0.0ms) Completed 200 OK in 595.4ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b86887f643a60f00005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b86887f643a60f00005c", "updated_at"=>{"$lt"=>2014-11-22 16:23:08 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b86787f643a60f000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b86887f643a60f00005c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6163ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470b86887f643a60f000062"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:09 UTC}} flags=[] (0.1543ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470b86887f643a60f000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b86887f643a60f00005a"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b86787f643a60f000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b86887f643a60f00005c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470b86987f643a60f000063"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:09 UTC}} flags=[] (0.1409ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:23:10 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6139ms) Rendered text template (0.0ms) Completed 200 OK in 4.6ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 17:23:10 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b86787f643a60f000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6881ms) Rendered text template (0.0ms) Completed 200 OK in 623.6ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5958ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3881ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4040ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2138ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8767ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0419ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5629ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6018ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5357ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b87387f643abbe000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"855e705d94af6c9a57681daaacd732c912958858", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"WVEptwifaiez5yev61fi", "api_key"=>"e1b64ef183439cf86c16889b61ea9d0ace5f3227", "updated_at"=>2014-11-22 16:23:15 UTC, "created_at"=>2014-11-22 16:23:15 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7701ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87387f643abbe000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:23:15 UTC, "updated_at"=>2014-11-22 16:23:15 UTC, "memberships"=>[{"_id"=>"5470b87387f643abbe000003", "role"=>"admin", "account_id"=>"5470b87387f643abbe000001"}]}] flags=[] (0.1729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87387f643abbe000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87387f643abbe000002", "_id"=>{"$ne"=>"5470b87487f643abbe000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87487f643abbe000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87387f643abbe000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002", "template_dependencies.en"=>{"$in"=>["5470b87487f643abbe000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3369ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87487f643abbe000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87487f643abbe000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5379ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87487f643abbe000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87387f643abbe000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87487f643abbe000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87387f643abbe000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87387f643abbe000002", "_id"=>{"$ne"=>"5470b87487f643abbe000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87487f643abbe000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87387f643abbe000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002", "template_dependencies.en"=>{"$in"=>["5470b87487f643abbe000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2842ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87487f643abbe000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87387f643abbe000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87487f643abbe000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b87387f643abbe000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b87487f643abbe000008", "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87487f643abbe000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87387f643abbe000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87487f643abbe000007"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4313ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87487f643abbe000009", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87387f643abbe000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87487f643abbe00000a", "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87487f643abbe00000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b87487f643abbe00000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b87487f643abbe000007", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b87487f643abbe00000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87387f643abbe000002", "_id"=>"5470b87487f643abbe000007"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87487f643abbe000009"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5510ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000007"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1359ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87487f643abbe000007"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:16 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b87487f643abbe00000d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b87487f643abbe000009", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87487f643abbe000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87487f643abbe000009", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87487f643abbe00000e"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87487f643abbe000007", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000007"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3562ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87487f643abbe00000e", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87487f643abbe000007", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87487f643abbe000009", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87487f643abbe000007", "content_type_id"=>"5470b87487f643abbe000007", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b87387f643abbe000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.1698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87487f643abbe000007", "original_id"=>"5470b87487f643abbe00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5472ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b87487f643abbe00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000009"]}}} (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87487f643abbe00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87487f643abbe00000f", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b87387f643abbe000002", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b87487f643abbe000007", "original_id"=>"5470b87487f643abbe00000e", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87487f643abbe000010"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87487f643abbe000009", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3867ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3788ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000009"]}}} (0.3562ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87487f643abbe000010", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87487f643abbe000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87487f643abbe000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b87487f643abbe00000e", "_type"=>"Locomotive::ContentEntry5470b87487f643abbe000009", "content_type_id"=>"5470b87487f643abbe000009", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b87387f643abbe000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87487f643abbe000009", "original_id"=>"5470b87487f643abbe000010", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87487f643abbe00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5782ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87487f643abbe000011", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b87387f643abbe000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87487f643abbe000009", "original_id"=>"5470b87487f643abbe000010", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87487f643abbe000012"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87487f643abbe000009", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4470ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000009"]}}} (0.3331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000009"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4609ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87487f643abbe000012", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87487f643abbe000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87487f643abbe000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87487f643abbe000009", "content_type_id"=>"5470b87487f643abbe000009", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b87387f643abbe000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87487f643abbe000009", "original_id"=>"5470b87487f643abbe000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87487f643abbe000013", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b87387f643abbe000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87487f643abbe000009", "original_id"=>"5470b87487f643abbe000012", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5629ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87387f643abbe000002", "parent_id"=>"5470b87487f643abbe000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000004", "site_id"=>"5470b87387f643abbe000002", "_id"=>{"$ne"=>"5470b87487f643abbe000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87487f643abbe000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87487f643abbe000014", "parent_ids"=>["5470b87487f643abbe000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b87387f643abbe000002", "parent_id"=>"5470b87487f643abbe000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC, "editable_elements"=>[{"_id"=>"5470b87487f643abbe000015", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}]}] flags=[] (0.2592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002", "template_dependencies.en"=>{"$in"=>["5470b87487f643abbe000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2923ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87487f643abbe000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87487f643abbe000014", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87487f643abbe000016", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b87387f643abbe000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87487f643abbe000014", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87387f643abbe000002", "parent_id"=>"5470b87487f643abbe000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000004", "site_id"=>"5470b87387f643abbe000002", "_id"=>{"$ne"=>"5470b87487f643abbe000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000004", "site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87487f643abbe000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5169ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87487f643abbe000017", "parent_ids"=>["5470b87487f643abbe000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b87387f643abbe000002", "parent_id"=>"5470b87487f643abbe000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002", "template_dependencies.en"=>{"$in"=>["5470b87487f643abbe000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87487f643abbe000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87387f643abbe000002", "parent_id"=>"5470b87487f643abbe000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000004", "site_id"=>"5470b87387f643abbe000002", "_id"=>{"$ne"=>"5470b87487f643abbe000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000004", "site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87487f643abbe000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87487f643abbe000018", "parent_ids"=>["5470b87487f643abbe000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b87387f643abbe000002", "parent_id"=>"5470b87487f643abbe000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002", "template_dependencies.en"=>{"$in"=>["5470b87487f643abbe000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87487f643abbe000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87387f643abbe000002", "parent_id"=>"5470b87487f643abbe000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000004", "site_id"=>"5470b87387f643abbe000002", "_id"=>{"$ne"=>"5470b87487f643abbe000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000004", "site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87487f643abbe000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5102ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87487f643abbe000019", "parent_ids"=>["5470b87487f643abbe000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b87387f643abbe000002", "parent_id"=>"5470b87487f643abbe000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002", "template_dependencies.en"=>{"$in"=>["5470b87487f643abbe000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87487f643abbe000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87487f643abbe000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3290ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87387f643abbe000002", "locale"=>"en"}} (0.5741ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87387f643abbe000002", "locale"=>"en"}} (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87487f643abbe00001a", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b87387f643abbe000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87487f643abbe000019", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b87487f643abbe000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:23:16 UTC}} flags=[] (0.1142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002", "template_dependencies.en"=>{"$in"=>["5470b87487f643abbe000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87487f643abbe000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b87487f643abbe000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87387f643abbe000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87487f643abbe00001b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:23:15 UTC, "updated_at"=>2014-11-22 16:23:16 UTC, "memberships"=>[{"_id"=>"5470b87487f643abbe00001c", "role"=>"admin", "account_id"=>"5470b87387f643abbe000001"}]}] flags=[] (0.1261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87487f643abbe00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87487f643abbe00001b", "_id"=>{"$ne"=>"5470b87487f643abbe00001d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87487f643abbe00001d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87487f643abbe00001b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87487f643abbe00001b", "template_dependencies.en"=>{"$in"=>["5470b87487f643abbe00001d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe00001d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87487f643abbe00001d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87487f643abbe00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3328ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87487f643abbe00001e", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87487f643abbe00001b", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87487f643abbe00001d", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87487f643abbe00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87487f643abbe00001b", "_id"=>{"$ne"=>"5470b87487f643abbe00001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87487f643abbe00001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4869ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87487f643abbe00001f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87487f643abbe00001b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87487f643abbe00001b", "template_dependencies.en"=>{"$in"=>["5470b87487f643abbe00001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2873ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87487f643abbe00001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87487f643abbe00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87487f643abbe00001b", "_id"=>{"$ne"=>"5470b87487f643abbe000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87487f643abbe00001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87487f643abbe000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b87487f643abbe00001b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87487f643abbe00001b", "template_dependencies.en"=>{"$in"=>["5470b87487f643abbe000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87487f643abbe000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3002ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87487f643abbe000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87487f643abbe000020", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87487f643abbe000021", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b87487f643abbe00001b", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87487f643abbe000020", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87487f643abbe00001b", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87487f643abbe000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87487f643abbe00001b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87487f643abbe000023", "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87487f643abbe000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87487f643abbe000024"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87487f643abbe000022", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87487f643abbe000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4108ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87487f643abbe000024", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87487f643abbe000022", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87487f643abbe000022", "content_type_id"=>"5470b87487f643abbe000022", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b87487f643abbe00001b", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:16 UTC, "created_at"=>2014-11-22 16:23:16 UTC}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87487f643abbe000022", "original_id"=>"5470b87487f643abbe000024", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87487f643abbe000025", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b87487f643abbe00001b", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87487f643abbe000022", "original_id"=>"5470b87487f643abbe000024", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1621ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 17:23:17 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.7880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b87387f643abbe000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4117ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (17.3ms) Completed 200 OK in 35.6ms (Views: 29.5ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 17:23:17 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (7ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 17:23:17 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (10ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 17:23:17 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 17:23:17 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7873ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b87387f643abbe000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6862ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b87387f643abbe000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 16:23:17 UTC, "updated_at"=>2014-11-22 16:23:17 UTC}} flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b87387f643abbe000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 16:23:17 UTC, "current_sign_in_at"=>2014-11-22 16:23:17 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 16:23:17 UTC}} flags=[] (0.2019ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 19.7ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:23:17 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8073ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b87387f643abbe000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b87387f643abbe000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.5309ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4489347012060] (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.6261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87487f643abbe000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87487f643abbe000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7451ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (28.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (9.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (49.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b87387f643abbe000001", :role=>:admin}}}} (0.5991ms) Rendered locomotive/shared/_main_app_head.html.haml (1.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (12.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b87387f643abbe000001"}} (0.5200ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b87387f643abbe000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7181ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (3.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (3.9ms) Rendered locomotive/shared/_main_app_header.html.haml (5.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (26.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.0ms) Completed 200 OK in 127.2ms (Views: 109.3ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 17:23:17 +0100 Served asset /locomotive.css - 200 OK (38ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 17:23:17 +0100 Served asset /locomotive.js - 200 OK (101ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 17:23:17 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 17:23:17 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 17:23:17 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 17:23:18 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 17:23:18 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:23:18 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b87387f643abbe000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b87387f643abbe000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2238ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4490272789881] (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87387f643abbe000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87487f643abbe000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87487f643abbe000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6979ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (14.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (21.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b87387f643abbe000001", :role=>:admin}}}} (0.5322ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b87387f643abbe000001"}} (0.4439ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b87387f643abbe000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5319ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (8.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 51.9ms (Views: 37.9ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 17:23:18 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b87387f643abbe000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b87387f643abbe000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5391ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"findable ", "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87387f643abbe000002"}} (0.7641ms) Completed 200 OK in 18.9ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7508ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.5821ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3378ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3678ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3483ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.0982ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2899ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b87687f643abbe000026", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8fae8ce0ee9dbad3f38351a26bea4253fd0000c3", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ajcCy3s34TjPfhz3zBzy", "api_key"=>"92b34b11f13a43161b1c11d78c57e180934e6638", "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.1011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87687f643abbe000027", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:23:15 UTC, "updated_at"=>2014-11-22 16:23:18 UTC, "memberships"=>[{"_id"=>"5470b87687f643abbe000028", "role"=>"admin", "account_id"=>"5470b87687f643abbe000026"}]}] flags=[] (0.1352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87687f643abbe000027", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87687f643abbe000027", "_id"=>{"$ne"=>"5470b87687f643abbe000029"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87687f643abbe000029", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87687f643abbe000027", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87687f643abbe000027", "template_dependencies.en"=>{"$in"=>["5470b87687f643abbe000029"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3109ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87687f643abbe000029"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87687f643abbe000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4733ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87687f643abbe00002a", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87687f643abbe000027", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87687f643abbe000029", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87687f643abbe000027", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87687f643abbe000027", "_id"=>{"$ne"=>"5470b87687f643abbe00002b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87687f643abbe000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87687f643abbe00002b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87687f643abbe000027", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87687f643abbe000027", "template_dependencies.en"=>{"$in"=>["5470b87687f643abbe00002b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3216ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe00002b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87687f643abbe00002b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87687f643abbe000027", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3638ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87687f643abbe00002c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b87687f643abbe000027", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b87687f643abbe00002d", "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87687f643abbe00002d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87687f643abbe000027", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87687f643abbe00002c"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87687f643abbe00002e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87687f643abbe000027", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87687f643abbe00002f", "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87687f643abbe00002f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b87687f643abbe000030", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b87687f643abbe00002c", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b87687f643abbe000031", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87687f643abbe000027", "_id"=>"5470b87687f643abbe00002c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87687f643abbe00002e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002c"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87687f643abbe00002c"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:18 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b87687f643abbe000032", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b87687f643abbe00002e", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87687f643abbe00002c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87687f643abbe00002e", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87687f643abbe000033"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87687f643abbe00002c", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3612ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87687f643abbe000033", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87687f643abbe00002c", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87687f643abbe00002e", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87687f643abbe00002c", "content_type_id"=>"5470b87687f643abbe00002c", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b87687f643abbe000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87687f643abbe00002c", "original_id"=>"5470b87687f643abbe000033", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6051ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b87687f643abbe000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}}} (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87687f643abbe000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3259ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87687f643abbe000034", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b87687f643abbe000027", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b87687f643abbe00002c", "original_id"=>"5470b87687f643abbe000033", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87687f643abbe000035"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87687f643abbe00002e", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3622ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}}} (0.3409ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87687f643abbe000035", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87687f643abbe00002e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87687f643abbe00002c"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b87687f643abbe000033", "_type"=>"Locomotive::ContentEntry5470b87687f643abbe00002e", "content_type_id"=>"5470b87687f643abbe00002e", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b87687f643abbe000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87687f643abbe00002e", "original_id"=>"5470b87687f643abbe000035", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87687f643abbe000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6042ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87687f643abbe000036", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b87687f643abbe000027", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87687f643abbe00002e", "original_id"=>"5470b87687f643abbe000035", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87687f643abbe000037"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87687f643abbe00002e", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4330ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}}} (0.3688ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4828ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87687f643abbe000037", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87687f643abbe00002e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87687f643abbe00002c"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87687f643abbe00002e", "content_type_id"=>"5470b87687f643abbe00002e", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b87687f643abbe000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87687f643abbe00002e", "original_id"=>"5470b87687f643abbe000037", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3831ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87687f643abbe000038", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b87687f643abbe000027", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87687f643abbe00002e", "original_id"=>"5470b87687f643abbe000037", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5531ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87687f643abbe000027", "parent_id"=>"5470b87687f643abbe000029", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000029", "site_id"=>"5470b87687f643abbe000027", "_id"=>{"$ne"=>"5470b87687f643abbe000039"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87687f643abbe000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4942ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87687f643abbe000039", "parent_ids"=>["5470b87687f643abbe000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b87687f643abbe000027", "parent_id"=>"5470b87687f643abbe000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC, "editable_elements"=>[{"_id"=>"5470b87687f643abbe00003a", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}]}] flags=[] (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87687f643abbe000027", "template_dependencies.en"=>{"$in"=>["5470b87687f643abbe000039"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000039"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3102ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87687f643abbe000039"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87687f643abbe000039", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87687f643abbe00003b", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b87687f643abbe000027", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87687f643abbe000039", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87687f643abbe000027", "parent_id"=>"5470b87687f643abbe000029", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000029", "site_id"=>"5470b87687f643abbe000027", "_id"=>{"$ne"=>"5470b87687f643abbe00003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000029", "site_id"=>"5470b87687f643abbe000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87687f643abbe000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87687f643abbe00003c", "parent_ids"=>["5470b87687f643abbe000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b87687f643abbe000027", "parent_id"=>"5470b87687f643abbe000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87687f643abbe000027", "template_dependencies.en"=>{"$in"=>["5470b87687f643abbe00003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe00003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3519ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87687f643abbe00003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87687f643abbe000027", "parent_id"=>"5470b87687f643abbe000029", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000029", "site_id"=>"5470b87687f643abbe000027", "_id"=>{"$ne"=>"5470b87687f643abbe00003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000029", "site_id"=>"5470b87687f643abbe000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87687f643abbe000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5088ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87687f643abbe00003d", "parent_ids"=>["5470b87687f643abbe000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b87687f643abbe000027", "parent_id"=>"5470b87687f643abbe000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87687f643abbe000027", "template_dependencies.en"=>{"$in"=>["5470b87687f643abbe00003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe00003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3579ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87687f643abbe00003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87687f643abbe000027", "parent_id"=>"5470b87687f643abbe000029", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000029", "site_id"=>"5470b87687f643abbe000027", "_id"=>{"$ne"=>"5470b87687f643abbe00003e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000029", "site_id"=>"5470b87687f643abbe000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87687f643abbe000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5071ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87687f643abbe00003e", "parent_ids"=>["5470b87687f643abbe000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b87687f643abbe000027", "parent_id"=>"5470b87687f643abbe000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87687f643abbe000027", "template_dependencies.en"=>{"$in"=>["5470b87687f643abbe00003e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe00003e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87687f643abbe00003e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87687f643abbe00003e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87687f643abbe000027", "locale"=>"en"}} (0.5751ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87687f643abbe000027", "locale"=>"en"}} (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87687f643abbe00003f", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b87687f643abbe000027", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87687f643abbe00003e", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87687f643abbe000027", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b87687f643abbe000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3967ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b87687f643abbe000029"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:23:18 UTC}} flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87687f643abbe000027", "template_dependencies.en"=>{"$in"=>["5470b87687f643abbe000029"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87687f643abbe000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b87687f643abbe00002a"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87687f643abbe000027", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87687f643abbe000040", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:23:15 UTC, "updated_at"=>2014-11-22 16:23:18 UTC, "memberships"=>[{"_id"=>"5470b87687f643abbe000041", "role"=>"admin", "account_id"=>"5470b87687f643abbe000026"}]}] flags=[] (0.1349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87687f643abbe000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87687f643abbe000040", "_id"=>{"$ne"=>"5470b87687f643abbe000042"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4733ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87687f643abbe000042", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87687f643abbe000040", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87687f643abbe000040", "template_dependencies.en"=>{"$in"=>["5470b87687f643abbe000042"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000042"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3042ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87687f643abbe000042"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87687f643abbe000042", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3648ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87687f643abbe000043", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87687f643abbe000040", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87687f643abbe000042", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1793ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87687f643abbe000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87687f643abbe000040", "_id"=>{"$ne"=>"5470b87687f643abbe000044"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87687f643abbe000040"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87687f643abbe000044", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87687f643abbe000040", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87687f643abbe000040", "template_dependencies.en"=>{"$in"=>["5470b87687f643abbe000044"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000044"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87687f643abbe000044"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87687f643abbe000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5143ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87687f643abbe000040", "_id"=>{"$ne"=>"5470b87687f643abbe000045"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87687f643abbe000040"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3419ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87687f643abbe000045", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b87687f643abbe000040", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87687f643abbe000040", "template_dependencies.en"=>{"$in"=>["5470b87687f643abbe000045"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87687f643abbe000045"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87687f643abbe000045"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87687f643abbe000045", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3669ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87687f643abbe000046", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b87687f643abbe000040", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87687f643abbe000045", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87687f643abbe000040", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87687f643abbe000047", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87687f643abbe000040", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87687f643abbe000048", "updated_at"=>2014-11-22 16:23:18 UTC, "created_at"=>2014-11-22 16:23:18 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87687f643abbe000048", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87787f643abbe000049"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe000047"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87687f643abbe000047", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe000047"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4177ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87787f643abbe000049", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87687f643abbe000047", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87687f643abbe000047", "content_type_id"=>"5470b87687f643abbe000047", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b87687f643abbe000040", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87687f643abbe000047", "original_id"=>"5470b87787f643abbe000049", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe00004a", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b87687f643abbe000040", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87687f643abbe000047", "original_id"=>"5470b87787f643abbe000049", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87687f643abbe000035"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87687f643abbe000037"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87687f643abbe00002c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87687f643abbe00002e"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87687f643abbe00002e"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:19 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.0918ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87687f643abbe00002e"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87687f643abbe00002c"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87687f643abbe000027", "_id"=>"5470b87687f643abbe00002c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0443ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7172ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.9420ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5214ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4199ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4449ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.3881ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3567ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1018ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2892ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b87787f643abbe00004b", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"20e12fde7daef00ed15f2b89a68a529327ad0c5b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"mChVo6gymxFP4MccACdt", "api_key"=>"9a8626327f731b2b9692957ce8bd1ac76ea00a94", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87787f643abbe00004c", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:23:15 UTC, "updated_at"=>2014-11-22 16:23:19 UTC, "memberships"=>[{"_id"=>"5470b87787f643abbe00004d", "role"=>"admin", "account_id"=>"5470b87787f643abbe00004b"}]}] flags=[] (0.1268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe00004c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3867ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe00004c", "_id"=>{"$ne"=>"5470b87787f643abbe00004e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe00004e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87787f643abbe00004c", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe00004e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00004e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe00004e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe00004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4518ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe00004f", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87787f643abbe00004c", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe00004e", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1516ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe00004c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe00004c", "_id"=>{"$ne"=>"5470b87787f643abbe000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe00004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87787f643abbe00004c", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3119ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0923ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87787f643abbe00004c", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87787f643abbe000051", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b87787f643abbe00004c", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b87787f643abbe000052", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87787f643abbe000052", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87787f643abbe00004c", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87787f643abbe000051"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4210ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87787f643abbe000053", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87787f643abbe00004c", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87787f643abbe000054", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87787f643abbe000054", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b87787f643abbe000055", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000051", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b87787f643abbe000056", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87787f643abbe00004c", "_id"=>"5470b87787f643abbe000051"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87787f643abbe000053"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000051"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1359ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87787f643abbe000051"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:19 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b87787f643abbe000057", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000053", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe000051"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000053", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87787f643abbe000058"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000051"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe000051", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000051"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87787f643abbe000058", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87787f643abbe000051", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000053", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87787f643abbe000051", "content_type_id"=>"5470b87787f643abbe000051", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b87787f643abbe00004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000051", "original_id"=>"5470b87787f643abbe000058", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5372ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b87787f643abbe000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000053"]}}} (0.4086ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87787f643abbe000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000053"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe000059", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b87787f643abbe00004c", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000051", "original_id"=>"5470b87787f643abbe000058", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87787f643abbe00005a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe000053", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000053"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000053"]}}} (0.3541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87787f643abbe00005a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87787f643abbe000053", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000051"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b87787f643abbe000058", "_type"=>"Locomotive::ContentEntry5470b87787f643abbe000053", "content_type_id"=>"5470b87787f643abbe000053", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b87787f643abbe00004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000053", "original_id"=>"5470b87787f643abbe00005a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87787f643abbe000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000053"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe00005b", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b87787f643abbe00004c", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000053", "original_id"=>"5470b87787f643abbe00005a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87787f643abbe00005c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe000053", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000053"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4187ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000053"]}}} (0.3178ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000053"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4258ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87787f643abbe00005c", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87787f643abbe000053", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000051"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87787f643abbe000053", "content_type_id"=>"5470b87787f643abbe000053", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b87787f643abbe00004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000053", "original_id"=>"5470b87787f643abbe00005c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe00005d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b87787f643abbe00004c", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000053", "original_id"=>"5470b87787f643abbe00005c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5419ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe00004c", "parent_id"=>"5470b87787f643abbe00004e", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00004e", "site_id"=>"5470b87787f643abbe00004c", "_id"=>{"$ne"=>"5470b87787f643abbe00005e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87787f643abbe00004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5019ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe00005e", "parent_ids"=>["5470b87787f643abbe00004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b87787f643abbe00004c", "parent_id"=>"5470b87787f643abbe00004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC, "editable_elements"=>[{"_id"=>"5470b87787f643abbe00005f", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}]}] flags=[] (0.2739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe00005e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00005e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe00005e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe00005e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe000060", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b87787f643abbe00004c", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe00005e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe00004c", "parent_id"=>"5470b87787f643abbe00004e", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00004e", "site_id"=>"5470b87787f643abbe00004c", "_id"=>{"$ne"=>"5470b87787f643abbe000061"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00004e", "site_id"=>"5470b87787f643abbe00004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87787f643abbe00004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000061", "parent_ids"=>["5470b87787f643abbe00004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b87787f643abbe00004c", "parent_id"=>"5470b87787f643abbe00004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.2067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000061"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000061"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2952ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000061"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe00004c", "parent_id"=>"5470b87787f643abbe00004e", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00004e", "site_id"=>"5470b87787f643abbe00004c", "_id"=>{"$ne"=>"5470b87787f643abbe000062"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00004e", "site_id"=>"5470b87787f643abbe00004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87787f643abbe00004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4952ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000062", "parent_ids"=>["5470b87787f643abbe00004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b87787f643abbe00004c", "parent_id"=>"5470b87787f643abbe00004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.2358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000062"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000062"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2906ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000062"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe00004c", "parent_id"=>"5470b87787f643abbe00004e", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00004e", "site_id"=>"5470b87787f643abbe00004c", "_id"=>{"$ne"=>"5470b87787f643abbe000063"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00004e", "site_id"=>"5470b87787f643abbe00004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87787f643abbe00004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4950ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000063", "parent_ids"=>["5470b87787f643abbe00004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b87787f643abbe00004c", "parent_id"=>"5470b87787f643abbe00004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000063"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000063"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000063"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe000063", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3469ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87787f643abbe00004c", "locale"=>"en"}} (0.5493ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87787f643abbe00004c", "locale"=>"en"}} (0.4842ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe000064", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b87787f643abbe00004c", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe000063", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1493ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5927ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b87787f643abbe00004c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6139ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b87787f643abbe00004e"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:23:19 UTC}} flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe00004e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe00004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4632ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b87787f643abbe00004f"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87787f643abbe00004c", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87787f643abbe000065", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:23:15 UTC, "updated_at"=>2014-11-22 16:23:19 UTC, "memberships"=>[{"_id"=>"5470b87787f643abbe000066", "role"=>"admin", "account_id"=>"5470b87787f643abbe00004b"}]}] flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe000065", "_id"=>{"$ne"=>"5470b87787f643abbe000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000067", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87787f643abbe000065", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000065", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3064ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe000067", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe000068", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87787f643abbe000065", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe000067", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe000065", "_id"=>{"$ne"=>"5470b87787f643abbe000069"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe000065"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4959ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000069", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87787f643abbe000065", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000065", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000069"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000069"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3119ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000069"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe000065", "_id"=>{"$ne"=>"5470b87787f643abbe00006a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe000065"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3018ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe00006a", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b87787f643abbe000065", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000065", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe00006a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00006a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2840ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe00006a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe00006a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe00006b", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b87787f643abbe000065", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe00006a", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87787f643abbe000065", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3769ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87787f643abbe00006c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87787f643abbe000065", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87787f643abbe00006d", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87787f643abbe00006d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87787f643abbe00006e"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe00006c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe00006c", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe00006c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4139ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87787f643abbe00006e", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87787f643abbe00006c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87787f643abbe00006c", "content_type_id"=>"5470b87787f643abbe00006c", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b87787f643abbe000065", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87787f643abbe00006c", "original_id"=>"5470b87787f643abbe00006e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3781ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe00006f", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b87787f643abbe000065", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87787f643abbe00006c", "original_id"=>"5470b87787f643abbe00006e", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1359ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:23:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5400ms) Rendered text template (0.0ms) Completed 200 OK in 7.0ms (Views: 1.7ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 17:23:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5963ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"findable", "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87787f643abbe00004c", "locale"=>"en"}} (0.6840ms) Rendered text template (0.0ms) Completed 200 OK in 7.6ms (Views: 0.3ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 17:23:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6552ms) Rendered text template (0.0ms) Completed 200 OK in 4.5ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:23:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) Rendered text template (0.0ms) Completed 200 OK in 4.2ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 17:23:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00004c", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5472ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"not found", "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87787f643abbe00004c", "locale"=>"en"}} (0.5071ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7212ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4773ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4928ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.3932ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.0930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b87787f643abbe000070", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"0187e4b6c10ca2970f78adef7cd7b86c25f2071d", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"pxgs4WLcAPsFNTAL8KBi", "api_key"=>"59dff3390b6f3e7f877d63464ff5e2e9dceb1648", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3178ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87787f643abbe000071", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:23:15 UTC, "updated_at"=>2014-11-22 16:23:19 UTC, "memberships"=>[{"_id"=>"5470b87787f643abbe000072", "role"=>"admin", "account_id"=>"5470b87787f643abbe000070"}]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe000071", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe000071", "_id"=>{"$ne"=>"5470b87787f643abbe000073"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000073", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87787f643abbe000071", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.3588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000073"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000073"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3138ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000073"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe000073", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe000074", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87787f643abbe000071", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe000073", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe000071", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe000071", "_id"=>{"$ne"=>"5470b87787f643abbe000075"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6683ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000075", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87787f643abbe000071", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000075"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000075"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2887ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000075"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87787f643abbe000071", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87787f643abbe000076", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b87787f643abbe000071", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b87787f643abbe000077", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87787f643abbe000077", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87787f643abbe000071", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87787f643abbe000076"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5238ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87787f643abbe000078", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87787f643abbe000071", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87787f643abbe000079", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87787f643abbe000079", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b87787f643abbe00007a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000076", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b87787f643abbe00007b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3343ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87787f643abbe000071", "_id"=>"5470b87787f643abbe000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87787f643abbe000078"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5789ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000076"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1221ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87787f643abbe000076"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:19 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b87787f643abbe00007c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000078", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1593ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe000076"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000078", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87787f643abbe00007d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000076"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe000076", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000076"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87787f643abbe00007d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87787f643abbe000076", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000078", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87787f643abbe000076", "content_type_id"=>"5470b87787f643abbe000076", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b87787f643abbe000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000076", "original_id"=>"5470b87787f643abbe00007d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b87787f643abbe00007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}}} (0.4139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87787f643abbe00007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe00007e", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b87787f643abbe000071", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000076", "original_id"=>"5470b87787f643abbe00007d", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87787f643abbe00007f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe000078", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4342ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}}} (0.2949ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87787f643abbe00007f", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87787f643abbe000078", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b87787f643abbe00007d", "_type"=>"Locomotive::ContentEntry5470b87787f643abbe000078", "content_type_id"=>"5470b87787f643abbe000078", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b87787f643abbe000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000078", "original_id"=>"5470b87787f643abbe00007f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87787f643abbe00007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe000080", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b87787f643abbe000071", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000078", "original_id"=>"5470b87787f643abbe00007f", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87787f643abbe000081"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe000078", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4318ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}}} (0.3309ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4489ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87787f643abbe000081", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87787f643abbe000078", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87787f643abbe000078", "content_type_id"=>"5470b87787f643abbe000078", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b87787f643abbe000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.2172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000078", "original_id"=>"5470b87787f643abbe000081", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe000082", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b87787f643abbe000071", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000078", "original_id"=>"5470b87787f643abbe000081", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5467ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe000071", "parent_id"=>"5470b87787f643abbe000073", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000073", "site_id"=>"5470b87787f643abbe000071", "_id"=>{"$ne"=>"5470b87787f643abbe000083"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87787f643abbe000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5472ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000083", "parent_ids"=>["5470b87787f643abbe000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b87787f643abbe000071", "parent_id"=>"5470b87787f643abbe000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC, "editable_elements"=>[{"_id"=>"5470b87787f643abbe000084", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}]}] flags=[] (0.2582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000083"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000083"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000083"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe000083", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3438ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe000085", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b87787f643abbe000071", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe000083", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe000071", "parent_id"=>"5470b87787f643abbe000073", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000073", "site_id"=>"5470b87787f643abbe000071", "_id"=>{"$ne"=>"5470b87787f643abbe000086"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000073", "site_id"=>"5470b87787f643abbe000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87787f643abbe000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5670ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000086", "parent_ids"=>["5470b87787f643abbe000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b87787f643abbe000071", "parent_id"=>"5470b87787f643abbe000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.2871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000086"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000086"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3047ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000086"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe000071", "parent_id"=>"5470b87787f643abbe000073", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000073", "site_id"=>"5470b87787f643abbe000071", "_id"=>{"$ne"=>"5470b87787f643abbe000087"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000073", "site_id"=>"5470b87787f643abbe000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87787f643abbe000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000087", "parent_ids"=>["5470b87787f643abbe000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b87787f643abbe000071", "parent_id"=>"5470b87787f643abbe000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000087"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3443ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000087"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000087"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0913ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe000071", "parent_id"=>"5470b87787f643abbe000073", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3793ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000073", "site_id"=>"5470b87787f643abbe000071", "_id"=>{"$ne"=>"5470b87787f643abbe000088"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000073", "site_id"=>"5470b87787f643abbe000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87787f643abbe000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5229ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe000088", "parent_ids"=>["5470b87787f643abbe000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b87787f643abbe000071", "parent_id"=>"5470b87787f643abbe000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000088"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe000088"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2680ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe000088"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe000088", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87787f643abbe000071", "locale"=>"en"}} (0.5219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87787f643abbe000071", "locale"=>"en"}} (0.4678ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe000089", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b87787f643abbe000071", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe000088", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b87787f643abbe000071"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b87787f643abbe000073"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:23:19 UTC}} flags=[] (0.1349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe000073"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe000073", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4551ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b87787f643abbe000074"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87787f643abbe000071", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87787f643abbe00008a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:23:15 UTC, "updated_at"=>2014-11-22 16:23:19 UTC, "memberships"=>[{"_id"=>"5470b87787f643abbe00008b", "role"=>"admin", "account_id"=>"5470b87787f643abbe000070"}]}] flags=[] (0.1400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe00008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe00008a", "_id"=>{"$ne"=>"5470b87787f643abbe00008c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe00008c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87787f643abbe00008a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00008a", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe00008c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00008c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe00008c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe00008c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3479ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe00008d", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87787f643abbe00008a", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe00008c", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe00008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4044ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe00008a", "_id"=>{"$ne"=>"5470b87787f643abbe00008e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe00008a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4663ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe00008e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87787f643abbe00008a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00008a", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe00008e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00008e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe00008e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87787f643abbe00008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe00008a", "_id"=>{"$ne"=>"5470b87787f643abbe00008f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87787f643abbe00008a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87787f643abbe00008f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b87787f643abbe00008a", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe00008a", "template_dependencies.en"=>{"$in"=>["5470b87787f643abbe00008f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87787f643abbe00008f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87787f643abbe00008f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe00008f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe000090", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b87787f643abbe00008a", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87787f643abbe00008f", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87787f643abbe00008a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3929ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87787f643abbe000091", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87787f643abbe00008a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87787f643abbe000092", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87787f643abbe000092", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87787f643abbe000093"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000091"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe000091", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000091"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3662ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87787f643abbe000093", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87787f643abbe000091", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87787f643abbe000091", "content_type_id"=>"5470b87787f643abbe000091", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b87787f643abbe00008a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:19 UTC, "created_at"=>2014-11-22 16:23:19 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000091", "original_id"=>"5470b87787f643abbe000093", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87787f643abbe000094", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b87787f643abbe00008a", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000091", "original_id"=>"5470b87787f643abbe000093", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87787f643abbe00007f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87787f643abbe000081"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87787f643abbe000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5102ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87787f643abbe000078"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:19 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.0961ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe000078"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87787f643abbe000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87787f643abbe000071", "_id"=>"5470b87787f643abbe000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7861ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:23:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7207ms) Rendered text template (0.0ms) Completed 200 OK in 5.1ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 17:23:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7002ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"stuff", "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87787f643abbe000071", "locale"=>"en"}} (0.6442ms) Rendered text template (0.0ms) Completed 200 OK in 6.2ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87787f643abbe000078"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87787f643abbe000078", "updated_at"=>{"$lt"=>2014-11-22 16:23:19 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b87787f643abbe000071"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b87787f643abbe000078"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470b87787f643abbe00007f"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:19 UTC}} flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000078", "original_id"=>"5470b87787f643abbe00007f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470b87787f643abbe00007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000076"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b87787f643abbe000076"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87787f643abbe00007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87787f643abbe000078"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b87787f643abbe000080"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b87787f643abbe000071", :content_type_slug=>"examples"}, "content"=>["Findable entry", "John Doe", "Some stuff"]}} flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b87787f643abbe000071"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470b87787f643abbe000078"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4742ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470b87787f643abbe000081"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:19 UTC}} flags=[] (0.1297ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87787f643abbe000078", "original_id"=>"5470b87787f643abbe000081", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b87787f643abbe000082"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b87787f643abbe000071", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.1290ms) Started GET "/" for 127.0.0.1 at 2014-11-22 17:23:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5360ms) Rendered text template (0.0ms) Completed 200 OK in 4.0ms (Views: 0.3ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 17:23:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87787f643abbe000071", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"stuff", "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87787f643abbe000071", "locale"=>"en"}} (0.8051ms) Rendered text template (0.0ms) Completed 200 OK in 34.5ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5968ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7522ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4511ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5167ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4270ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4818ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3932ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5519ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b87c87f643f59f000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"52c0263120b4b8f5df3d673d0477e7534c0a8507", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"gxbUXE1EDLdYbVgpythp", "api_key"=>"79472163b1a188ffde923afc423100bd490ecd8c", "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87c87f643f59f000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:23:24 UTC, "updated_at"=>2014-11-22 16:23:24 UTC, "memberships"=>[{"_id"=>"5470b87c87f643f59f000003", "role"=>"admin", "account_id"=>"5470b87c87f643f59f000001"}]}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87c87f643f59f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87c87f643f59f000002", "_id"=>{"$ne"=>"5470b87c87f643f59f000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87c87f643f59f000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87c87f643f59f000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002", "template_dependencies.en"=>{"$in"=>["5470b87c87f643f59f000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87c87f643f59f000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87c87f643f59f000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87c87f643f59f000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87c87f643f59f000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87c87f643f59f000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87c87f643f59f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87c87f643f59f000002", "_id"=>{"$ne"=>"5470b87c87f643f59f000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87c87f643f59f000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87c87f643f59f000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002", "template_dependencies.en"=>{"$in"=>["5470b87c87f643f59f000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87c87f643f59f000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87c87f643f59f000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87c87f643f59f000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b87c87f643f59f000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b87c87f643f59f000008", "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87c87f643f59f000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87c87f643f59f000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87c87f643f59f000007"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87c87f643f59f000009", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87c87f643f59f000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87c87f643f59f00000a", "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87c87f643f59f00000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b87c87f643f59f00000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b87c87f643f59f000007", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b87c87f643f59f00000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87c87f643f59f000002", "_id"=>"5470b87c87f643f59f000007"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87c87f643f59f000009"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6371ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000007"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87c87f643f59f000007"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:24 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b87c87f643f59f00000d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b87c87f643f59f000009", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87c87f643f59f000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87c87f643f59f000009", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87c87f643f59f00000e"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87c87f643f59f000007", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000007"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87c87f643f59f00000e", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87c87f643f59f000007", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87c87f643f59f000009", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000007", "content_type_id"=>"5470b87c87f643f59f000007", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b87c87f643f59f000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000007", "original_id"=>"5470b87c87f643f59f00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5403ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b87c87f643f59f00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000009"]}}} (0.4339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87c87f643f59f00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87c87f643f59f00000f", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b87c87f643f59f000002", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000007", "original_id"=>"5470b87c87f643f59f00000e", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87c87f643f59f000010"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87c87f643f59f000009", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3700ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000009"]}}} (0.3562ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87c87f643f59f000010", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87c87f643f59f000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87c87f643f59f000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b87c87f643f59f00000e", "_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000009", "content_type_id"=>"5470b87c87f643f59f000009", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b87c87f643f59f000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000009", "original_id"=>"5470b87c87f643f59f000010", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87c87f643f59f00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5257ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87c87f643f59f000011", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b87c87f643f59f000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000009", "original_id"=>"5470b87c87f643f59f000010", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87c87f643f59f000012"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87c87f643f59f000009", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4227ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000009"]}}} (0.3181ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000009"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87c87f643f59f000012", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87c87f643f59f000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87c87f643f59f000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000009", "content_type_id"=>"5470b87c87f643f59f000009", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b87c87f643f59f000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.1812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000009", "original_id"=>"5470b87c87f643f59f000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87c87f643f59f000013", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b87c87f643f59f000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000009", "original_id"=>"5470b87c87f643f59f000012", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5498ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87c87f643f59f000002", "parent_id"=>"5470b87c87f643f59f000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000004", "site_id"=>"5470b87c87f643f59f000002", "_id"=>{"$ne"=>"5470b87c87f643f59f000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4737ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87c87f643f59f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5472ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87c87f643f59f000014", "parent_ids"=>["5470b87c87f643f59f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b87c87f643f59f000002", "parent_id"=>"5470b87c87f643f59f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC, "editable_elements"=>[{"_id"=>"5470b87c87f643f59f000015", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}]}] flags=[] (0.2480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002", "template_dependencies.en"=>{"$in"=>["5470b87c87f643f59f000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2918ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87c87f643f59f000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87c87f643f59f000014", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2837ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87c87f643f59f000016", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b87c87f643f59f000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87c87f643f59f000014", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87c87f643f59f000002", "parent_id"=>"5470b87c87f643f59f000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3557ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000004", "site_id"=>"5470b87c87f643f59f000002", "_id"=>{"$ne"=>"5470b87c87f643f59f000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000004", "site_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87c87f643f59f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87c87f643f59f000017", "parent_ids"=>["5470b87c87f643f59f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b87c87f643f59f000002", "parent_id"=>"5470b87c87f643f59f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002", "template_dependencies.en"=>{"$in"=>["5470b87c87f643f59f000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2902ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87c87f643f59f000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87c87f643f59f000002", "parent_id"=>"5470b87c87f643f59f000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000004", "site_id"=>"5470b87c87f643f59f000002", "_id"=>{"$ne"=>"5470b87c87f643f59f000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000004", "site_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87c87f643f59f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5100ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87c87f643f59f000018", "parent_ids"=>["5470b87c87f643f59f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b87c87f643f59f000002", "parent_id"=>"5470b87c87f643f59f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002", "template_dependencies.en"=>{"$in"=>["5470b87c87f643f59f000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2759ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87c87f643f59f000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87c87f643f59f000002", "parent_id"=>"5470b87c87f643f59f000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000004", "site_id"=>"5470b87c87f643f59f000002", "_id"=>{"$ne"=>"5470b87c87f643f59f000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000004", "site_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87c87f643f59f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5093ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87c87f643f59f000019", "parent_ids"=>["5470b87c87f643f59f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b87c87f643f59f000002", "parent_id"=>"5470b87c87f643f59f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002", "template_dependencies.en"=>{"$in"=>["5470b87c87f643f59f000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2940ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87c87f643f59f000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87c87f643f59f000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87c87f643f59f000002", "locale"=>"en"}} (0.5472ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87c87f643f59f000002", "locale"=>"en"}} (0.4742ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87c87f643f59f00001a", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b87c87f643f59f000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87c87f643f59f000019", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3419ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b87c87f643f59f000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:23:24 UTC}} flags=[] (0.1240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002", "template_dependencies.en"=>{"$in"=>["5470b87c87f643f59f000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87c87f643f59f000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b87c87f643f59f000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87c87f643f59f000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87c87f643f59f00001b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:23:24 UTC, "updated_at"=>2014-11-22 16:23:24 UTC, "memberships"=>[{"_id"=>"5470b87c87f643f59f00001c", "role"=>"admin", "account_id"=>"5470b87c87f643f59f000001"}]}] flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87c87f643f59f00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87c87f643f59f00001b", "_id"=>{"$ne"=>"5470b87c87f643f59f00001d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87c87f643f59f00001d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87c87f643f59f00001b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f00001b", "template_dependencies.en"=>{"$in"=>["5470b87c87f643f59f00001d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f00001d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3240ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87c87f643f59f00001d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87c87f643f59f00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87c87f643f59f00001e", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87c87f643f59f00001b", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87c87f643f59f00001d", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87c87f643f59f00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87c87f643f59f00001b", "_id"=>{"$ne"=>"5470b87c87f643f59f00001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87c87f643f59f00001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87c87f643f59f00001f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87c87f643f59f00001b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f00001b", "template_dependencies.en"=>{"$in"=>["5470b87c87f643f59f00001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2918ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87c87f643f59f00001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87c87f643f59f00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87c87f643f59f00001b", "_id"=>{"$ne"=>"5470b87c87f643f59f000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87c87f643f59f00001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87c87f643f59f000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b87c87f643f59f00001b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.1502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f00001b", "template_dependencies.en"=>{"$in"=>["5470b87c87f643f59f000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87c87f643f59f000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2751ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87c87f643f59f000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87c87f643f59f000020", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87c87f643f59f000021", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b87c87f643f59f00001b", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87c87f643f59f000020", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87c87f643f59f00001b", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87c87f643f59f000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87c87f643f59f00001b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87c87f643f59f000023", "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87c87f643f59f000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87c87f643f59f000024"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87c87f643f59f000022", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87c87f643f59f000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3824ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87c87f643f59f000024", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87c87f643f59f000022", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000022", "content_type_id"=>"5470b87c87f643f59f000022", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b87c87f643f59f00001b", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:24 UTC, "created_at"=>2014-11-22 16:23:24 UTC}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000022", "original_id"=>"5470b87c87f643f59f000024", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3791ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87c87f643f59f000025", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b87c87f643f59f00001b", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87c87f643f59f000022", "original_id"=>"5470b87c87f643f59f000024", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1574ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 17:23:25 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b87c87f643f59f000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5209ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.9ms) Completed 200 OK in 35.2ms (Views: 29.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 17:23:25 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (7ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 17:23:25 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (9ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 17:23:25 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 17:23:25 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b87c87f643f59f000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4818ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b87c87f643f59f000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 16:23:25 UTC, "updated_at"=>2014-11-22 16:23:25 UTC}} flags=[] (0.1321ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b87c87f643f59f000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 16:23:26 UTC, "current_sign_in_at"=>2014-11-22 16:23:26 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 16:23:26 UTC}} flags=[] (0.1330ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 17.8ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:23:26 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b87c87f643f59f000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b87c87f643f59f000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.6813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3480ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4591972847628] (0.1020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87c87f643f59f000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6447ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87c87f643f59f000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7257ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (26.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (9.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (48.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b87c87f643f59f000001", :role=>:admin}}}} (0.6127ms) Rendered locomotive/shared/_main_app_head.html.haml (1.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (12.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b87c87f643f59f000001"}} (0.6220ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (3.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b87c87f643f59f000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6371ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (4.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.4ms) Rendered locomotive/shared/_main_app_header.html.haml (6.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (31.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.4ms) Completed 200 OK in 130.1ms (Views: 113.4ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 17:23:26 +0100 Served asset /locomotive.css - 200 OK (39ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 17:23:26 +0100 Served asset /locomotive.js - 200 OK (108ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 17:23:26 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 17:23:26 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 17:23:26 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 17:23:26 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 17:23:26 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2014-11-22 17:23:26 +0100 Processing by Locomotive::ContentTypesController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b87c87f643f59f000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b87c87f643f59f000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.4627ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4591825149001] (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.6459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87c87f643f59f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4916ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87c87f643f59f000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87c87f643f59f000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6719ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (16.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87c87f643f59f000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0262ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (3.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/custom_fields/_select_templates.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/custom_fields/_form.html.haml (53.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87c87f643f59f000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9060ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_types/_form.html.haml (74.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_form_actions.html.haml (2.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (99.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b87c87f643f59f000001", :role=>:admin}}}} (0.6781ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (5.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b87c87f643f59f000001"}} (0.4382ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b87c87f643f59f000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7050ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (7.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.1ms) Completed 200 OK in 129.9ms (Views: 118.5ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2014-11-22 17:23:26 +0100 Served asset /locomotive/form/input-sep.png - 200 OK (1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6311ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.1288ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.0281ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0760ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6509ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470b87e87f643f59f000027", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"339d5e1e0f5fcfb2070070133d584a124ab8fc19", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"72mzvtZWdqdni4eMMTuu", "api_key"=>"ac7c1430f8cfdd698ab34ceafafb85598b6145b3", "updated_at"=>2014-11-22 16:23:26 UTC, "created_at"=>2014-11-22 16:23:26 UTC}] flags=[] (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5991ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87e87f643f59f000028", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 16:23:24 UTC, "updated_at"=>2014-11-22 16:23:26 UTC, "memberships"=>[{"_id"=>"5470b87e87f643f59f000029", "role"=>"admin", "account_id"=>"5470b87e87f643f59f000027"}]}] flags=[] (0.1538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87e87f643f59f000028", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4747ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87e87f643f59f000028", "_id"=>{"$ne"=>"5470b87e87f643f59f00002a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3078ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87e87f643f59f00002a", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87e87f643f59f000028", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:26 UTC, "created_at"=>2014-11-22 16:23:26 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028", "template_dependencies.en"=>{"$in"=>["5470b87e87f643f59f00002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87e87f643f59f00002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2942ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87e87f643f59f00002a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87e87f643f59f00002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87e87f643f59f00002b", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87e87f643f59f000028", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87e87f643f59f00002a", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87e87f643f59f000028", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87e87f643f59f000028", "_id"=>{"$ne"=>"5470b87e87f643f59f00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87e87f643f59f00002c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87e87f643f59f000028", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:26 UTC, "created_at"=>2014-11-22 16:23:26 UTC}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028", "template_dependencies.en"=>{"$in"=>["5470b87e87f643f59f00002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87e87f643f59f00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2890ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87e87f643f59f00002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87e87f643f59f000028", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87f87f643f59f00002d", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470b87e87f643f59f000028", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470b87f87f643f59f00002e", "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87f87f643f59f00002e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87e87f643f59f000028", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87f87f643f59f00002d"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87f87f643f59f00002f", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87e87f643f59f000028", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87f87f643f59f000030", "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87f87f643f59f000030", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470b87f87f643f59f000031", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470b87f87f643f59f00002d", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470b87f87f643f59f000032", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2737ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87e87f643f59f000028", "_id"=>"5470b87f87f643f59f00002d"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7827ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87f87f643f59f00002f"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5679ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002d"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1180ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470b87f87f643f59f00002d"} update={"$set"=>{"updated_at"=>2014-11-22 16:23:27 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470b87f87f643f59f000033", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470b87f87f643f59f00002f", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87f87f643f59f00002d"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87f87f643f59f00002f", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87f87f643f59f000034"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002d"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87f87f643f59f00002d", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002d"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87f87f643f59f000034", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87f87f643f59f00002d", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87f87f643f59f00002f", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87f87f643f59f00002d", "content_type_id"=>"5470b87f87f643f59f00002d", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470b87e87f643f59f000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87f87f643f59f00002d", "original_id"=>"5470b87f87f643f59f000034", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470b87f87f643f59f000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002f"]}}} (0.4048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87f87f643f59f000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002f"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87f87f643f59f000035", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470b87e87f643f59f000028", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470b87f87f643f59f00002d", "original_id"=>"5470b87f87f643f59f000034", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87f87f643f59f000036"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002f"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87f87f643f59f00002f", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002f"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3760ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002f"]}}} (0.3369ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87f87f643f59f000036", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87f87f643f59f00002f", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87f87f643f59f00002d"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470b87f87f643f59f000034", "_type"=>"Locomotive::ContentEntry5470b87f87f643f59f00002f", "content_type_id"=>"5470b87f87f643f59f00002f", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470b87e87f643f59f000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87f87f643f59f00002f", "original_id"=>"5470b87f87f643f59f000036", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470b87f87f643f59f000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002f"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87f87f643f59f000037", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470b87e87f643f59f000028", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87f87f643f59f00002f", "original_id"=>"5470b87f87f643f59f000036", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87f87f643f59f000038"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002f"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87f87f643f59f00002f", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002f"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002f"]}}} (0.3097ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f00002f"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87f87f643f59f000038", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87f87f643f59f00002f", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470b87f87f643f59f00002d"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87f87f643f59f00002f", "content_type_id"=>"5470b87f87f643f59f00002f", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470b87e87f643f59f000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87f87f643f59f00002f", "original_id"=>"5470b87f87f643f59f000038", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87f87f643f59f000039", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470b87e87f643f59f000028", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87f87f643f59f00002f", "original_id"=>"5470b87f87f643f59f000038", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5832ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87e87f643f59f000028", "parent_id"=>"5470b87e87f643f59f00002a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87e87f643f59f00002a", "site_id"=>"5470b87e87f643f59f000028", "_id"=>{"$ne"=>"5470b87f87f643f59f00003a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87e87f643f59f00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87f87f643f59f00003a", "parent_ids"=>["5470b87e87f643f59f00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470b87e87f643f59f000028", "parent_id"=>"5470b87e87f643f59f00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC, "editable_elements"=>[{"_id"=>"5470b87f87f643f59f00003b", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC}]}] flags=[] (0.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028", "template_dependencies.en"=>{"$in"=>["5470b87f87f643f59f00003a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87f87f643f59f00003a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87f87f643f59f00003a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87f87f643f59f00003a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3428ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87f87f643f59f00003c", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470b87e87f643f59f000028", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87f87f643f59f00003a", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87e87f643f59f000028", "parent_id"=>"5470b87e87f643f59f00002a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87e87f643f59f00002a", "site_id"=>"5470b87e87f643f59f000028", "_id"=>{"$ne"=>"5470b87f87f643f59f00003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87e87f643f59f00002a", "site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87e87f643f59f00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87f87f643f59f00003d", "parent_ids"=>["5470b87e87f643f59f00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470b87e87f643f59f000028", "parent_id"=>"5470b87e87f643f59f00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC}] flags=[] (0.2649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028", "template_dependencies.en"=>{"$in"=>["5470b87f87f643f59f00003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87f87f643f59f00003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87f87f643f59f00003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87e87f643f59f000028", "parent_id"=>"5470b87e87f643f59f00002a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87e87f643f59f00002a", "site_id"=>"5470b87e87f643f59f000028", "_id"=>{"$ne"=>"5470b87f87f643f59f00003e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87e87f643f59f00002a", "site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87e87f643f59f00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87f87f643f59f00003e", "parent_ids"=>["5470b87e87f643f59f00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470b87e87f643f59f000028", "parent_id"=>"5470b87e87f643f59f00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC}] flags=[] (0.2408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028", "template_dependencies.en"=>{"$in"=>["5470b87f87f643f59f00003e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87f87f643f59f00003e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2854ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87f87f643f59f00003e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0927ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87e87f643f59f000028", "parent_id"=>"5470b87e87f643f59f00002a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87e87f643f59f00002a", "site_id"=>"5470b87e87f643f59f000028", "_id"=>{"$ne"=>"5470b87f87f643f59f00003f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87e87f643f59f00002a", "site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470b87e87f643f59f00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4861ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87f87f643f59f00003f", "parent_ids"=>["5470b87e87f643f59f00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470b87e87f643f59f000028", "parent_id"=>"5470b87e87f643f59f00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC}] flags=[] (0.2389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028", "template_dependencies.en"=>{"$in"=>["5470b87f87f643f59f00003f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87f87f643f59f00003f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87f87f643f59f00003f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87f87f643f59f00003f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87e87f643f59f000028", "locale"=>"en"}} (0.5341ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470b87e87f643f59f000028", "locale"=>"en"}} (0.4768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87f87f643f59f000040", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470b87e87f643f59f000028", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87f87f643f59f00003f", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3562ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470b87e87f643f59f00002a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 16:23:27 UTC}} flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028", "template_dependencies.en"=>{"$in"=>["5470b87e87f643f59f00002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87e87f643f59f00002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470b87e87f643f59f00002b"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87e87f643f59f000028", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470b87f87f643f59f000041", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 16:23:24 UTC, "updated_at"=>2014-11-22 16:23:27 UTC, "memberships"=>[{"_id"=>"5470b87f87f643f59f000042", "role"=>"admin", "account_id"=>"5470b87e87f643f59f000027"}]}] flags=[] (0.1302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87f87f643f59f000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87f87f643f59f000041", "_id"=>{"$ne"=>"5470b87f87f643f59f000043"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87f87f643f59f000043", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470b87f87f643f59f000041", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87f87f643f59f000041", "template_dependencies.en"=>{"$in"=>["5470b87f87f643f59f000043"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87f87f643f59f000043"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3028ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87f87f643f59f000043"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87f87f643f59f000043", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87f87f643f59f000044", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470b87f87f643f59f000041", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87f87f643f59f000043", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87f87f643f59f000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87f87f643f59f000041", "_id"=>{"$ne"=>"5470b87f87f643f59f000045"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87f87f643f59f000041"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87f87f643f59f000045", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470b87f87f643f59f000041", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87f87f643f59f000041", "template_dependencies.en"=>{"$in"=>["5470b87f87f643f59f000045"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87f87f643f59f000045"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87f87f643f59f000045"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470b87f87f643f59f000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87f87f643f59f000041", "_id"=>{"$ne"=>"5470b87f87f643f59f000046"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470b87f87f643f59f000041"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4807ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3242ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470b87f87f643f59f000046", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470b87f87f643f59f000041", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87f87f643f59f000041", "template_dependencies.en"=>{"$in"=>["5470b87f87f643f59f000046"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470b87f87f643f59f000046"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3207ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470b87f87f643f59f000046"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470b87f87f643f59f000046", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3653ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87f87f643f59f000047", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470b87f87f643f59f000041", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470b87f87f643f59f000046", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87f87f643f59f000041", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470b87f87f643f59f000048", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470b87f87f643f59f000041", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470b87f87f643f59f000049", "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC, "entries_custom_fields"=>[{"_id"=>"5470b87f87f643f59f000049", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470b87f87f643f59f00004a"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f000048"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470b87f87f643f59f000048", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470b87f87f643f59f000048"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3667ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470b87f87f643f59f00004a", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470b87f87f643f59f000048", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470b87f87f643f59f000048", "content_type_id"=>"5470b87f87f643f59f000048", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470b87f87f643f59f000041", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 16:23:27 UTC, "created_at"=>2014-11-22 16:23:27 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470b87f87f643f59f000048", "original_id"=>"5470b87f87f643f59f00004a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3781ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470b87f87f643f59f00004b", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470b87f87f643f59f000041", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470b87f87f643f59f000048", "original_id"=>"5470b87f87f643f59f00004a", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1311ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 17:23:27 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b87e87f643f59f000027"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5369ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (3.8ms) Completed 200 OK in 8.3ms (Views: 5.2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 17:23:27 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5877ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470b87e87f643f59f000027"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3791ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b87e87f643f59f000027"} update={"$set"=>{"remember_created_at"=>2014-11-22 16:23:27 UTC, "updated_at"=>2014-11-22 16:23:27 UTC}} flags=[] (0.0970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470b87e87f643f59f000027"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 16:23:27 UTC, "current_sign_in_at"=>2014-11-22 16:23:27 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 16:23:27 UTC}} flags=[] (0.1099ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 6.4ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 17:23:27 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b87e87f643f59f000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b87e87f643f59f000027"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.0571ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4617466095855] (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.6611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87f87f643f59f00002d"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87f87f643f59f00002f"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6568ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (13.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (20.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b87e87f643f59f000027", :role=>:admin}}}} (0.5050ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b87e87f643f59f000027"}} (0.4323ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b87e87f643f59f000027"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4752ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (6.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 47.7ms (Views: 33.9ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2014-11-22 17:23:27 +0100 Processing by Locomotive::PagesController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470b87e87f643f59f000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470b87e87f643f59f000027"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3950ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4617872040634] (0.0901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87f87f643f59f00002d"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470b87f87f643f59f00002f"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7081ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (15.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_assets/_picker.html.haml (6.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/theme_assets/_picker.html.haml (3.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_editable_elements.html.haml (5.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470b87e87f643f59f000028"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470b87e87f643f59f000028"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0118ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_form.html.haml (87.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_form_actions.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (111.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470b87e87f643f59f000027", :role=>:admin}}}} (0.5369ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (5.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470b87e87f643f59f000027"}} (0.4506ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470b87e87f643f59f000027"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (6.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 144.4ms (Views: 131.4ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2014-11-22 17:23:27 +0100 Served asset /locomotive/jquery/images/ui-icons_222222_256x240.png - 200 OK (2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5631ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7670ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4690ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4740ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4570ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4900ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.8721ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6001ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c46487f643acf9000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"aa7a5992cd13c9ff8f280e04a237b0e44db2aa7b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"SXq455LvjthXpsdmY8pg", "api_key"=>"51336312a32db7c70592fb57b7fbf26478e6cb77", "updated_at"=>2014-11-22 17:14:12 UTC, "created_at"=>2014-11-22 17:14:12 UTC}] flags=[] (0.1440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c46487f643acf9000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:14:11 UTC, "updated_at"=>2014-11-22 17:14:12 UTC, "memberships"=>[{"_id"=>"5470c46487f643acf9000003", "role"=>"admin", "account_id"=>"5470c46487f643acf9000001"}]}] flags=[] (0.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46487f643acf9000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c46487f643acf9000002", "_id"=>{"$ne"=>"5470c46487f643acf9000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3002ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c46487f643acf9000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c46487f643acf9000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:12 UTC, "created_at"=>2014-11-22 17:14:12 UTC}] flags=[] (0.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46487f643acf9000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002", "template_dependencies.en"=>{"$in"=>["5470c46487f643acf9000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4301ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c46487f643acf9000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46487f643acf9000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c46487f643acf9000002", "_id"=>{"$ne"=>"5470c46587f643acf9000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5260ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c46587f643acf9000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c46487f643acf9000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:13 UTC, "created_at"=>2014-11-22 17:14:13 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002", "template_dependencies.en"=>{"$in"=>["5470c46587f643acf9000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46587f643acf9000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c46587f643acf9000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c46487f643acf9000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3681ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c46587f643acf9000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c46487f643acf9000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c46587f643acf9000007", "updated_at"=>2014-11-22 17:14:13 UTC, "created_at"=>2014-11-22 17:14:13 UTC, "entries_custom_fields"=>[{"_id"=>"5470c46587f643acf9000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c46487f643acf9000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c46587f643acf9000006"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4840ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c46587f643acf9000008", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c46487f643acf9000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c46587f643acf9000009", "updated_at"=>2014-11-22 17:14:13 UTC, "created_at"=>2014-11-22 17:14:13 UTC, "entries_custom_fields"=>[{"_id"=>"5470c46587f643acf9000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c46587f643acf900000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c46587f643acf9000006", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c46587f643acf900000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c46487f643acf9000002", "_id"=>"5470c46587f643acf9000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c46587f643acf9000008"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5572ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46587f643acf9000006"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1221ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c46587f643acf9000006"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:13 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c46587f643acf900000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c46587f643acf9000008", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c46587f643acf9000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c46587f643acf9000008", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1233ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c46587f643acf900000d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46587f643acf9000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c46587f643acf9000006", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46587f643acf9000006"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c46587f643acf900000d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c46587f643acf9000006", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c46587f643acf9000008", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c46587f643acf9000006", "content_type_id"=>"5470c46587f643acf9000006", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c46487f643acf9000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:14:13 UTC, "created_at"=>2014-11-22 17:14:13 UTC}] flags=[] (0.2267ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c46587f643acf900000d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46587f643acf9000008"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4737ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c46587f643acf900000e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46587f643acf9000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c46587f643acf9000008", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46587f643acf9000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.6480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46587f643acf9000008"]}}} (0.3312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c46587f643acf900000e", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c46587f643acf9000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c46587f643acf9000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c46587f643acf900000d", "_type"=>"Locomotive::ContentEntry5470c46587f643acf9000008", "content_type_id"=>"5470c46587f643acf9000008", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c46487f643acf9000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:13 UTC, "created_at"=>2014-11-22 17:14:13 UTC}] flags=[] (0.2458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c46687f643acf900000f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46587f643acf9000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c46587f643acf9000008", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46587f643acf9000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (1.0331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46587f643acf9000008"]}}} (0.5608ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46587f643acf9000008"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.7708ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c46687f643acf900000f", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c46587f643acf9000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c46587f643acf9000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c46587f643acf9000008", "content_type_id"=>"5470c46587f643acf9000008", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c46487f643acf9000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:14 UTC, "created_at"=>2014-11-22 17:14:14 UTC}] flags=[] (0.2832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7710ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46487f643acf9000002", "parent_id"=>"5470c46487f643acf9000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46487f643acf9000004", "site_id"=>"5470c46487f643acf9000002", "_id"=>{"$ne"=>"5470c46687f643acf9000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c46487f643acf9000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6661ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c46687f643acf9000010", "parent_ids"=>["5470c46487f643acf9000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c46487f643acf9000002", "parent_id"=>"5470c46487f643acf9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:14 UTC, "created_at"=>2014-11-22 17:14:14 UTC, "editable_elements"=>[{"_id"=>"5470c46687f643acf9000011", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:14:14 UTC, "created_at"=>2014-11-22 17:14:14 UTC}]}] flags=[] (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002", "template_dependencies.en"=>{"$in"=>["5470c46687f643acf9000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4377ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46687f643acf9000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5071ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c46687f643acf9000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46487f643acf9000002", "parent_id"=>"5470c46487f643acf9000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46487f643acf9000004", "site_id"=>"5470c46487f643acf9000002", "_id"=>{"$ne"=>"5470c46787f643acf9000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46487f643acf9000004", "site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6154ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c46487f643acf9000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c46787f643acf9000012", "parent_ids"=>["5470c46487f643acf9000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c46487f643acf9000002", "parent_id"=>"5470c46487f643acf9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:15 UTC, "created_at"=>2014-11-22 17:14:15 UTC}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002", "template_dependencies.en"=>{"$in"=>["5470c46787f643acf9000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46787f643acf9000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2961ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c46787f643acf9000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0913ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46487f643acf9000002", "parent_id"=>"5470c46487f643acf9000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46487f643acf9000004", "site_id"=>"5470c46487f643acf9000002", "_id"=>{"$ne"=>"5470c46787f643acf9000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46487f643acf9000004", "site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c46487f643acf9000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5713ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c46787f643acf9000013", "parent_ids"=>["5470c46487f643acf9000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c46487f643acf9000002", "parent_id"=>"5470c46487f643acf9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:15 UTC, "created_at"=>2014-11-22 17:14:15 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002", "template_dependencies.en"=>{"$in"=>["5470c46787f643acf9000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46787f643acf9000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c46787f643acf9000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46487f643acf9000002", "parent_id"=>"5470c46487f643acf9000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46487f643acf9000004", "site_id"=>"5470c46487f643acf9000002", "_id"=>{"$ne"=>"5470c46787f643acf9000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46487f643acf9000004", "site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c46487f643acf9000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5398ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c46787f643acf9000014", "parent_ids"=>["5470c46487f643acf9000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c46487f643acf9000002", "parent_id"=>"5470c46487f643acf9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:15 UTC, "created_at"=>2014-11-22 17:14:15 UTC}] flags=[] (0.3037ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002", "template_dependencies.en"=>{"$in"=>["5470c46787f643acf9000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3598ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46787f643acf9000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3452ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c46787f643acf9000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c46487f643acf9000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:14:16 UTC}} flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002", "template_dependencies.en"=>{"$in"=>["5470c46487f643acf9000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3986ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c46987f643acf9000015", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:14:11 UTC, "updated_at"=>2014-11-22 17:14:17 UTC, "memberships"=>[{"_id"=>"5470c46987f643acf9000016", "role"=>"admin", "account_id"=>"5470c46487f643acf9000001"}]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46987f643acf9000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c46987f643acf9000015", "_id"=>{"$ne"=>"5470c46987f643acf9000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5717ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c46987f643acf9000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c46987f643acf9000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:17 UTC, "created_at"=>2014-11-22 17:14:17 UTC}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46987f643acf9000015", "template_dependencies.en"=>{"$in"=>["5470c46987f643acf9000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46987f643acf9000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c46987f643acf9000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46987f643acf9000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7586ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c46987f643acf9000015", "_id"=>{"$ne"=>"5470c46987f643acf9000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c46987f643acf9000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6089ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c46987f643acf9000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c46987f643acf9000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:17 UTC, "created_at"=>2014-11-22 17:14:17 UTC}] flags=[] (0.2649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46987f643acf9000015", "template_dependencies.en"=>{"$in"=>["5470c46987f643acf9000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46987f643acf9000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6640ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c46987f643acf9000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46987f643acf9000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c46987f643acf9000015", "_id"=>{"$ne"=>"5470c46987f643acf9000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.0778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c46987f643acf9000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c46987f643acf9000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c46987f643acf9000015", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:17 UTC, "created_at"=>2014-11-22 17:14:17 UTC}] flags=[] (0.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46987f643acf9000015", "template_dependencies.en"=>{"$in"=>["5470c46987f643acf9000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46987f643acf9000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4570ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c46987f643acf9000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c46987f643acf9000015", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c46a87f643acf900001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c46987f643acf9000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c46a87f643acf900001b", "updated_at"=>2014-11-22 17:14:18 UTC, "created_at"=>2014-11-22 17:14:18 UTC, "entries_custom_fields"=>[{"_id"=>"5470c46a87f643acf900001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c46a87f643acf900001c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46a87f643acf900001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c46a87f643acf900001a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46a87f643acf900001a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (1.0870ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c46a87f643acf900001c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c46a87f643acf900001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c46a87f643acf900001a", "content_type_id"=>"5470c46a87f643acf900001a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c46987f643acf9000015", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:18 UTC, "created_at"=>2014-11-22 17:14:18 UTC}] flags=[] (1.1351ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 18:14:20 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.2412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c46487f643acf9000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5291ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (18.0ms) Completed 200 OK in 41.6ms (Views: 33.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 18:14:20 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (11ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 18:14:20 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (21ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 18:14:20 +0100 Served asset /locomotive/background/body.png - 200 OK (3ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 18:14:20 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (4.0741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c46487f643acf9000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8669ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c46487f643acf9000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 17:14:20 UTC, "updated_at"=>2014-11-22 17:14:20 UTC}} flags=[] (0.4051ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c46487f643acf9000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 17:14:20 UTC, "current_sign_in_at"=>2014-11-22 17:14:20 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 17:14:20 UTC}} flags=[] (0.2341ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 41.2ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:14:20 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c46487f643acf9000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c46487f643acf9000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.8680ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4640462215326] (0.1011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c46587f643acf9000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c46587f643acf9000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.7507ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (37.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (4.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (11.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (61.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c46487f643acf9000001", :role=>:admin}}}} (0.4568ms) Rendered locomotive/shared/_main_app_head.html.haml (1.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (13.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c46487f643acf9000001"}} (0.4942ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c46487f643acf9000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9580ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (4.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.7ms) Rendered locomotive/shared/_main_app_header.html.haml (6.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (28.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (3.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 145.3ms (Views: 125.6ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 18:14:20 +0100 Served asset /locomotive.js - 200 OK (106ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 18:14:20 +0100 Served asset /locomotive.css - 200 OK (32ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 18:14:20 +0100 Served asset /locomotive/search_bar.js - 200 OK (4ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 18:14:20 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 18:14:20 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 18:14:21 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 18:14:21 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:14:21 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c46487f643acf9000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c46487f643acf9000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1101ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4639804644901] (0.1168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c46487f643acf9000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c46587f643acf9000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c46587f643acf9000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7460ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (15.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (6.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c46487f643acf9000001", :role=>:admin}}}} (0.5441ms) Rendered locomotive/shared/_main_app_head.html.haml (1.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (6.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c46487f643acf9000001"}} (0.4017ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c46487f643acf9000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5388ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (9.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 61.9ms (Views: 45.6ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 18:14:21 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c46487f643acf9000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c46487f643acf9000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4020ms) Completed 200 OK in 448.4ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6001ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8191ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.8063ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7722ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.3242ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.4510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c46f87f643acf900001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b162fc510a51893cd436bb6c12a82730fa6fd19b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"sv7zozNoAqA7LXjefcyb", "api_key"=>"9296c5c2a3927f587c7f170ff57141a5c558f1a2", "updated_at"=>2014-11-22 17:14:23 UTC, "created_at"=>2014-11-22 17:14:23 UTC}] flags=[] (0.7410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c46f87f643acf900001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:14:11 UTC, "updated_at"=>2014-11-22 17:14:23 UTC, "memberships"=>[{"_id"=>"5470c46f87f643acf900001f", "role"=>"admin", "account_id"=>"5470c46f87f643acf900001d"}]}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46f87f643acf900001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c46f87f643acf900001e", "_id"=>{"$ne"=>"5470c46f87f643acf9000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c46f87f643acf9000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c46f87f643acf900001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:23 UTC, "created_at"=>2014-11-22 17:14:23 UTC}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "template_dependencies.en"=>{"$in"=>["5470c46f87f643acf9000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46f87f643acf9000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3290ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c46f87f643acf9000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46f87f643acf900001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c46f87f643acf900001e", "_id"=>{"$ne"=>"5470c46f87f643acf9000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c46f87f643acf900001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5722ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c46f87f643acf9000021", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c46f87f643acf900001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:23 UTC, "created_at"=>2014-11-22 17:14:23 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "template_dependencies.en"=>{"$in"=>["5470c46f87f643acf9000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46f87f643acf9000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c46f87f643acf9000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c46f87f643acf900001e", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6931ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c46f87f643acf9000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c46f87f643acf900001e", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c46f87f643acf9000023", "updated_at"=>2014-11-22 17:14:23 UTC, "created_at"=>2014-11-22 17:14:23 UTC, "entries_custom_fields"=>[{"_id"=>"5470c46f87f643acf9000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c46f87f643acf900001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c46f87f643acf9000022"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4683ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c46f87f643acf9000024", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c46f87f643acf900001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c46f87f643acf9000025", "updated_at"=>2014-11-22 17:14:23 UTC, "created_at"=>2014-11-22 17:14:23 UTC, "entries_custom_fields"=>[{"_id"=>"5470c46f87f643acf9000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c46f87f643acf9000026", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c46f87f643acf9000022", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c46f87f643acf9000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c46f87f643acf900001e", "_id"=>"5470c46f87f643acf9000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c46f87f643acf9000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5670ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000022"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1860ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c46f87f643acf9000022"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:23 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c46f87f643acf9000028", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c46f87f643acf9000024", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c46f87f643acf9000022"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c46f87f643acf9000024", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c46f87f643acf9000029"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c46f87f643acf9000022", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c46f87f643acf9000029", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c46f87f643acf9000022", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c46f87f643acf9000024", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c46f87f643acf9000022", "content_type_id"=>"5470c46f87f643acf9000022", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c46f87f643acf900001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:14:23 UTC, "created_at"=>2014-11-22 17:14:23 UTC}] flags=[] (0.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c46f87f643acf9000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47087f643acf900002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c46f87f643acf9000024", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5920ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}}} (0.4258ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c47087f643acf900002a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c46f87f643acf9000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c46f87f643acf9000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c46f87f643acf9000029", "_type"=>"Locomotive::ContentEntry5470c46f87f643acf9000024", "content_type_id"=>"5470c46f87f643acf9000024", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c46f87f643acf900001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:24 UTC, "created_at"=>2014-11-22 17:14:24 UTC}] flags=[] (0.4351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47087f643acf900002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c46f87f643acf9000024", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4690ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}}} (0.3572ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c47087f643acf900002b", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c46f87f643acf9000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c46f87f643acf9000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c46f87f643acf9000024", "content_type_id"=>"5470c46f87f643acf9000024", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c46f87f643acf900001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:24 UTC, "created_at"=>2014-11-22 17:14:24 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6101ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46f87f643acf900001e", "parent_id"=>"5470c46f87f643acf9000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46f87f643acf9000020", "site_id"=>"5470c46f87f643acf900001e", "_id"=>{"$ne"=>"5470c47187f643acf900002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c46f87f643acf9000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47187f643acf900002c", "parent_ids"=>["5470c46f87f643acf9000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c46f87f643acf900001e", "parent_id"=>"5470c46f87f643acf9000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:25 UTC, "created_at"=>2014-11-22 17:14:25 UTC, "editable_elements"=>[{"_id"=>"5470c47187f643acf900002d", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:14:25 UTC, "created_at"=>2014-11-22 17:14:25 UTC}]}] flags=[] (0.3343ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "template_dependencies.en"=>{"$in"=>["5470c47187f643acf900002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47187f643acf900002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3781ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47187f643acf900002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46f87f643acf900001e", "parent_id"=>"5470c46f87f643acf9000020", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46f87f643acf9000020", "site_id"=>"5470c46f87f643acf900001e", "_id"=>{"$ne"=>"5470c47187f643acf900002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46f87f643acf9000020", "site_id"=>"5470c46f87f643acf900001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c46f87f643acf9000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6049ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47187f643acf900002e", "parent_ids"=>["5470c46f87f643acf9000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c46f87f643acf900001e", "parent_id"=>"5470c46f87f643acf9000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:25 UTC, "created_at"=>2014-11-22 17:14:25 UTC}] flags=[] (0.2649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "template_dependencies.en"=>{"$in"=>["5470c47187f643acf900002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47187f643acf900002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3438ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47187f643acf900002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46f87f643acf900001e", "parent_id"=>"5470c46f87f643acf9000020", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46f87f643acf9000020", "site_id"=>"5470c46f87f643acf900001e", "_id"=>{"$ne"=>"5470c47187f643acf900002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46f87f643acf9000020", "site_id"=>"5470c46f87f643acf900001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c46f87f643acf9000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7002ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47187f643acf900002f", "parent_ids"=>["5470c46f87f643acf9000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c46f87f643acf900001e", "parent_id"=>"5470c46f87f643acf9000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:25 UTC, "created_at"=>2014-11-22 17:14:25 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "template_dependencies.en"=>{"$in"=>["5470c47187f643acf900002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47187f643acf900002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2952ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47187f643acf900002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c46f87f643acf900001e", "parent_id"=>"5470c46f87f643acf9000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46f87f643acf9000020", "site_id"=>"5470c46f87f643acf900001e", "_id"=>{"$ne"=>"5470c47187f643acf9000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c46f87f643acf9000020", "site_id"=>"5470c46f87f643acf900001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c46f87f643acf9000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47187f643acf9000030", "parent_ids"=>["5470c46f87f643acf9000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c46f87f643acf900001e", "parent_id"=>"5470c46f87f643acf9000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:25 UTC, "created_at"=>2014-11-22 17:14:25 UTC}] flags=[] (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "template_dependencies.en"=>{"$in"=>["5470c47187f643acf9000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47187f643acf9000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47187f643acf9000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c46f87f643acf900001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4330ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c46f87f643acf9000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:14:26 UTC}} flags=[] (0.1657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "template_dependencies.en"=>{"$in"=>["5470c46f87f643acf9000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3030ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c47287f643acf9000031", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:14:11 UTC, "updated_at"=>2014-11-22 17:14:26 UTC, "memberships"=>[{"_id"=>"5470c47287f643acf9000032", "role"=>"admin", "account_id"=>"5470c46f87f643acf900001d"}]}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47287f643acf9000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47287f643acf9000031", "_id"=>{"$ne"=>"5470c47287f643acf9000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47287f643acf9000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c47287f643acf9000031", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:26 UTC, "created_at"=>2014-11-22 17:14:26 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47287f643acf9000031", "template_dependencies.en"=>{"$in"=>["5470c47287f643acf9000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47287f643acf9000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47287f643acf9000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47287f643acf9000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.5159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47287f643acf9000031", "_id"=>{"$ne"=>"5470c47387f643acf9000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (3.6988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47287f643acf9000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (5.1498ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47387f643acf9000034", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c47287f643acf9000031", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:27 UTC, "created_at"=>2014-11-22 17:14:27 UTC}] flags=[] (0.7248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47287f643acf9000031", "template_dependencies.en"=>{"$in"=>["5470c47387f643acf9000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47387f643acf9000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47387f643acf9000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47287f643acf9000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47287f643acf9000031", "_id"=>{"$ne"=>"5470c47387f643acf9000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47287f643acf9000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47387f643acf9000035", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c47287f643acf9000031", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:27 UTC, "created_at"=>2014-11-22 17:14:27 UTC}] flags=[] (0.5639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47287f643acf9000031", "template_dependencies.en"=>{"$in"=>["5470c47387f643acf9000035"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47387f643acf9000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4191ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47387f643acf9000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c47287f643acf9000031", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4351ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c47387f643acf9000036", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c47287f643acf9000031", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c47387f643acf9000037", "updated_at"=>2014-11-22 17:14:27 UTC, "created_at"=>2014-11-22 17:14:27 UTC, "entries_custom_fields"=>[{"_id"=>"5470c47387f643acf9000037", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47387f643acf9000038"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47387f643acf9000036"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c47387f643acf9000036", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47387f643acf9000036"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4840ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c47387f643acf9000038", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c47387f643acf9000036", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c47387f643acf9000036", "content_type_id"=>"5470c47387f643acf9000036", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c47287f643acf9000031", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:27 UTC, "created_at"=>2014-11-22 17:14:27 UTC}] flags=[] (0.4110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47087f643acf900002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47087f643acf900002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c46f87f643acf9000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5267ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1719ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c46f87f643acf9000024"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:28 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c46f87f643acf9000024"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c46f87f643acf9000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c46f87f643acf900001e", "_id"=>"5470c46f87f643acf9000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6983ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:14:28 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5882ms) Rendered text template (0.0ms) Completed 200 OK in 9.0ms (Views: 2.3ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:14:28 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5901ms) Rendered text template (0.0ms) Completed 200 OK in 429.9ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c46f87f643acf9000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c46f87f643acf9000024", "updated_at"=>{"$lt"=>2014-11-22 17:14:28 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c46f87f643acf900001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c46f87f643acf9000024"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8991ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c47087f643acf900002a"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:28 UTC}} flags=[] (0.1338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470c46f87f643acf9000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c46f87f643acf9000022"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c46f87f643acf900001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c46f87f643acf9000024"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5250ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c47087f643acf900002b"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:29 UTC}} flags=[] (0.1569ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:14:29 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6030ms) Rendered text template (0.0ms) Completed 200 OK in 4.5ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:14:29 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c46f87f643acf900001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5918ms) Rendered text template (0.0ms) Completed 200 OK in 603.6ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3869ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2152ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8361ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4251ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c47787f643acf9000039", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8c2c124e90964fa997b485c3043d037a19e6321b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"98Dz1bxEXGnKqpxonx5c", "api_key"=>"d72b3ef0d9873302f77443ca91007b44e377d6f4", "updated_at"=>2014-11-22 17:14:31 UTC, "created_at"=>2014-11-22 17:14:31 UTC}] flags=[] (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8388ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c47787f643acf900003a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:14:11 UTC, "updated_at"=>2014-11-22 17:14:31 UTC, "memberships"=>[{"_id"=>"5470c47787f643acf900003b", "role"=>"admin", "account_id"=>"5470c47787f643acf9000039"}]}] flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47787f643acf900003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47787f643acf900003a", "_id"=>{"$ne"=>"5470c47787f643acf900003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47787f643acf900003c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c47787f643acf900003a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:31 UTC, "created_at"=>2014-11-22 17:14:31 UTC}] flags=[] (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47787f643acf900003a", "template_dependencies.en"=>{"$in"=>["5470c47787f643acf900003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47787f643acf900003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4439ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47787f643acf900003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47787f643acf900003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47787f643acf900003a", "_id"=>{"$ne"=>"5470c47787f643acf900003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47787f643acf900003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6471ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47787f643acf900003d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c47787f643acf900003a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:31 UTC, "created_at"=>2014-11-22 17:14:31 UTC}] flags=[] (0.3150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47787f643acf900003a", "template_dependencies.en"=>{"$in"=>["5470c47787f643acf900003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47787f643acf900003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47787f643acf900003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c47787f643acf900003a", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c47787f643acf900003e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c47787f643acf900003a", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c47787f643acf900003f", "updated_at"=>2014-11-22 17:14:31 UTC, "created_at"=>2014-11-22 17:14:31 UTC, "entries_custom_fields"=>[{"_id"=>"5470c47787f643acf900003f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c47787f643acf900003a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c47787f643acf900003e"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c47787f643acf9000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c47787f643acf900003a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c47787f643acf9000041", "updated_at"=>2014-11-22 17:14:31 UTC, "created_at"=>2014-11-22 17:14:31 UTC, "entries_custom_fields"=>[{"_id"=>"5470c47787f643acf9000041", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c47787f643acf9000042", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c47787f643acf900003e", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c47787f643acf9000043", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c47787f643acf900003a", "_id"=>"5470c47787f643acf900003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c47787f643acf9000040"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5701ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf900003e"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1521ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c47787f643acf900003e"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:31 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c47787f643acf9000044", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c47787f643acf9000040", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c47787f643acf900003e"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c47787f643acf9000040", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47787f643acf9000045"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf900003e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c47787f643acf900003e", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf900003e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3288ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c47787f643acf9000045", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c47787f643acf900003e", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c47787f643acf9000040", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c47787f643acf900003e", "content_type_id"=>"5470c47787f643acf900003e", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c47787f643acf900003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:14:31 UTC, "created_at"=>2014-11-22 17:14:31 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c47787f643acf9000045", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf9000040"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47887f643acf9000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf9000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c47787f643acf9000040", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf9000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5260ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf9000040"]}}} (1.1289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c47887f643acf9000046", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c47787f643acf9000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c47787f643acf900003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c47787f643acf9000045", "_type"=>"Locomotive::ContentEntry5470c47787f643acf9000040", "content_type_id"=>"5470c47787f643acf9000040", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c47787f643acf900003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:32 UTC, "created_at"=>2014-11-22 17:14:32 UTC}] flags=[] (0.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47887f643acf9000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf9000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c47787f643acf9000040", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf9000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4432ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf9000040"]}}} (0.3111ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf9000040"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c47887f643acf9000047", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c47787f643acf9000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c47787f643acf900003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c47787f643acf9000040", "content_type_id"=>"5470c47787f643acf9000040", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c47787f643acf900003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:32 UTC, "created_at"=>2014-11-22 17:14:32 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6559ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47787f643acf900003a", "parent_id"=>"5470c47787f643acf900003c", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47787f643acf900003c", "site_id"=>"5470c47787f643acf900003a", "_id"=>{"$ne"=>"5470c47987f643acf9000048"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c47787f643acf900003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6030ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47987f643acf9000048", "parent_ids"=>["5470c47787f643acf900003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c47787f643acf900003a", "parent_id"=>"5470c47787f643acf900003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:33 UTC, "created_at"=>2014-11-22 17:14:33 UTC, "editable_elements"=>[{"_id"=>"5470c47987f643acf9000049", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:14:33 UTC, "created_at"=>2014-11-22 17:14:33 UTC}]}] flags=[] (0.3119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47787f643acf900003a", "template_dependencies.en"=>{"$in"=>["5470c47987f643acf9000048"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47987f643acf9000048"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3819ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47987f643acf9000048"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (5.4228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47787f643acf900003a", "parent_id"=>"5470c47787f643acf900003c", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47787f643acf900003c", "site_id"=>"5470c47787f643acf900003a", "_id"=>{"$ne"=>"5470c47987f643acf900004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.7652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47787f643acf900003c", "site_id"=>"5470c47787f643acf900003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (13.4468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c47787f643acf900003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8931ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47987f643acf900004a", "parent_ids"=>["5470c47787f643acf900003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c47787f643acf900003a", "parent_id"=>"5470c47787f643acf900003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:33 UTC, "created_at"=>2014-11-22 17:14:33 UTC}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47787f643acf900003a", "template_dependencies.en"=>{"$in"=>["5470c47987f643acf900004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47987f643acf900004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47987f643acf900004a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4737ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47787f643acf900003a", "parent_id"=>"5470c47787f643acf900003c", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.8651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47787f643acf900003c", "site_id"=>"5470c47787f643acf900003a", "_id"=>{"$ne"=>"5470c47987f643acf900004b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (5.6903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47787f643acf900003c", "site_id"=>"5470c47787f643acf900003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.9538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c47787f643acf900003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.6561ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47987f643acf900004b", "parent_ids"=>["5470c47787f643acf900003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c47787f643acf900003a", "parent_id"=>"5470c47787f643acf900003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:33 UTC, "created_at"=>2014-11-22 17:14:33 UTC}] flags=[] (0.9110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47787f643acf900003a", "template_dependencies.en"=>{"$in"=>["5470c47987f643acf900004b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47987f643acf900004b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47987f643acf900004b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47787f643acf900003a", "parent_id"=>"5470c47787f643acf900003c", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47787f643acf900003c", "site_id"=>"5470c47787f643acf900003a", "_id"=>{"$ne"=>"5470c47987f643acf900004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2207ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47787f643acf900003c", "site_id"=>"5470c47787f643acf900003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c47787f643acf900003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47987f643acf900004c", "parent_ids"=>["5470c47787f643acf900003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c47787f643acf900003a", "parent_id"=>"5470c47787f643acf900003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:33 UTC, "created_at"=>2014-11-22 17:14:33 UTC}] flags=[] (0.4799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47787f643acf900003a", "template_dependencies.en"=>{"$in"=>["5470c47987f643acf900004c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47987f643acf900004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47987f643acf900004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.8578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47787f643acf900003a", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c47787f643acf900003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c47787f643acf900003c"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:14:34 UTC}} flags=[] (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47787f643acf900003a", "template_dependencies.en"=>{"$in"=>["5470c47787f643acf900003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3400ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c47b87f643acf900004d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:14:11 UTC, "updated_at"=>2014-11-22 17:14:35 UTC, "memberships"=>[{"_id"=>"5470c47b87f643acf900004e", "role"=>"admin", "account_id"=>"5470c47787f643acf9000039"}]}] flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47b87f643acf900004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47b87f643acf900004d", "_id"=>{"$ne"=>"5470c47b87f643acf900004f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47b87f643acf900004f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c47b87f643acf900004d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:35 UTC, "created_at"=>2014-11-22 17:14:35 UTC}] flags=[] (0.2098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47b87f643acf900004d", "template_dependencies.en"=>{"$in"=>["5470c47b87f643acf900004f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47b87f643acf900004f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47b87f643acf900004f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47b87f643acf900004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47b87f643acf900004d", "_id"=>{"$ne"=>"5470c47b87f643acf9000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47b87f643acf900004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5789ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47b87f643acf9000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c47b87f643acf900004d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:35 UTC, "created_at"=>2014-11-22 17:14:35 UTC}] flags=[] (0.5281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47b87f643acf900004d", "template_dependencies.en"=>{"$in"=>["5470c47b87f643acf9000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47b87f643acf9000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3562ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47b87f643acf9000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47b87f643acf900004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47b87f643acf900004d", "_id"=>{"$ne"=>"5470c47b87f643acf9000051"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4088ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47b87f643acf900004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47b87f643acf9000051", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c47b87f643acf900004d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:35 UTC, "created_at"=>2014-11-22 17:14:35 UTC}] flags=[] (0.2809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47b87f643acf900004d", "template_dependencies.en"=>{"$in"=>["5470c47b87f643acf9000051"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47b87f643acf9000051"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3641ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47b87f643acf9000051"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c47b87f643acf900004d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3881ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c47c87f643acf9000052", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c47b87f643acf900004d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c47c87f643acf9000053", "updated_at"=>2014-11-22 17:14:36 UTC, "created_at"=>2014-11-22 17:14:36 UTC, "entries_custom_fields"=>[{"_id"=>"5470c47c87f643acf9000053", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2732ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47c87f643acf9000054"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47c87f643acf9000052"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c47c87f643acf9000052", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47c87f643acf9000052"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c47c87f643acf9000054", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c47c87f643acf9000052", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c47c87f643acf9000052", "content_type_id"=>"5470c47c87f643acf9000052", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c47b87f643acf900004d", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:36 UTC, "created_at"=>2014-11-22 17:14:36 UTC}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47887f643acf9000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf9000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5493ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47887f643acf9000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf9000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c47787f643acf900003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47787f643acf9000040"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1490ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c47787f643acf9000040"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:36 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.1259ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c47787f643acf9000040"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c47787f643acf900003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c47787f643acf900003a", "_id"=>"5470c47787f643acf900003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8013ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (3.1941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (3.3400ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (3.0012ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.8148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c47c87f643acf9000055", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"4762ddac73e7d6cb2267e9a757737c426c0e0462", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"hCFApwVvrxWB6md11biW", "api_key"=>"cff39fa66e00755aaacbbe7e8f18a70785519119", "updated_at"=>2014-11-22 17:14:36 UTC, "created_at"=>2014-11-22 17:14:36 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7601ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c47c87f643acf9000056", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:14:11 UTC, "updated_at"=>2014-11-22 17:14:36 UTC, "memberships"=>[{"_id"=>"5470c47c87f643acf9000057", "role"=>"admin", "account_id"=>"5470c47c87f643acf9000055"}]}] flags=[] (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47c87f643acf9000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47c87f643acf9000056", "_id"=>{"$ne"=>"5470c47c87f643acf9000058"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.2942ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47c87f643acf9000058", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c47c87f643acf9000056", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:36 UTC, "created_at"=>2014-11-22 17:14:36 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "template_dependencies.en"=>{"$in"=>["5470c47c87f643acf9000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47c87f643acf9000058"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47c87f643acf9000058"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47c87f643acf9000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47c87f643acf9000056", "_id"=>{"$ne"=>"5470c47d87f643acf9000059"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c47c87f643acf9000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7148ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47d87f643acf9000059", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c47c87f643acf9000056", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:37 UTC, "created_at"=>2014-11-22 17:14:37 UTC}] flags=[] (0.3710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "template_dependencies.en"=>{"$in"=>["5470c47d87f643acf9000059"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47d87f643acf9000059"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47d87f643acf9000059"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c47c87f643acf9000056", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c47d87f643acf900005a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c47c87f643acf9000056", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c47d87f643acf900005b", "updated_at"=>2014-11-22 17:14:37 UTC, "created_at"=>2014-11-22 17:14:37 UTC, "entries_custom_fields"=>[{"_id"=>"5470c47d87f643acf900005b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2263ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c47c87f643acf9000056", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.3588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c47d87f643acf900005a"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c47d87f643acf900005c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c47c87f643acf9000056", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c47d87f643acf900005d", "updated_at"=>2014-11-22 17:14:37 UTC, "created_at"=>2014-11-22 17:14:37 UTC, "entries_custom_fields"=>[{"_id"=>"5470c47d87f643acf900005d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c47d87f643acf900005e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c47d87f643acf900005a", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c47d87f643acf900005f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c47c87f643acf9000056", "_id"=>"5470c47d87f643acf900005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c47d87f643acf900005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47d87f643acf900005a"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1371ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c47d87f643acf900005a"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:37 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c47d87f643acf9000060", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c47d87f643acf900005c", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2627ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c47d87f643acf900005a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c47d87f643acf900005c", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47d87f643acf9000061"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47d87f643acf900005a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c47d87f643acf900005a", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.6370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47d87f643acf900005a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.6821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c47d87f643acf9000061", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c47d87f643acf900005a", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c47d87f643acf900005c", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c47d87f643acf900005a", "content_type_id"=>"5470c47d87f643acf900005a", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c47c87f643acf9000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:14:37 UTC, "created_at"=>2014-11-22 17:14:37 UTC}] flags=[] (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c47d87f643acf9000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47d87f643acf900005c"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47d87f643acf9000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47d87f643acf900005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c47d87f643acf900005c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47d87f643acf900005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4628ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47d87f643acf900005c"]}}} (0.3781ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c47d87f643acf9000062", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c47d87f643acf900005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c47d87f643acf900005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c47d87f643acf9000061", "_type"=>"Locomotive::ContentEntry5470c47d87f643acf900005c", "content_type_id"=>"5470c47d87f643acf900005c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c47c87f643acf9000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:37 UTC, "created_at"=>2014-11-22 17:14:37 UTC}] flags=[] (0.2818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c47e87f643acf9000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c47d87f643acf900005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c47d87f643acf900005c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47d87f643acf900005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47d87f643acf900005c"]}}} (0.3388ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c47d87f643acf900005c"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c47e87f643acf9000063", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c47d87f643acf900005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c47d87f643acf900005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c47d87f643acf900005c", "content_type_id"=>"5470c47d87f643acf900005c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c47c87f643acf9000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:38 UTC, "created_at"=>2014-11-22 17:14:38 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6359ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47c87f643acf9000056", "parent_id"=>"5470c47c87f643acf9000058", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47c87f643acf9000058", "site_id"=>"5470c47c87f643acf9000056", "_id"=>{"$ne"=>"5470c47e87f643acf9000064"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c47c87f643acf9000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5581ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47e87f643acf9000064", "parent_ids"=>["5470c47c87f643acf9000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c47c87f643acf9000056", "parent_id"=>"5470c47c87f643acf9000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:38 UTC, "created_at"=>2014-11-22 17:14:38 UTC, "editable_elements"=>[{"_id"=>"5470c47e87f643acf9000065", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:14:38 UTC, "created_at"=>2014-11-22 17:14:38 UTC}]}] flags=[] (0.2739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "template_dependencies.en"=>{"$in"=>["5470c47e87f643acf9000064"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47e87f643acf9000064"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3219ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47e87f643acf9000064"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47c87f643acf9000056", "parent_id"=>"5470c47c87f643acf9000058", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4983ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47c87f643acf9000058", "site_id"=>"5470c47c87f643acf9000056", "_id"=>{"$ne"=>"5470c47f87f643acf9000066"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47c87f643acf9000058", "site_id"=>"5470c47c87f643acf9000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c47c87f643acf9000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5388ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47f87f643acf9000066", "parent_ids"=>["5470c47c87f643acf9000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c47c87f643acf9000056", "parent_id"=>"5470c47c87f643acf9000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:39 UTC, "created_at"=>2014-11-22 17:14:39 UTC}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "template_dependencies.en"=>{"$in"=>["5470c47f87f643acf9000066"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47f87f643acf9000066"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47f87f643acf9000066"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0997ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5043ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47c87f643acf9000056", "parent_id"=>"5470c47c87f643acf9000058", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47c87f643acf9000058", "site_id"=>"5470c47c87f643acf9000056", "_id"=>{"$ne"=>"5470c47f87f643acf9000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47c87f643acf9000058", "site_id"=>"5470c47c87f643acf9000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c47c87f643acf9000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4842ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47f87f643acf9000067", "parent_ids"=>["5470c47c87f643acf9000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c47c87f643acf9000056", "parent_id"=>"5470c47c87f643acf9000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:39 UTC, "created_at"=>2014-11-22 17:14:39 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "template_dependencies.en"=>{"$in"=>["5470c47f87f643acf9000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47f87f643acf9000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2909ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47f87f643acf9000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c47c87f643acf9000056", "parent_id"=>"5470c47c87f643acf9000058", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47c87f643acf9000058", "site_id"=>"5470c47c87f643acf9000056", "_id"=>{"$ne"=>"5470c47f87f643acf9000068"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47c87f643acf9000058", "site_id"=>"5470c47c87f643acf9000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c47c87f643acf9000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6540ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c47f87f643acf9000068", "parent_ids"=>["5470c47c87f643acf9000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c47c87f643acf9000056", "parent_id"=>"5470c47c87f643acf9000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:39 UTC, "created_at"=>2014-11-22 17:14:39 UTC}] flags=[] (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "template_dependencies.en"=>{"$in"=>["5470c47f87f643acf9000068"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c47f87f643acf9000068"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3049ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c47f87f643acf9000068"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c47c87f643acf9000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4778ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c47c87f643acf9000058"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:14:40 UTC}} flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "template_dependencies.en"=>{"$in"=>["5470c47c87f643acf9000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6063ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3822ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c48087f643acf9000069", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:14:11 UTC, "updated_at"=>2014-11-22 17:14:40 UTC, "memberships"=>[{"_id"=>"5470c48087f643acf900006a", "role"=>"admin", "account_id"=>"5470c47c87f643acf9000055"}]}] flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48087f643acf9000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48087f643acf9000069", "_id"=>{"$ne"=>"5470c48087f643acf900006b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48087f643acf900006b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c48087f643acf9000069", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:40 UTC, "created_at"=>2014-11-22 17:14:40 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48087f643acf9000069", "template_dependencies.en"=>{"$in"=>["5470c48087f643acf900006b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48087f643acf900006b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3240ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48087f643acf900006b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48087f643acf9000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48087f643acf9000069", "_id"=>{"$ne"=>"5470c48187f643acf900006c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48087f643acf9000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48187f643acf900006c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c48087f643acf9000069", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:41 UTC, "created_at"=>2014-11-22 17:14:41 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48087f643acf9000069", "template_dependencies.en"=>{"$in"=>["5470c48187f643acf900006c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48187f643acf900006c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3791ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48187f643acf900006c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48087f643acf9000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48087f643acf9000069", "_id"=>{"$ne"=>"5470c48187f643acf900006d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48087f643acf9000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48187f643acf900006d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c48087f643acf9000069", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:41 UTC, "created_at"=>2014-11-22 17:14:41 UTC}] flags=[] (0.3102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48087f643acf9000069", "template_dependencies.en"=>{"$in"=>["5470c48187f643acf900006d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48187f643acf900006d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3521ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48187f643acf900006d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48087f643acf9000069", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4079ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c48187f643acf900006e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c48087f643acf9000069", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c48187f643acf900006f", "updated_at"=>2014-11-22 17:14:41 UTC, "created_at"=>2014-11-22 17:14:41 UTC, "entries_custom_fields"=>[{"_id"=>"5470c48187f643acf900006f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48187f643acf9000070"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48187f643acf900006e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48187f643acf900006e", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48187f643acf900006e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.6371ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48187f643acf9000070", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48187f643acf900006e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c48187f643acf900006e", "content_type_id"=>"5470c48187f643acf900006e", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c48087f643acf9000069", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:41 UTC, "created_at"=>2014-11-22 17:14:41 UTC}] flags=[] (0.3128ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:14:42 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0619ms) Rendered text template (0.0ms) Completed 200 OK in 10.0ms (Views: 0.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 18:14:42 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5631ms) Rendered text template (0.0ms) Completed 200 OK in 653.7ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 18:14:42 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6201ms) Rendered text template (0.0ms) Completed 200 OK in 4.4ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:14:42 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5817ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6223ms) Rendered text template (0.0ms) Completed 200 OK in 4.0ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 18:14:42 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c47c87f643acf9000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6180ms) Rendered text template (0.0ms) Completed 200 OK in 829.4ms (Views: 0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6199ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (3.8548ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.2347ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5938ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.4398ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0121ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5119ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (11.0950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3839ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c48a87f643e278000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"fb500e91e922c320dc1c0836cf90f2edeacb0537", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ZcwaPS4nnipC4ZKH2ke7", "api_key"=>"a1182981930e07b0cba96150a3d966b22d770277", "updated_at"=>2014-11-22 17:14:50 UTC, "created_at"=>2014-11-22 17:14:50 UTC}] flags=[] (0.1471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6962ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c48a87f643e278000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:14:50 UTC, "updated_at"=>2014-11-22 17:14:50 UTC, "memberships"=>[{"_id"=>"5470c48a87f643e278000003", "role"=>"admin", "account_id"=>"5470c48a87f643e278000001"}]}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48a87f643e278000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48a87f643e278000002", "_id"=>{"$ne"=>"5470c48b87f643e278000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3092ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48b87f643e278000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c48a87f643e278000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (0.1817ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002", "template_dependencies.en"=>{"$in"=>["5470c48b87f643e278000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48b87f643e278000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48b87f643e278000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4828ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48b87f643e278000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c48a87f643e278000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48b87f643e278000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48a87f643e278000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4296ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48a87f643e278000002", "_id"=>{"$ne"=>"5470c48b87f643e278000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5224ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48b87f643e278000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c48a87f643e278000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (0.2067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002", "template_dependencies.en"=>{"$in"=>["5470c48b87f643e278000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2949ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48b87f643e278000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48a87f643e278000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c48b87f643e278000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c48a87f643e278000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c48b87f643e278000008", "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC, "entries_custom_fields"=>[{"_id"=>"5470c48b87f643e278000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48a87f643e278000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c48b87f643e278000007"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6552ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c48b87f643e278000009", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c48a87f643e278000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c48b87f643e27800000a", "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC, "entries_custom_fields"=>[{"_id"=>"5470c48b87f643e27800000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c48b87f643e27800000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c48b87f643e278000007", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c48b87f643e27800000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48a87f643e278000002", "_id"=>"5470c48b87f643e278000007"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6196ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c48b87f643e278000009"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5689ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000007"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1369ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c48b87f643e278000007"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:51 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c48b87f643e27800000d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c48b87f643e278000009", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48b87f643e278000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48b87f643e278000009", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48b87f643e27800000e"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48b87f643e278000007", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000007"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48b87f643e27800000e", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48b87f643e278000007", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48b87f643e278000009", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c48b87f643e278000007", "content_type_id"=>"5470c48b87f643e278000007", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c48a87f643e278000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48b87f643e278000007", "original_id"=>"5470c48b87f643e27800000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5522ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c48b87f643e27800000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000009"]}}} (0.4530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c48b87f643e27800000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48b87f643e27800000f", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c48a87f643e278000002", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c48b87f643e278000007", "original_id"=>"5470c48b87f643e27800000e", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48b87f643e278000010"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48b87f643e278000009", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.6130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000009"]}}} (0.3326ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48b87f643e278000010", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48b87f643e278000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48b87f643e278000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c48b87f643e27800000e", "_type"=>"Locomotive::ContentEntry5470c48b87f643e278000009", "content_type_id"=>"5470c48b87f643e278000009", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c48a87f643e278000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48b87f643e278000009", "original_id"=>"5470c48b87f643e278000010", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c48b87f643e27800000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5851ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48b87f643e278000011", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c48a87f643e278000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c48b87f643e278000009", "original_id"=>"5470c48b87f643e278000010", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48b87f643e278000012"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48b87f643e278000009", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4432ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000009"]}}} (0.3331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000009"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4292ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48b87f643e278000012", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48b87f643e278000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48b87f643e278000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c48b87f643e278000009", "content_type_id"=>"5470c48b87f643e278000009", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c48a87f643e278000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48b87f643e278000009", "original_id"=>"5470c48b87f643e278000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3831ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48b87f643e278000013", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c48a87f643e278000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c48b87f643e278000009", "original_id"=>"5470c48b87f643e278000012", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5760ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48a87f643e278000002", "parent_id"=>"5470c48b87f643e278000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000004", "site_id"=>"5470c48a87f643e278000002", "_id"=>{"$ne"=>"5470c48b87f643e278000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4833ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48b87f643e278000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48b87f643e278000014", "parent_ids"=>["5470c48b87f643e278000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c48a87f643e278000002", "parent_id"=>"5470c48b87f643e278000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC, "editable_elements"=>[{"_id"=>"5470c48b87f643e278000015", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}]}] flags=[] (0.2770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002", "template_dependencies.en"=>{"$in"=>["5470c48b87f643e278000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48b87f643e278000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48b87f643e278000014", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48b87f643e278000016", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c48a87f643e278000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48b87f643e278000014", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48a87f643e278000002", "parent_id"=>"5470c48b87f643e278000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000004", "site_id"=>"5470c48a87f643e278000002", "_id"=>{"$ne"=>"5470c48b87f643e278000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000004", "site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48b87f643e278000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5157ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48b87f643e278000017", "parent_ids"=>["5470c48b87f643e278000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c48a87f643e278000002", "parent_id"=>"5470c48b87f643e278000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002", "template_dependencies.en"=>{"$in"=>["5470c48b87f643e278000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3202ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48b87f643e278000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48a87f643e278000002", "parent_id"=>"5470c48b87f643e278000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000004", "site_id"=>"5470c48a87f643e278000002", "_id"=>{"$ne"=>"5470c48b87f643e278000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000004", "site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48b87f643e278000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5047ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48b87f643e278000018", "parent_ids"=>["5470c48b87f643e278000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c48a87f643e278000002", "parent_id"=>"5470c48b87f643e278000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002", "template_dependencies.en"=>{"$in"=>["5470c48b87f643e278000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2928ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48b87f643e278000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48a87f643e278000002", "parent_id"=>"5470c48b87f643e278000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000004", "site_id"=>"5470c48a87f643e278000002", "_id"=>{"$ne"=>"5470c48b87f643e278000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000004", "site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48b87f643e278000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5481ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48b87f643e278000019", "parent_ids"=>["5470c48b87f643e278000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c48a87f643e278000002", "parent_id"=>"5470c48b87f643e278000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002", "template_dependencies.en"=>{"$in"=>["5470c48b87f643e278000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48b87f643e278000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48b87f643e278000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3762ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48a87f643e278000002", "locale"=>"en"}} (0.6237ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48a87f643e278000002", "locale"=>"en"}} (0.5021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48b87f643e27800001a", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c48a87f643e278000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48b87f643e278000019", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c48b87f643e278000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:14:51 UTC}} flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002", "template_dependencies.en"=>{"$in"=>["5470c48b87f643e278000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48b87f643e278000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4299ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c48b87f643e278000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c48a87f643e278000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c48b87f643e27800001b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:14:50 UTC, "updated_at"=>2014-11-22 17:14:51 UTC, "memberships"=>[{"_id"=>"5470c48b87f643e27800001c", "role"=>"admin", "account_id"=>"5470c48a87f643e278000001"}]}] flags=[] (0.1309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48b87f643e27800001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48b87f643e27800001b", "_id"=>{"$ne"=>"5470c48b87f643e27800001d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48b87f643e27800001d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c48b87f643e27800001b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48b87f643e27800001b", "template_dependencies.en"=>{"$in"=>["5470c48b87f643e27800001d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e27800001d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48b87f643e27800001d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48b87f643e27800001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48b87f643e27800001e", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c48b87f643e27800001b", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48b87f643e27800001d", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48b87f643e27800001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48b87f643e27800001b", "_id"=>{"$ne"=>"5470c48b87f643e27800001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48b87f643e27800001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5682ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48b87f643e27800001f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c48b87f643e27800001b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48b87f643e27800001b", "template_dependencies.en"=>{"$in"=>["5470c48b87f643e27800001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3343ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e27800001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48b87f643e27800001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48b87f643e27800001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48b87f643e27800001b", "_id"=>{"$ne"=>"5470c48b87f643e278000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0297ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48b87f643e27800001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48b87f643e278000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c48b87f643e27800001b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48b87f643e27800001b", "template_dependencies.en"=>{"$in"=>["5470c48b87f643e278000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48b87f643e278000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5409ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48b87f643e278000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48b87f643e278000020", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8662ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48b87f643e278000021", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c48b87f643e27800001b", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48b87f643e278000020", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48b87f643e27800001b", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c48b87f643e278000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c48b87f643e27800001b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c48b87f643e278000023", "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC, "entries_custom_fields"=>[{"_id"=>"5470c48b87f643e278000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.6058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48b87f643e278000024"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48b87f643e278000022", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48b87f643e278000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.7401ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48b87f643e278000024", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48b87f643e278000022", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c48b87f643e278000022", "content_type_id"=>"5470c48b87f643e278000022", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c48b87f643e27800001b", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:51 UTC, "created_at"=>2014-11-22 17:14:51 UTC}] flags=[] (2.3208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48b87f643e278000022", "original_id"=>"5470c48b87f643e278000024", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6058ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48b87f643e278000025", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c48b87f643e27800001b", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c48b87f643e278000022", "original_id"=>"5470c48b87f643e278000024", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1969ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 18:14:53 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c48a87f643e278000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.9919ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (48.5ms) Completed 200 OK in 95.0ms (Views: 81.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 18:14:53 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (24ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 18:14:53 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (35ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 18:14:53 +0100 Served asset /locomotive/background/body.png - 200 OK (7ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 18:14:53 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c48a87f643e278000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5829ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c48a87f643e278000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 17:14:53 UTC, "updated_at"=>2014-11-22 17:14:53 UTC}} flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c48a87f643e278000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 17:14:53 UTC, "current_sign_in_at"=>2014-11-22 17:14:53 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 17:14:53 UTC}} flags=[] (0.1478ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 22.1ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:14:53 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c48a87f643e278000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c48a87f643e278000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1840ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4728872536307] (0.1111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4473ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c48b87f643e278000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c48b87f643e278000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7408ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (27.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (4.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (12.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (54.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c48a87f643e278000001", :role=>:admin}}}} (0.5538ms) Rendered locomotive/shared/_main_app_head.html.haml (2.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (16.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c48a87f643e278000001"}} (0.5660ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c48a87f643e278000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7310ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (3.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.2ms) Rendered locomotive/shared/_main_app_header.html.haml (6.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (29.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 143.1ms (Views: 125.1ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 18:14:53 +0100 Served asset /locomotive.js - 200 OK (215ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 18:14:54 +0100 Served asset /locomotive.css - 200 OK (65ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 18:14:54 +0100 Served asset /locomotive/search_bar.css - 200 OK (4ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 18:14:54 +0100 Served asset /locomotive/search_bar.js - 200 OK (7ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 18:14:54 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 18:14:54 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (3ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 18:14:54 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:14:54 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c48a87f643e278000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c48a87f643e278000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.0750ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4729802768563] (0.0691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c48a87f643e278000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c48b87f643e278000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c48b87f643e278000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7167ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (13.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (20.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c48a87f643e278000001", :role=>:admin}}}} (0.5651ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c48a87f643e278000001"}} (0.4652ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c48a87f643e278000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5152ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (9.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 54.9ms (Views: 38.9ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 18:14:54 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c48a87f643e278000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c48a87f643e278000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5021ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"findable ", "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48a87f643e278000002"}} (0.9301ms) Completed 200 OK in 21.2ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3418ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (4.0841ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5910ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (4.6129ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.6939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.7090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7827ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.8781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c48f87f643e278000026", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f12fe96cedcfd21af8038dcbb08ee6772d5bcb07", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"NLsy2p1PjzDpN5bBHi7W", "api_key"=>"00dfe415ae81c7a3762ca8f1d081f5cf911a01bc", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.1502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.8411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c48f87f643e278000027", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:14:50 UTC, "updated_at"=>2014-11-22 17:14:55 UTC, "memberships"=>[{"_id"=>"5470c48f87f643e278000028", "role"=>"admin", "account_id"=>"5470c48f87f643e278000026"}]}] flags=[] (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000027", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000027", "_id"=>{"$ne"=>"5470c48f87f643e278000029"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000029", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c48f87f643e278000027", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.7720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000029"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000029"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4244ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e27800002a", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c48f87f643e278000027", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000029", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000027", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000027", "_id"=>{"$ne"=>"5470c48f87f643e27800002b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6018ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e27800002b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c48f87f643e278000027", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.9153ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e27800002b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800002b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5121ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e27800002b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e278000027", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3669ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c48f87f643e27800002c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c48f87f643e278000027", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c48f87f643e27800002d", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC, "entries_custom_fields"=>[{"_id"=>"5470c48f87f643e27800002d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e278000027", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c48f87f643e27800002c"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c48f87f643e27800002e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c48f87f643e278000027", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c48f87f643e27800002f", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC, "entries_custom_fields"=>[{"_id"=>"5470c48f87f643e27800002f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c48f87f643e278000030", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c48f87f643e27800002c", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c48f87f643e278000031", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e278000027", "_id"=>"5470c48f87f643e27800002c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c48f87f643e27800002e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0734ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002c"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c48f87f643e27800002c"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:55 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c48f87f643e278000032", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c48f87f643e27800002e", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48f87f643e27800002c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48f87f643e27800002e", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48f87f643e278000033"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48f87f643e27800002c", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48f87f643e278000033", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48f87f643e27800002c", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48f87f643e27800002e", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c48f87f643e27800002c", "content_type_id"=>"5470c48f87f643e27800002c", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c48f87f643e278000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48f87f643e27800002c", "original_id"=>"5470c48f87f643e278000033", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3120ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c48f87f643e278000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002e"]}}} (0.8137ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c48f87f643e278000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002e"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5257ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e278000034", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c48f87f643e278000027", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c48f87f643e27800002c", "original_id"=>"5470c48f87f643e278000033", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48f87f643e278000035"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48f87f643e27800002e", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.8991ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002e"]}}} (0.4327ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48f87f643e278000035", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48f87f643e27800002e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48f87f643e27800002c"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c48f87f643e278000033", "_type"=>"Locomotive::ContentEntry5470c48f87f643e27800002e", "content_type_id"=>"5470c48f87f643e27800002e", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c48f87f643e278000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.3798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48f87f643e27800002e", "original_id"=>"5470c48f87f643e278000035", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c48f87f643e278000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002e"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.9038ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e278000036", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c48f87f643e278000027", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c48f87f643e27800002e", "original_id"=>"5470c48f87f643e278000035", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48f87f643e278000037"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48f87f643e27800002e", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.7563ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002e"]}}} (0.4649ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800002e"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (1.4751ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48f87f643e278000037", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48f87f643e27800002e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48f87f643e27800002c"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c48f87f643e27800002e", "content_type_id"=>"5470c48f87f643e27800002e", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c48f87f643e278000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (1.0178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48f87f643e27800002e", "original_id"=>"5470c48f87f643e278000037", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e278000038", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c48f87f643e278000027", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c48f87f643e27800002e", "original_id"=>"5470c48f87f643e278000037", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9573ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000027", "parent_id"=>"5470c48f87f643e278000029", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000029", "site_id"=>"5470c48f87f643e278000027", "_id"=>{"$ne"=>"5470c48f87f643e278000039"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e278000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000039", "parent_ids"=>["5470c48f87f643e278000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c48f87f643e278000027", "parent_id"=>"5470c48f87f643e278000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC, "editable_elements"=>[{"_id"=>"5470c48f87f643e27800003a", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}]}] flags=[] (0.3560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000039"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000039"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.6830ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000039"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.5989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000039", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8669ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e27800003b", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c48f87f643e278000027", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000039", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000027", "parent_id"=>"5470c48f87f643e278000029", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000029", "site_id"=>"5470c48f87f643e278000027", "_id"=>{"$ne"=>"5470c48f87f643e27800003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000029", "site_id"=>"5470c48f87f643e278000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e278000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.9448ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e27800003c", "parent_ids"=>["5470c48f87f643e278000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c48f87f643e278000027", "parent_id"=>"5470c48f87f643e278000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.7699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e27800003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5038ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e27800003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000027", "parent_id"=>"5470c48f87f643e278000029", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000029", "site_id"=>"5470c48f87f643e278000027", "_id"=>{"$ne"=>"5470c48f87f643e27800003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.5518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000029", "site_id"=>"5470c48f87f643e278000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e278000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e27800003d", "parent_ids"=>["5470c48f87f643e278000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c48f87f643e278000027", "parent_id"=>"5470c48f87f643e278000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e27800003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5093ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e27800003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000027", "parent_id"=>"5470c48f87f643e278000029", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000029", "site_id"=>"5470c48f87f643e278000027", "_id"=>{"$ne"=>"5470c48f87f643e27800003e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000029", "site_id"=>"5470c48f87f643e278000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e278000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e27800003e", "parent_ids"=>["5470c48f87f643e278000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c48f87f643e278000027", "parent_id"=>"5470c48f87f643e278000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e27800003e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800003e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3018ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e27800003e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e27800003e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3638ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48f87f643e278000027", "locale"=>"en"}} (0.5481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48f87f643e278000027", "locale"=>"en"}} (0.7451ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e27800003f", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c48f87f643e278000027", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e27800003e", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c48f87f643e278000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c48f87f643e278000029"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:14:55 UTC}} flags=[] (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000029"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c48f87f643e27800002a"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c48f87f643e278000027", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c48f87f643e278000040", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:14:50 UTC, "updated_at"=>2014-11-22 17:14:55 UTC, "memberships"=>[{"_id"=>"5470c48f87f643e278000041", "role"=>"admin", "account_id"=>"5470c48f87f643e278000026"}]}] flags=[] (0.1748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000040", "_id"=>{"$ne"=>"5470c48f87f643e278000042"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5481ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000042", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c48f87f643e278000040", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.7751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000040", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000042"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000042"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6552ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000042"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000042", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e278000043", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c48f87f643e278000040", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000042", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000040", "_id"=>{"$ne"=>"5470c48f87f643e278000044"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.7369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000040"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000044", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c48f87f643e278000040", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.3629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000040", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000044"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000044"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000044"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000040", "_id"=>{"$ne"=>"5470c48f87f643e278000045"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000040"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5052ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000045", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c48f87f643e278000040", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2573ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000040", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000045"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000045"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000045"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000045", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.8458ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e278000046", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c48f87f643e278000040", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000045", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e278000040", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c48f87f643e278000047", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c48f87f643e278000040", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c48f87f643e278000048", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC, "entries_custom_fields"=>[{"_id"=>"5470c48f87f643e278000048", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (1.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48f87f643e278000049"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000047"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48f87f643e278000047", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000047"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (1.9300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48f87f643e278000049", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48f87f643e278000047", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c48f87f643e278000047", "content_type_id"=>"5470c48f87f643e278000047", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c48f87f643e278000040", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (1.0021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48f87f643e278000047", "original_id"=>"5470c48f87f643e278000049", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e27800004a", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c48f87f643e278000040", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c48f87f643e278000047", "original_id"=>"5470c48f87f643e278000049", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.6642ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:14:55 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6173ms) Rendered text template (0.0ms) Completed 200 OK in 13.8ms (Views: 6.1ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 18:14:55 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7024ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"findable", "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48f87f643e278000027", "locale"=>"en"}} (0.7000ms) Rendered text template (0.0ms) Completed 200 OK in 8.0ms (Views: 0.3ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 18:14:55 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6089ms) Rendered text template (0.0ms) Completed 200 OK in 4.5ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:14:55 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5589ms) Rendered text template (0.0ms) Completed 200 OK in 3.9ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 18:14:55 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000027", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6261ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"not found", "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48f87f643e278000027", "locale"=>"en"}} (0.5221ms) Rendered text template (0.0ms) Completed 200 OK in 5.7ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5701ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.2831ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1282ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.0729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0910ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6428ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3557ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.0989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c48f87f643e27800004b", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"aef0785e0fbe5239f7607f504bacfd8be9eb42cd", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"zpqWx9wCx8gEgfSZKMrp", "api_key"=>"48f61ccdc9561ad132387337bb7e87cbf5281d37", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.1292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c48f87f643e27800004c", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:14:50 UTC, "updated_at"=>2014-11-22 17:14:55 UTC, "memberships"=>[{"_id"=>"5470c48f87f643e27800004d", "role"=>"admin", "account_id"=>"5470c48f87f643e27800004b"}]}] flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e27800004c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e27800004c", "_id"=>{"$ne"=>"5470c48f87f643e27800004e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.2799ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e27800004e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c48f87f643e27800004c", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e27800004c", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e27800004e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800004e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2928ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e27800004e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e27800004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e27800004f", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c48f87f643e27800004c", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e27800004e", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e27800004c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e27800004c", "_id"=>{"$ne"=>"5470c48f87f643e278000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e27800004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4642ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c48f87f643e27800004c", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e27800004c", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3397ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e27800004c", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4139ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c48f87f643e278000051", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c48f87f643e27800004c", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c48f87f643e278000052", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC, "entries_custom_fields"=>[{"_id"=>"5470c48f87f643e278000052", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e27800004c", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c48f87f643e278000051"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c48f87f643e278000053", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c48f87f643e27800004c", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c48f87f643e278000054", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC, "entries_custom_fields"=>[{"_id"=>"5470c48f87f643e278000054", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c48f87f643e278000055", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c48f87f643e278000051", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c48f87f643e278000056", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e27800004c", "_id"=>"5470c48f87f643e278000051"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c48f87f643e278000053"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7839ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000051"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1738ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c48f87f643e278000051"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:55 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c48f87f643e278000057", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c48f87f643e278000053", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48f87f643e278000051"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48f87f643e278000053", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48f87f643e278000058"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000051"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48f87f643e278000051", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000051"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3338ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48f87f643e278000058", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48f87f643e278000051", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48f87f643e278000053", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c48f87f643e278000051", "content_type_id"=>"5470c48f87f643e278000051", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c48f87f643e27800004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48f87f643e278000051", "original_id"=>"5470c48f87f643e278000058", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c48f87f643e278000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}}} (0.4277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c48f87f643e278000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e278000059", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c48f87f643e27800004c", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c48f87f643e278000051", "original_id"=>"5470c48f87f643e278000058", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48f87f643e27800005a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48f87f643e278000053", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}}} (0.3283ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48f87f643e27800005a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48f87f643e278000053", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48f87f643e278000051"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c48f87f643e278000058", "_type"=>"Locomotive::ContentEntry5470c48f87f643e278000053", "content_type_id"=>"5470c48f87f643e278000053", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c48f87f643e27800004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48f87f643e278000053", "original_id"=>"5470c48f87f643e27800005a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c48f87f643e278000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e27800005b", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c48f87f643e27800004c", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c48f87f643e278000053", "original_id"=>"5470c48f87f643e27800005a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.2213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48f87f643e27800005c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48f87f643e278000053", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4079ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}}} (0.3581ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48f87f643e27800005c", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48f87f643e278000053", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48f87f643e278000051"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c48f87f643e278000053", "content_type_id"=>"5470c48f87f643e278000053", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c48f87f643e27800004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48f87f643e278000053", "original_id"=>"5470c48f87f643e27800005c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e27800005d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c48f87f643e27800004c", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c48f87f643e278000053", "original_id"=>"5470c48f87f643e27800005c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5732ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e27800004c", "parent_id"=>"5470c48f87f643e27800004e", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800004e", "site_id"=>"5470c48f87f643e27800004c", "_id"=>{"$ne"=>"5470c48f87f643e27800005e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e27800004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5071ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e27800005e", "parent_ids"=>["5470c48f87f643e27800004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c48f87f643e27800004c", "parent_id"=>"5470c48f87f643e27800004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC, "editable_elements"=>[{"_id"=>"5470c48f87f643e27800005f", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}]}] flags=[] (0.2632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e27800004c", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e27800005e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800005e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2761ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e27800005e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e27800005e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3428ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e278000060", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c48f87f643e27800004c", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e27800005e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e27800004c", "parent_id"=>"5470c48f87f643e27800004e", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800004e", "site_id"=>"5470c48f87f643e27800004c", "_id"=>{"$ne"=>"5470c48f87f643e278000061"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800004e", "site_id"=>"5470c48f87f643e27800004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e27800004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000061", "parent_ids"=>["5470c48f87f643e27800004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c48f87f643e27800004c", "parent_id"=>"5470c48f87f643e27800004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e27800004c", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000061"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000061"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2730ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000061"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e27800004c", "parent_id"=>"5470c48f87f643e27800004e", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4113ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800004e", "site_id"=>"5470c48f87f643e27800004c", "_id"=>{"$ne"=>"5470c48f87f643e278000062"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800004e", "site_id"=>"5470c48f87f643e27800004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e27800004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000062", "parent_ids"=>["5470c48f87f643e27800004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c48f87f643e27800004c", "parent_id"=>"5470c48f87f643e27800004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e27800004c", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000062"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000062"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2949ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000062"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e27800004c", "parent_id"=>"5470c48f87f643e27800004e", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800004e", "site_id"=>"5470c48f87f643e27800004c", "_id"=>{"$ne"=>"5470c48f87f643e278000063"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800004e", "site_id"=>"5470c48f87f643e27800004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e27800004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000063", "parent_ids"=>["5470c48f87f643e27800004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c48f87f643e27800004c", "parent_id"=>"5470c48f87f643e27800004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e27800004c", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000063"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000063"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3142ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000063"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000063", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48f87f643e27800004c", "locale"=>"en"}} (0.6628ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48f87f643e27800004c", "locale"=>"en"}} (0.5388ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e278000064", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c48f87f643e27800004c", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000063", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e27800004c", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c48f87f643e27800004c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c48f87f643e27800004e"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:14:55 UTC}} flags=[] (0.3133ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e27800004c", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e27800004e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e27800004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c48f87f643e27800004f"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c48f87f643e27800004c", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3650ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c48f87f643e278000065", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:14:50 UTC, "updated_at"=>2014-11-22 17:14:55 UTC, "memberships"=>[{"_id"=>"5470c48f87f643e278000066", "role"=>"admin", "account_id"=>"5470c48f87f643e27800004b"}]}] flags=[] (1.0400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000065", "_id"=>{"$ne"=>"5470c48f87f643e278000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6008ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000067", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c48f87f643e278000065", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000065", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0898ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000067", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e278000068", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c48f87f643e278000065", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000067", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4113ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000065", "_id"=>{"$ne"=>"5470c48f87f643e278000069"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4648ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000065"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7732ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000069", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c48f87f643e278000065", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000065", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000069"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000069"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000069"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000065", "_id"=>{"$ne"=>"5470c48f87f643e27800006a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8283ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000065"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e27800006a", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c48f87f643e278000065", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000065", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e27800006a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e27800006a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e27800006a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e27800006a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3278ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e27800006b", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c48f87f643e278000065", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e27800006a", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e278000065", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4148ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c48f87f643e27800006c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c48f87f643e278000065", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c48f87f643e27800006d", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC, "entries_custom_fields"=>[{"_id"=>"5470c48f87f643e27800006d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48f87f643e27800006e"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800006c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48f87f643e27800006c", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e27800006c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (2.7461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c48f87f643e27800006e", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c48f87f643e27800006c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c48f87f643e27800006c", "content_type_id"=>"5470c48f87f643e27800006c", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c48f87f643e278000065", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (1.1551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c48f87f643e27800006c", "original_id"=>"5470c48f87f643e27800006e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e27800006f", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c48f87f643e278000065", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c48f87f643e27800006c", "original_id"=>"5470c48f87f643e27800006e", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48f87f643e27800005a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c48f87f643e27800005c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c48f87f643e278000051"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9098ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c48f87f643e278000053"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1757ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c48f87f643e278000053"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:55 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c48f87f643e278000053"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c48f87f643e278000051"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e27800004c", "_id"=>"5470c48f87f643e278000051"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5898ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7632ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4799ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4580ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4210ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3648ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2820ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c48f87f643e278000070", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"93151c6c8b9f7084d07a3b513ebe7c1e48cf5773", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"NyZ4orfHUW27LagWDzbS", "api_key"=>"4cb63de4a662f295d62983a4808da0bf00ab70bd", "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2971ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c48f87f643e278000071", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:14:50 UTC, "updated_at"=>2014-11-22 17:14:55 UTC, "memberships"=>[{"_id"=>"5470c48f87f643e278000072", "role"=>"admin", "account_id"=>"5470c48f87f643e278000070"}]}] flags=[] (0.1297ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000071", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000071", "_id"=>{"$ne"=>"5470c48f87f643e278000073"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.2949ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000073", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c48f87f643e278000071", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000073"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000073"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2780ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000073"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000073", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5791ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c48f87f643e278000074", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c48f87f643e278000071", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000073", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1574ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000071", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000071", "_id"=>{"$ne"=>"5470c48f87f643e278000075"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c48f87f643e278000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c48f87f643e278000075", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c48f87f643e278000071", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:55 UTC, "created_at"=>2014-11-22 17:14:55 UTC}] flags=[] (0.2708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000075"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000075"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2809ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c48f87f643e278000075"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e278000071", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3638ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c49087f643e278000076", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c48f87f643e278000071", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c49087f643e278000077", "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC, "entries_custom_fields"=>[{"_id"=>"5470c49087f643e278000077", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.3703ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e278000071", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49087f643e278000076"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5002ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c49087f643e278000078", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c48f87f643e278000071", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c49087f643e278000079", "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC, "entries_custom_fields"=>[{"_id"=>"5470c49087f643e278000079", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c49087f643e27800007a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c49087f643e278000076", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c49087f643e27800007b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e278000071", "_id"=>"5470c49087f643e278000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49087f643e278000078"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5896ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000076"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1338ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49087f643e278000076"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:56 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c49087f643e27800007c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c49087f643e278000078", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1936ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49087f643e278000076"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49087f643e278000078", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49087f643e27800007d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000076"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49087f643e278000076", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3567ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000076"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49087f643e27800007d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49087f643e278000076", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49087f643e278000078", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c49087f643e278000076", "content_type_id"=>"5470c49087f643e278000076", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c48f87f643e278000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49087f643e278000076", "original_id"=>"5470c49087f643e27800007d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c49087f643e27800007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}}} (0.4382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c49087f643e27800007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49087f643e27800007e", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c48f87f643e278000071", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c49087f643e278000076", "original_id"=>"5470c49087f643e27800007d", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49087f643e27800007f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49087f643e278000078", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3641ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}}} (0.3641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49087f643e27800007f", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49087f643e278000078", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49087f643e278000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c49087f643e27800007d", "_type"=>"Locomotive::ContentEntry5470c49087f643e278000078", "content_type_id"=>"5470c49087f643e278000078", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c48f87f643e278000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC}] flags=[] (0.2413ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49087f643e278000078", "original_id"=>"5470c49087f643e27800007f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c49087f643e27800007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5739ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49087f643e278000080", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c48f87f643e278000071", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c49087f643e278000078", "original_id"=>"5470c49087f643e27800007f", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49087f643e278000081"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49087f643e278000078", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5550ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}}} (0.4499ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4468ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49087f643e278000081", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49087f643e278000078", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49087f643e278000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c49087f643e278000078", "content_type_id"=>"5470c49087f643e278000078", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c48f87f643e278000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49087f643e278000078", "original_id"=>"5470c49087f643e278000081", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49087f643e278000082", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c48f87f643e278000071", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c49087f643e278000078", "original_id"=>"5470c49087f643e278000081", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5641ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000071", "parent_id"=>"5470c48f87f643e278000073", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000073", "site_id"=>"5470c48f87f643e278000071", "_id"=>{"$ne"=>"5470c49087f643e278000083"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e278000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49087f643e278000083", "parent_ids"=>["5470c48f87f643e278000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c48f87f643e278000071", "parent_id"=>"5470c48f87f643e278000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC, "editable_elements"=>[{"_id"=>"5470c49087f643e278000084", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC}]}] flags=[] (0.2830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "template_dependencies.en"=>{"$in"=>["5470c49087f643e278000083"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49087f643e278000083"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2789ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49087f643e278000083"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49087f643e278000083", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49087f643e278000085", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c48f87f643e278000071", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49087f643e278000083", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000071", "parent_id"=>"5470c48f87f643e278000073", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000073", "site_id"=>"5470c48f87f643e278000071", "_id"=>{"$ne"=>"5470c49087f643e278000086"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000073", "site_id"=>"5470c48f87f643e278000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e278000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49087f643e278000086", "parent_ids"=>["5470c48f87f643e278000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c48f87f643e278000071", "parent_id"=>"5470c48f87f643e278000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC}] flags=[] (0.2389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "template_dependencies.en"=>{"$in"=>["5470c49087f643e278000086"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49087f643e278000086"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2761ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49087f643e278000086"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000071", "parent_id"=>"5470c48f87f643e278000073", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000073", "site_id"=>"5470c48f87f643e278000071", "_id"=>{"$ne"=>"5470c49087f643e278000087"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000073", "site_id"=>"5470c48f87f643e278000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e278000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6368ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49087f643e278000087", "parent_ids"=>["5470c48f87f643e278000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c48f87f643e278000071", "parent_id"=>"5470c48f87f643e278000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC}] flags=[] (0.2532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "template_dependencies.en"=>{"$in"=>["5470c49087f643e278000087"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49087f643e278000087"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4311ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49087f643e278000087"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (1.0002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c48f87f643e278000071", "parent_id"=>"5470c48f87f643e278000073", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000073", "site_id"=>"5470c48f87f643e278000071", "_id"=>{"$ne"=>"5470c49087f643e278000088"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (3.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c48f87f643e278000073", "site_id"=>"5470c48f87f643e278000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9663ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c48f87f643e278000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7899ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49087f643e278000088", "parent_ids"=>["5470c48f87f643e278000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c48f87f643e278000071", "parent_id"=>"5470c48f87f643e278000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC}] flags=[] (0.4570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "template_dependencies.en"=>{"$in"=>["5470c49087f643e278000088"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49087f643e278000088"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49087f643e278000088"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49087f643e278000088", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4938ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48f87f643e278000071", "locale"=>"en"}} (0.9851ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48f87f643e278000071", "locale"=>"en"}} (1.8330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49087f643e278000089", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c48f87f643e278000071", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49087f643e278000088", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.4430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c48f87f643e278000071"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c48f87f643e278000073"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:14:56 UTC}} flags=[] (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "template_dependencies.en"=>{"$in"=>["5470c48f87f643e278000073"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c48f87f643e278000073", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4792ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c48f87f643e278000074"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c48f87f643e278000071", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.8129ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c49087f643e27800008a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:14:50 UTC, "updated_at"=>2014-11-22 17:14:56 UTC, "memberships"=>[{"_id"=>"5470c49087f643e27800008b", "role"=>"admin", "account_id"=>"5470c48f87f643e278000070"}]}] flags=[] (0.4489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49087f643e27800008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49087f643e27800008a", "_id"=>{"$ne"=>"5470c49087f643e27800008c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49087f643e27800008c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c49087f643e27800008a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC}] flags=[] (0.4709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49087f643e27800008a", "template_dependencies.en"=>{"$in"=>["5470c49087f643e27800008c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49087f643e27800008c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1909ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49087f643e27800008c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49087f643e27800008c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6888ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49087f643e27800008d", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c49087f643e27800008a", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49087f643e27800008c", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49087f643e27800008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4747ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49087f643e27800008a", "_id"=>{"$ne"=>"5470c49087f643e27800008e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.1996ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49087f643e27800008a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9968ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49087f643e27800008e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c49087f643e27800008a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC}] flags=[] (0.2902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49087f643e27800008a", "template_dependencies.en"=>{"$in"=>["5470c49087f643e27800008e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49087f643e27800008e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3767ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49087f643e27800008e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49087f643e27800008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49087f643e27800008a", "_id"=>{"$ne"=>"5470c49087f643e27800008f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49087f643e27800008a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.6651ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49087f643e27800008f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c49087f643e27800008a", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC}] flags=[] (0.5753ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49087f643e27800008a", "template_dependencies.en"=>{"$in"=>["5470c49087f643e27800008f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49087f643e27800008f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4287ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49087f643e27800008f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1233ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49087f643e27800008f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49087f643e278000090", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c49087f643e27800008a", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49087f643e27800008f", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49087f643e27800008a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c49087f643e278000091", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c49087f643e27800008a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c49087f643e278000092", "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC, "entries_custom_fields"=>[{"_id"=>"5470c49087f643e278000092", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2577ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49087f643e278000093"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000091"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49087f643e278000091", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000091"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4601ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49087f643e278000093", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49087f643e278000091", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c49087f643e278000091", "content_type_id"=>"5470c49087f643e278000091", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c49087f643e27800008a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:14:56 UTC, "created_at"=>2014-11-22 17:14:56 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49087f643e278000091", "original_id"=>"5470c49087f643e278000093", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2178ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49087f643e278000094", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c49087f643e27800008a", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c49087f643e278000091", "original_id"=>"5470c49087f643e278000093", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49087f643e27800007f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49087f643e278000081"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49087f643e278000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5519ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.6299ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49087f643e278000078"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:56 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49087f643e278000078"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49087f643e278000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c48f87f643e278000071", "_id"=>"5470c49087f643e278000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6850ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:14:56 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6602ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6080ms) Rendered text template (0.0ms) Completed 200 OK in 5.8ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:14:56 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6132ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"stuff", "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48f87f643e278000071", "locale"=>"en"}} (0.5550ms) Rendered text template (0.0ms) Completed 200 OK in 7.9ms (Views: 1.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49087f643e278000078"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49087f643e278000078", "updated_at"=>{"$lt"=>2014-11-22 17:14:56 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c48f87f643e278000071"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c49087f643e278000078"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5679ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c49087f643e27800007f"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:56 UTC}} flags=[] (0.5250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49087f643e278000078", "original_id"=>"5470c49087f643e27800007f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470c49087f643e27800007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000076"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c49087f643e278000076"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c49087f643e27800007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49087f643e278000078"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c49087f643e278000080"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c48f87f643e278000071", :content_type_slug=>"examples"}, "content"=>["Findable entry", "John Doe", "Some stuff"]}} flags=[] (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c48f87f643e278000071"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.7011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c49087f643e278000078"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2460ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c49087f643e278000081"} update={"$set"=>{"updated_at"=>2014-11-22 17:14:56 UTC}} flags=[] (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49087f643e278000078", "original_id"=>"5470c49087f643e278000081", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9379ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c49087f643e278000082"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c48f87f643e278000071", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.2112ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:14:56 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.0070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8421ms) Rendered text template (0.0ms) Completed 200 OK in 11.7ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:14:56 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c48f87f643e278000071", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9861ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"stuff", "language"=>"english", "filter"=>{"stored.site_id"=>"5470c48f87f643e278000071", "locale"=>"en"}} (1.6730ms) Rendered text template (0.0ms) Completed 200 OK in 16.7ms (Views: 0.8ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6051ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7827ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5360ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (2.5401ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.9209ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5019ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4439ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c49687f6437b7f000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3a92425228164b5d46cba1cc624c9608b6f29183", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"F6tAcB7zp86sWsan4GAL", "api_key"=>"7f8de685cb04118047d707c2a13024bcd173721f", "updated_at"=>2014-11-22 17:15:02 UTC, "created_at"=>2014-11-22 17:15:02 UTC}] flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c49687f6437b7f000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:15:02 UTC, "updated_at"=>2014-11-22 17:15:02 UTC, "memberships"=>[{"_id"=>"5470c49687f6437b7f000003", "role"=>"admin", "account_id"=>"5470c49687f6437b7f000001"}]}] flags=[] (0.2871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49687f6437b7f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49687f6437b7f000002", "_id"=>{"$ne"=>"5470c49787f6437b7f000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5844ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49787f6437b7f000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c49687f6437b7f000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002", "template_dependencies.en"=>{"$in"=>["5470c49787f6437b7f000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4551ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49787f6437b7f000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49787f6437b7f000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49787f6437b7f000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c49687f6437b7f000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49787f6437b7f000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49687f6437b7f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49687f6437b7f000002", "_id"=>{"$ne"=>"5470c49787f6437b7f000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5512ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49787f6437b7f000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c49687f6437b7f000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.4520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002", "template_dependencies.en"=>{"$in"=>["5470c49787f6437b7f000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7234ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49787f6437b7f000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49687f6437b7f000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c49787f6437b7f000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c49687f6437b7f000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c49787f6437b7f000008", "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC, "entries_custom_fields"=>[{"_id"=>"5470c49787f6437b7f000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.3049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49687f6437b7f000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49787f6437b7f000007"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5772ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c49787f6437b7f000009", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c49687f6437b7f000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c49787f6437b7f00000a", "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC, "entries_custom_fields"=>[{"_id"=>"5470c49787f6437b7f00000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c49787f6437b7f00000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c49787f6437b7f000007", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c49787f6437b7f00000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49687f6437b7f000002", "_id"=>"5470c49787f6437b7f000007"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49787f6437b7f000009"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000007"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1831ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49787f6437b7f000007"} update={"$set"=>{"updated_at"=>2014-11-22 17:15:03 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c49787f6437b7f00000d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c49787f6437b7f000009", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.4022ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49787f6437b7f000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49787f6437b7f000009", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49787f6437b7f00000e"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49787f6437b7f000007", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000007"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49787f6437b7f00000e", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49787f6437b7f000007", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49787f6437b7f000009", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000007", "content_type_id"=>"5470c49787f6437b7f000007", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c49687f6437b7f000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.3099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000007", "original_id"=>"5470c49787f6437b7f00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7188ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c49787f6437b7f00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000009"]}}} (0.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c49787f6437b7f00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49787f6437b7f00000f", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c49687f6437b7f000002", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000007", "original_id"=>"5470c49787f6437b7f00000e", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49787f6437b7f000010"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49787f6437b7f000009", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4730ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000009"]}}} (0.4659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49787f6437b7f000010", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49787f6437b7f000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49787f6437b7f000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c49787f6437b7f00000e", "_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000009", "content_type_id"=>"5470c49787f6437b7f000009", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c49687f6437b7f000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.3419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000009", "original_id"=>"5470c49787f6437b7f000010", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c49787f6437b7f00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7861ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49787f6437b7f000011", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c49687f6437b7f000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000009", "original_id"=>"5470c49787f6437b7f000010", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49787f6437b7f000012"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49787f6437b7f000009", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.6189ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000009"]}}} (0.4680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000009"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.6640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49787f6437b7f000012", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49787f6437b7f000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49787f6437b7f000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000009", "content_type_id"=>"5470c49787f6437b7f000009", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c49687f6437b7f000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.4280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000009", "original_id"=>"5470c49787f6437b7f000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5870ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49787f6437b7f000013", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c49687f6437b7f000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000009", "original_id"=>"5470c49787f6437b7f000012", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.3309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9840ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49687f6437b7f000002", "parent_id"=>"5470c49787f6437b7f000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000004", "site_id"=>"5470c49687f6437b7f000002", "_id"=>{"$ne"=>"5470c49787f6437b7f000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c49787f6437b7f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7992ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49787f6437b7f000014", "parent_ids"=>["5470c49787f6437b7f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c49687f6437b7f000002", "parent_id"=>"5470c49787f6437b7f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC, "editable_elements"=>[{"_id"=>"5470c49787f6437b7f000015", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}]}] flags=[] (0.7889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002", "template_dependencies.en"=>{"$in"=>["5470c49787f6437b7f000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49787f6437b7f000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49787f6437b7f000014", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (4.2648ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49787f6437b7f000016", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c49687f6437b7f000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49787f6437b7f000014", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.3438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0607ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49687f6437b7f000002", "parent_id"=>"5470c49787f6437b7f000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000004", "site_id"=>"5470c49687f6437b7f000002", "_id"=>{"$ne"=>"5470c49787f6437b7f000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000004", "site_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c49787f6437b7f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7489ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49787f6437b7f000017", "parent_ids"=>["5470c49787f6437b7f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c49687f6437b7f000002", "parent_id"=>"5470c49787f6437b7f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.2751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002", "template_dependencies.en"=>{"$in"=>["5470c49787f6437b7f000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4008ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49787f6437b7f000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49687f6437b7f000002", "parent_id"=>"5470c49787f6437b7f000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000004", "site_id"=>"5470c49687f6437b7f000002", "_id"=>{"$ne"=>"5470c49787f6437b7f000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000004", "site_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c49787f6437b7f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6979ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49787f6437b7f000018", "parent_ids"=>["5470c49787f6437b7f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c49687f6437b7f000002", "parent_id"=>"5470c49787f6437b7f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.2759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002", "template_dependencies.en"=>{"$in"=>["5470c49787f6437b7f000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49787f6437b7f000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49687f6437b7f000002", "parent_id"=>"5470c49787f6437b7f000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000004", "site_id"=>"5470c49687f6437b7f000002", "_id"=>{"$ne"=>"5470c49787f6437b7f000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000004", "site_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c49787f6437b7f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49787f6437b7f000019", "parent_ids"=>["5470c49787f6437b7f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c49687f6437b7f000002", "parent_id"=>"5470c49787f6437b7f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.2518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002", "template_dependencies.en"=>{"$in"=>["5470c49787f6437b7f000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5677ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49787f6437b7f000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49787f6437b7f000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6251ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c49687f6437b7f000002", "locale"=>"en"}} (1.1113ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c49687f6437b7f000002", "locale"=>"en"}} (0.7851ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49787f6437b7f00001a", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c49687f6437b7f000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49787f6437b7f000019", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7772ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c49787f6437b7f000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:15:03 UTC}} flags=[] (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002", "template_dependencies.en"=>{"$in"=>["5470c49787f6437b7f000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49787f6437b7f000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6847ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c49787f6437b7f000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c49687f6437b7f000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c49787f6437b7f00001b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:15:02 UTC, "updated_at"=>2014-11-22 17:15:03 UTC, "memberships"=>[{"_id"=>"5470c49787f6437b7f00001c", "role"=>"admin", "account_id"=>"5470c49687f6437b7f000001"}]}] flags=[] (0.3309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49787f6437b7f00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49787f6437b7f00001b", "_id"=>{"$ne"=>"5470c49787f6437b7f00001d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49787f6437b7f00001d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c49787f6437b7f00001b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49787f6437b7f00001b", "template_dependencies.en"=>{"$in"=>["5470c49787f6437b7f00001d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f00001d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3417ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49787f6437b7f00001d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49787f6437b7f00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49787f6437b7f00001e", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c49787f6437b7f00001b", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49787f6437b7f00001d", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49787f6437b7f00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49787f6437b7f00001b", "_id"=>{"$ne"=>"5470c49787f6437b7f00001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49787f6437b7f00001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49787f6437b7f00001f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c49787f6437b7f00001b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49787f6437b7f00001b", "template_dependencies.en"=>{"$in"=>["5470c49787f6437b7f00001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3860ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49787f6437b7f00001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49787f6437b7f00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49787f6437b7f00001b", "_id"=>{"$ne"=>"5470c49787f6437b7f000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49787f6437b7f00001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49787f6437b7f000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c49787f6437b7f00001b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49787f6437b7f00001b", "template_dependencies.en"=>{"$in"=>["5470c49787f6437b7f000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49787f6437b7f000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49787f6437b7f000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49787f6437b7f000020", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3352ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49787f6437b7f000021", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c49787f6437b7f00001b", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49787f6437b7f000020", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49787f6437b7f00001b", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4332ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c49787f6437b7f000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c49787f6437b7f00001b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c49787f6437b7f000023", "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC, "entries_custom_fields"=>[{"_id"=>"5470c49787f6437b7f000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49787f6437b7f000024"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49787f6437b7f000022", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49787f6437b7f000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4251ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49787f6437b7f000024", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49787f6437b7f000022", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000022", "content_type_id"=>"5470c49787f6437b7f000022", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c49787f6437b7f00001b", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:15:03 UTC, "created_at"=>2014-11-22 17:15:03 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000022", "original_id"=>"5470c49787f6437b7f000024", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49787f6437b7f000025", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c49787f6437b7f00001b", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c49787f6437b7f000022", "original_id"=>"5470c49787f6437b7f000024", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1810ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 18:15:04 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.2300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c49687f6437b7f000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6149ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.1ms) Completed 200 OK in 43.1ms (Views: 32.8ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 18:15:04 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (8ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 18:15:04 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (8ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 18:15:04 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 18:15:05 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c49687f6437b7f000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5867ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c49687f6437b7f000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 17:15:05 UTC, "updated_at"=>2014-11-22 17:15:05 UTC}} flags=[] (0.1428ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c49687f6437b7f000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 17:15:05 UTC, "current_sign_in_at"=>2014-11-22 17:15:05 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 17:15:05 UTC}} flags=[] (0.1321ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 18.2ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:15:05 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c49687f6437b7f000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c49687f6437b7f000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3697ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.7447ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4832914260731] (0.2036ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c49787f6437b7f000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c49787f6437b7f000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7460ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (27.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (4.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (10.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (48.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c49687f6437b7f000001", :role=>:admin}}}} (0.6711ms) Rendered locomotive/shared/_main_app_head.html.haml (4.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (17.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c49687f6437b7f000001"}} (0.4768ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c49687f6437b7f000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6289ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (5.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.5ms) Rendered locomotive/shared/_main_app_header.html.haml (6.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (38.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 149.3ms (Views: 127.2ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 18:15:05 +0100 Served asset /locomotive.css - 200 OK (48ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 18:15:05 +0100 Served asset /locomotive.js - 200 OK (123ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 18:15:05 +0100 Served asset /locomotive/search_bar.js - 200 OK (6ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 18:15:05 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 18:15:05 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 18:15:05 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 18:15:05 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2014-11-22 18:15:05 +0100 Processing by Locomotive::ContentTypesController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c49687f6437b7f000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c49687f6437b7f000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (2.9750ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4833865171559] (0.0899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c49687f6437b7f000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c49787f6437b7f000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c49787f6437b7f000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6993ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (19.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49687f6437b7f000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7472ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/custom_fields/_select_templates.html.haml (5.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/custom_fields/_form.html.haml (60.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49687f6437b7f000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2839ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_types/_form.html.haml (97.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_form_actions.html.haml (2.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (131.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c49687f6437b7f000001", :role=>:admin}}}} (0.5569ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (6.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c49687f6437b7f000001"}} (0.4210ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c49687f6437b7f000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4981ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (7.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 167.6ms (Views: 155.8ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2014-11-22 18:15:06 +0100 Served asset /locomotive/form/input-sep.png - 200 OK (2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0362ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (3.1333ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4720ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2422ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1992ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.4162ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c49a87f6437b7f000027", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3e3cb65b526b35be65c90848c2af31454c352c53", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"4PUqzZxzgxmr855zKPzp", "api_key"=>"8298abb9c5be41314b3739c3d9604743865d10bb", "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c49a87f6437b7f000028", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:15:02 UTC, "updated_at"=>2014-11-22 17:15:06 UTC, "memberships"=>[{"_id"=>"5470c49a87f6437b7f000029", "role"=>"admin", "account_id"=>"5470c49a87f6437b7f000027"}]}] flags=[] (0.1538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49a87f6437b7f000028", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49a87f6437b7f000028", "_id"=>{"$ne"=>"5470c49a87f6437b7f00002a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.2940ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49a87f6437b7f00002a", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c49a87f6437b7f000028", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028", "template_dependencies.en"=>{"$in"=>["5470c49a87f6437b7f00002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2799ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49a87f6437b7f00002a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49a87f6437b7f00002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49a87f6437b7f00002b", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c49a87f6437b7f000028", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49a87f6437b7f00002a", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49a87f6437b7f000028", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49a87f6437b7f000028", "_id"=>{"$ne"=>"5470c49a87f6437b7f00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4542ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49a87f6437b7f00002c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c49a87f6437b7f000028", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028", "template_dependencies.en"=>{"$in"=>["5470c49a87f6437b7f00002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2630ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49a87f6437b7f00002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49a87f6437b7f000028", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c49a87f6437b7f00002d", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c49a87f6437b7f000028", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c49a87f6437b7f00002e", "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC, "entries_custom_fields"=>[{"_id"=>"5470c49a87f6437b7f00002e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49a87f6437b7f000028", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49a87f6437b7f00002d"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8912ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c49a87f6437b7f00002f", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c49a87f6437b7f000028", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c49a87f6437b7f000030", "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC, "entries_custom_fields"=>[{"_id"=>"5470c49a87f6437b7f000030", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c49a87f6437b7f000031", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002d", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c49a87f6437b7f000032", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.4709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49a87f6437b7f000028", "_id"=>"5470c49a87f6437b7f00002d"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49a87f6437b7f00002f"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2190ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002d"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.2010ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c49a87f6437b7f00002d"} update={"$set"=>{"updated_at"=>2014-11-22 17:15:06 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c49a87f6437b7f000033", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002f", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49a87f6437b7f00002d"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002f", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49a87f6437b7f000034"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002d"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49a87f6437b7f00002d", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002d"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49a87f6437b7f000034", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49a87f6437b7f00002d", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002f", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002d", "content_type_id"=>"5470c49a87f6437b7f00002d", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c49a87f6437b7f000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.5250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002d", "original_id"=>"5470c49a87f6437b7f000034", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3409ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c49a87f6437b7f000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002f"]}}} (0.9232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c49a87f6437b7f000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002f"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6778ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49a87f6437b7f000035", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c49a87f6437b7f000028", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002d", "original_id"=>"5470c49a87f6437b7f000034", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49a87f6437b7f000036"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002f"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49a87f6437b7f00002f", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002f"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.6659ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002f"]}}} (0.3951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49a87f6437b7f000036", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49a87f6437b7f00002f", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002d"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c49a87f6437b7f000034", "_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002f", "content_type_id"=>"5470c49a87f6437b7f00002f", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c49a87f6437b7f000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002f", "original_id"=>"5470c49a87f6437b7f000036", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4144ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c49a87f6437b7f000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002f"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7210ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49a87f6437b7f000037", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c49a87f6437b7f000028", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002f", "original_id"=>"5470c49a87f6437b7f000036", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49a87f6437b7f000038"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002f"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49a87f6437b7f00002f", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002f"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4349ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002f"]}}} (0.3409ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f00002f"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49a87f6437b7f000038", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49a87f6437b7f00002f", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002d"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002f", "content_type_id"=>"5470c49a87f6437b7f00002f", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c49a87f6437b7f000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002f", "original_id"=>"5470c49a87f6437b7f000038", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49a87f6437b7f000039", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c49a87f6437b7f000028", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f00002f", "original_id"=>"5470c49a87f6437b7f000038", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5231ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49a87f6437b7f000028", "parent_id"=>"5470c49a87f6437b7f00002a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00002a", "site_id"=>"5470c49a87f6437b7f000028", "_id"=>{"$ne"=>"5470c49a87f6437b7f00003a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c49a87f6437b7f00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9851ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49a87f6437b7f00003a", "parent_ids"=>["5470c49a87f6437b7f00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c49a87f6437b7f000028", "parent_id"=>"5470c49a87f6437b7f00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC, "editable_elements"=>[{"_id"=>"5470c49a87f6437b7f00003b", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}]}] flags=[] (0.8330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028", "template_dependencies.en"=>{"$in"=>["5470c49a87f6437b7f00003a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00003a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6831ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49a87f6437b7f00003a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2723ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49a87f6437b7f00003a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4981ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49a87f6437b7f00003c", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c49a87f6437b7f000028", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49a87f6437b7f00003a", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5457ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49a87f6437b7f000028", "parent_id"=>"5470c49a87f6437b7f00002a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00002a", "site_id"=>"5470c49a87f6437b7f000028", "_id"=>{"$ne"=>"5470c49a87f6437b7f00003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00002a", "site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c49a87f6437b7f00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49a87f6437b7f00003d", "parent_ids"=>["5470c49a87f6437b7f00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c49a87f6437b7f000028", "parent_id"=>"5470c49a87f6437b7f00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028", "template_dependencies.en"=>{"$in"=>["5470c49a87f6437b7f00003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49a87f6437b7f00003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49a87f6437b7f000028", "parent_id"=>"5470c49a87f6437b7f00002a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00002a", "site_id"=>"5470c49a87f6437b7f000028", "_id"=>{"$ne"=>"5470c49a87f6437b7f00003e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00002a", "site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c49a87f6437b7f00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49a87f6437b7f00003e", "parent_ids"=>["5470c49a87f6437b7f00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c49a87f6437b7f000028", "parent_id"=>"5470c49a87f6437b7f00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028", "template_dependencies.en"=>{"$in"=>["5470c49a87f6437b7f00003e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3347ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00003e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3073ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49a87f6437b7f00003e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5424ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49a87f6437b7f000028", "parent_id"=>"5470c49a87f6437b7f00002a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00002a", "site_id"=>"5470c49a87f6437b7f000028", "_id"=>{"$ne"=>"5470c49a87f6437b7f00003f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00002a", "site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c49a87f6437b7f00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49a87f6437b7f00003f", "parent_ids"=>["5470c49a87f6437b7f00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c49a87f6437b7f000028", "parent_id"=>"5470c49a87f6437b7f00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028", "template_dependencies.en"=>{"$in"=>["5470c49a87f6437b7f00003f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f00003f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3028ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49a87f6437b7f00003f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49a87f6437b7f00003f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c49a87f6437b7f000028", "locale"=>"en"}} (0.5541ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c49a87f6437b7f000028", "locale"=>"en"}} (0.5229ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49a87f6437b7f000040", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c49a87f6437b7f000028", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49a87f6437b7f00003f", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4051ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c49a87f6437b7f00002a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:15:06 UTC}} flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028", "template_dependencies.en"=>{"$in"=>["5470c49a87f6437b7f00002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49a87f6437b7f00002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4508ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c49a87f6437b7f00002b"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c49a87f6437b7f000028", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c49a87f6437b7f000041", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:15:02 UTC, "updated_at"=>2014-11-22 17:15:06 UTC, "memberships"=>[{"_id"=>"5470c49a87f6437b7f000042", "role"=>"admin", "account_id"=>"5470c49a87f6437b7f000027"}]}] flags=[] (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49a87f6437b7f000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49a87f6437b7f000041", "_id"=>{"$ne"=>"5470c49a87f6437b7f000043"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49a87f6437b7f000043", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c49a87f6437b7f000041", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000041", "template_dependencies.en"=>{"$in"=>["5470c49a87f6437b7f000043"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f000043"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49a87f6437b7f000043"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49a87f6437b7f000043", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49a87f6437b7f000044", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c49a87f6437b7f000041", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49a87f6437b7f000043", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49a87f6437b7f000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49a87f6437b7f000041", "_id"=>{"$ne"=>"5470c49a87f6437b7f000045"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49a87f6437b7f000041"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49a87f6437b7f000045", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c49a87f6437b7f000041", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.2067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000041", "template_dependencies.en"=>{"$in"=>["5470c49a87f6437b7f000045"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f000045"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3109ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49a87f6437b7f000045"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c49a87f6437b7f000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49a87f6437b7f000041", "_id"=>{"$ne"=>"5470c49a87f6437b7f000046"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c49a87f6437b7f000041"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c49a87f6437b7f000046", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c49a87f6437b7f000041", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000041", "template_dependencies.en"=>{"$in"=>["5470c49a87f6437b7f000046"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c49a87f6437b7f000046"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6752ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c49a87f6437b7f000046"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c49a87f6437b7f000046", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49a87f6437b7f000047", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c49a87f6437b7f000041", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c49a87f6437b7f000046", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49a87f6437b7f000041", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5412ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c49a87f6437b7f000048", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c49a87f6437b7f000041", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c49a87f6437b7f000049", "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC, "entries_custom_fields"=>[{"_id"=>"5470c49a87f6437b7f000049", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c49a87f6437b7f00004a"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f000048"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c49a87f6437b7f000048", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c49a87f6437b7f000048"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c49a87f6437b7f00004a", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c49a87f6437b7f000048", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f000048", "content_type_id"=>"5470c49a87f6437b7f000048", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c49a87f6437b7f000041", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:15:06 UTC, "created_at"=>2014-11-22 17:15:06 UTC}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f000048", "original_id"=>"5470c49a87f6437b7f00004a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c49a87f6437b7f00004b", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c49a87f6437b7f000041", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c49a87f6437b7f000048", "original_id"=>"5470c49a87f6437b7f00004a", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1450ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 18:15:06 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c49a87f6437b7f000027"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4201ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (3.7ms) Completed 200 OK in 7.8ms (Views: 5.1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 18:15:06 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c49a87f6437b7f000027"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8881ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c49a87f6437b7f000027"} update={"$set"=>{"remember_created_at"=>2014-11-22 17:15:06 UTC, "updated_at"=>2014-11-22 17:15:06 UTC}} flags=[] (0.3479ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c49a87f6437b7f000027"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 17:15:06 UTC, "current_sign_in_at"=>2014-11-22 17:15:06 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 17:15:06 UTC}} flags=[] (0.3972ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 16.4ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:15:06 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c49a87f6437b7f000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c49a87f6437b7f000027"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.4701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.0979ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4859130929643] (0.0730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c49a87f6437b7f00002d"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c49a87f6437b7f00002f"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6552ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (13.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (4.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (19.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c49a87f6437b7f000027", :role=>:admin}}}} (0.5028ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c49a87f6437b7f000027"}} (0.4201ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c49a87f6437b7f000027"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4790ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (6.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 48.4ms (Views: 34.1ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2014-11-22 18:15:06 +0100 Processing by Locomotive::PagesController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c49a87f6437b7f000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c49a87f6437b7f000027"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1520ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4859255824939] (0.0749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5183ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c49a87f6437b7f00002d"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c49a87f6437b7f00002f"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6859ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (13.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_assets/_picker.html.haml (6.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/theme_assets/_picker.html.haml (4.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_editable_elements.html.haml (9.8ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c49a87f6437b7f000028"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (2.5282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c49a87f6437b7f000028"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7589ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_form.html.haml (113.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_form_actions.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (135.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c49a87f6437b7f000027", :role=>:admin}}}} (0.5128ms) Rendered locomotive/shared/_main_app_head.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (5.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c49a87f6437b7f000027"}} (0.8152ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c49a87f6437b7f000027"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1022ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (3.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (2.6ms) Rendered locomotive/shared/_main_app_header.html.haml (3.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (17.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 181.8ms (Views: 168.6ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2014-11-22 18:15:07 +0100 Served asset /locomotive/jquery/images/ui-icons_222222_256x240.png - 200 OK (5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7967ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.0602ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0190ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.7200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.7927ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9360ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9401ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6769ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.6941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4218ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c66087f6433c7d000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"a2910382d4eafa5ecde06055bd3117222db9dc7f", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"qSeGsqyKq4zkeYqJijxn", "api_key"=>"5321b746f0cbd57a2443555aa62dc89b9e20259f", "updated_at"=>2014-11-22 17:22:40 UTC, "created_at"=>2014-11-22 17:22:40 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7019ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c66087f6433c7d000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:22:39 UTC, "updated_at"=>2014-11-22 17:22:40 UTC, "memberships"=>[{"_id"=>"5470c66087f6433c7d000003", "role"=>"admin", "account_id"=>"5470c66087f6433c7d000001"}]}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66087f6433c7d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66087f6433c7d000002", "_id"=>{"$ne"=>"5470c66087f6433c7d000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66087f6433c7d000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c66087f6433c7d000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:40 UTC, "created_at"=>2014-11-22 17:22:40 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66087f6433c7d000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3667ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002", "template_dependencies.en"=>{"$in"=>["5470c66087f6433c7d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3622ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66087f6433c7d000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66087f6433c7d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66087f6433c7d000002", "_id"=>{"$ne"=>"5470c66087f6433c7d000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66087f6433c7d000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c66087f6433c7d000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:40 UTC, "created_at"=>2014-11-22 17:22:40 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002", "template_dependencies.en"=>{"$in"=>["5470c66087f6433c7d000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66087f6433c7d000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3147ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66087f6433c7d000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c66087f6433c7d000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3910ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c66087f6433c7d000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c66087f6433c7d000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c66087f6433c7d000007", "updated_at"=>2014-11-22 17:22:40 UTC, "created_at"=>2014-11-22 17:22:40 UTC, "entries_custom_fields"=>[{"_id"=>"5470c66087f6433c7d000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c66087f6433c7d000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c66087f6433c7d000006"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c66087f6433c7d000008", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c66087f6433c7d000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c66087f6433c7d000009", "updated_at"=>2014-11-22 17:22:40 UTC, "created_at"=>2014-11-22 17:22:40 UTC, "entries_custom_fields"=>[{"_id"=>"5470c66087f6433c7d000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c66087f6433c7d00000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c66087f6433c7d000006", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c66087f6433c7d00000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c66087f6433c7d000002", "_id"=>"5470c66087f6433c7d000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c66087f6433c7d000008"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6001ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66087f6433c7d000006"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.2201ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c66087f6433c7d000006"} update={"$set"=>{"updated_at"=>2014-11-22 17:22:40 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c66087f6433c7d00000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c66087f6433c7d000008", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c66087f6433c7d000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c66087f6433c7d000008", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c66187f6433c7d00000d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c66087f6433c7d000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c66087f6433c7d000006", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66087f6433c7d000006"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c66187f6433c7d00000d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c66087f6433c7d000006", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c66087f6433c7d000008", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c66087f6433c7d000006", "content_type_id"=>"5470c66087f6433c7d000006", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c66087f6433c7d000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:22:41 UTC, "created_at"=>2014-11-22 17:22:41 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c66187f6433c7d00000d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c66087f6433c7d000008"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c66187f6433c7d00000e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c66087f6433c7d000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c66087f6433c7d000008", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66087f6433c7d000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4528ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66087f6433c7d000008"]}}} (0.4268ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c66187f6433c7d00000e", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c66087f6433c7d000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c66087f6433c7d000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c66187f6433c7d00000d", "_type"=>"Locomotive::ContentEntry5470c66087f6433c7d000008", "content_type_id"=>"5470c66087f6433c7d000008", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c66087f6433c7d000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:22:41 UTC, "created_at"=>2014-11-22 17:22:41 UTC}] flags=[] (0.2501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c66187f6433c7d00000f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c66087f6433c7d000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c66087f6433c7d000008", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66087f6433c7d000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4511ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66087f6433c7d000008"]}}} (0.3428ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66087f6433c7d000008"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4959ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c66187f6433c7d00000f", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c66087f6433c7d000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c66087f6433c7d000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c66087f6433c7d000008", "content_type_id"=>"5470c66087f6433c7d000008", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c66087f6433c7d000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:22:41 UTC, "created_at"=>2014-11-22 17:22:41 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7370ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66087f6433c7d000002", "parent_id"=>"5470c66087f6433c7d000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66087f6433c7d000004", "site_id"=>"5470c66087f6433c7d000002", "_id"=>{"$ne"=>"5470c66287f6433c7d000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c66087f6433c7d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5620ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66287f6433c7d000010", "parent_ids"=>["5470c66087f6433c7d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c66087f6433c7d000002", "parent_id"=>"5470c66087f6433c7d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:42 UTC, "created_at"=>2014-11-22 17:22:42 UTC, "editable_elements"=>[{"_id"=>"5470c66287f6433c7d000011", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:22:42 UTC, "created_at"=>2014-11-22 17:22:42 UTC}]}] flags=[] (0.3040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002", "template_dependencies.en"=>{"$in"=>["5470c66287f6433c7d000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66287f6433c7d000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2792ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66287f6433c7d000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66087f6433c7d000002", "parent_id"=>"5470c66087f6433c7d000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66087f6433c7d000004", "site_id"=>"5470c66087f6433c7d000002", "_id"=>{"$ne"=>"5470c66287f6433c7d000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66087f6433c7d000004", "site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c66087f6433c7d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66287f6433c7d000012", "parent_ids"=>["5470c66087f6433c7d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c66087f6433c7d000002", "parent_id"=>"5470c66087f6433c7d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:42 UTC, "created_at"=>2014-11-22 17:22:42 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002", "template_dependencies.en"=>{"$in"=>["5470c66287f6433c7d000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66287f6433c7d000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3731ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66287f6433c7d000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66087f6433c7d000002", "parent_id"=>"5470c66087f6433c7d000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66087f6433c7d000004", "site_id"=>"5470c66087f6433c7d000002", "_id"=>{"$ne"=>"5470c66287f6433c7d000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66087f6433c7d000004", "site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c66087f6433c7d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66287f6433c7d000013", "parent_ids"=>["5470c66087f6433c7d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c66087f6433c7d000002", "parent_id"=>"5470c66087f6433c7d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:42 UTC, "created_at"=>2014-11-22 17:22:42 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002", "template_dependencies.en"=>{"$in"=>["5470c66287f6433c7d000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66287f6433c7d000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2871ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66287f6433c7d000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66087f6433c7d000002", "parent_id"=>"5470c66087f6433c7d000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66087f6433c7d000004", "site_id"=>"5470c66087f6433c7d000002", "_id"=>{"$ne"=>"5470c66287f6433c7d000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66087f6433c7d000004", "site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c66087f6433c7d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66287f6433c7d000014", "parent_ids"=>["5470c66087f6433c7d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c66087f6433c7d000002", "parent_id"=>"5470c66087f6433c7d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:42 UTC, "created_at"=>2014-11-22 17:22:42 UTC}] flags=[] (0.2389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002", "template_dependencies.en"=>{"$in"=>["5470c66287f6433c7d000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66287f6433c7d000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3002ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66287f6433c7d000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4213ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c66087f6433c7d000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:22:43 UTC}} flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002", "template_dependencies.en"=>{"$in"=>["5470c66087f6433c7d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c66487f6433c7d000015", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:22:39 UTC, "updated_at"=>2014-11-22 17:22:44 UTC, "memberships"=>[{"_id"=>"5470c66487f6433c7d000016", "role"=>"admin", "account_id"=>"5470c66087f6433c7d000001"}]}] flags=[] (0.2582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66487f6433c7d000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66487f6433c7d000015", "_id"=>{"$ne"=>"5470c66487f6433c7d000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8130ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66487f6433c7d000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c66487f6433c7d000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:44 UTC, "created_at"=>2014-11-22 17:22:44 UTC}] flags=[] (0.4652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66487f6433c7d000015", "template_dependencies.en"=>{"$in"=>["5470c66487f6433c7d000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66487f6433c7d000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4332ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66487f6433c7d000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66487f6433c7d000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66487f6433c7d000015", "_id"=>{"$ne"=>"5470c66487f6433c7d000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66487f6433c7d000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66487f6433c7d000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c66487f6433c7d000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:44 UTC, "created_at"=>2014-11-22 17:22:44 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66487f6433c7d000015", "template_dependencies.en"=>{"$in"=>["5470c66487f6433c7d000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66487f6433c7d000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2770ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66487f6433c7d000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66487f6433c7d000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66487f6433c7d000015", "_id"=>{"$ne"=>"5470c66487f6433c7d000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66487f6433c7d000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4082ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66487f6433c7d000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c66487f6433c7d000015", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:44 UTC, "created_at"=>2014-11-22 17:22:44 UTC}] flags=[] (0.1893ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66487f6433c7d000015", "template_dependencies.en"=>{"$in"=>["5470c66487f6433c7d000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66487f6433c7d000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3049ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66487f6433c7d000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c66487f6433c7d000015", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0161ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c66587f6433c7d00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c66487f6433c7d000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c66587f6433c7d00001b", "updated_at"=>2014-11-22 17:22:45 UTC, "created_at"=>2014-11-22 17:22:45 UTC, "entries_custom_fields"=>[{"_id"=>"5470c66587f6433c7d00001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.4411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c66587f6433c7d00001c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c66587f6433c7d00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c66587f6433c7d00001a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66587f6433c7d00001a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c66587f6433c7d00001c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c66587f6433c7d00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c66587f6433c7d00001a", "content_type_id"=>"5470c66587f6433c7d00001a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c66487f6433c7d000015", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:22:45 UTC, "created_at"=>2014-11-22 17:22:45 UTC}] flags=[] (0.2711ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.7579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c66087f6433c7d000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4210ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (17.3ms) Completed 200 OK in 34.6ms (Views: 29.5ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (8ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (8ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c66087f6433c7d000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5651ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c66087f6433c7d000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 17:22:47 UTC, "updated_at"=>2014-11-22 17:22:47 UTC}} flags=[] (0.1349ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c66087f6433c7d000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 17:22:47 UTC, "current_sign_in_at"=>2014-11-22 17:22:47 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 17:22:47 UTC}} flags=[] (0.1490ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 19.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c66087f6433c7d000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c66087f6433c7d000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.5340ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4880881642822] (0.1240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.6011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c66087f6433c7d000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c66087f6433c7d000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8137ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (27.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (1.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (9.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (47.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c66087f6433c7d000001", :role=>:admin}}}} (0.5040ms) Rendered locomotive/shared/_main_app_head.html.haml (2.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (18.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c66087f6433c7d000001"}} (0.6928ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c66087f6433c7d000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6769ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (3.8ms) Rendered locomotive/shared/_main_app_header.html.haml (5.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (28.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 133.2ms (Views: 115.8ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Served asset /locomotive.js - 200 OK (101ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Served asset /locomotive.css - 200 OK (40ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Served asset /locomotive/search_bar.js - 200 OK (6ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c66087f6433c7d000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c66087f6433c7d000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2572ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4880488278200] (0.0761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c66087f6433c7d000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c66087f6433c7d000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c66087f6433c7d000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7079ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (13.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (6.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c66087f6433c7d000001", :role=>:admin}}}} (0.5128ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c66087f6433c7d000001"}} (0.5581ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c66087f6433c7d000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5493ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (1.0ms) Rendered locomotive/shared/_main_app_header.html.haml (1.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (9.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 54.6ms (Views: 40.8ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 18:22:47 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c66087f6433c7d000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c66087f6433c7d000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) Completed 200 OK in 738.3ms (Views: 0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (3.1269ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.8818ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.1689ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9379ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8938ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c66a87f6433c7d00001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"4b341903b8007dd72e1d38b7b27b9d08d2b88442", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"qpfycjMGseKXBD5hiodS", "api_key"=>"23b14937af59cdb8db1b753b0d0319964d8ec7ae", "updated_at"=>2014-11-22 17:22:50 UTC, "created_at"=>2014-11-22 17:22:50 UTC}] flags=[] (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c66a87f6433c7d00001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:22:39 UTC, "updated_at"=>2014-11-22 17:22:50 UTC, "memberships"=>[{"_id"=>"5470c66a87f6433c7d00001f", "role"=>"admin", "account_id"=>"5470c66a87f6433c7d00001d"}]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66a87f6433c7d00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66a87f6433c7d00001e", "_id"=>{"$ne"=>"5470c66a87f6433c7d000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66a87f6433c7d000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c66a87f6433c7d00001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:50 UTC, "created_at"=>2014-11-22 17:22:50 UTC}] flags=[] (0.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66a87f6433c7d00001e", "template_dependencies.en"=>{"$in"=>["5470c66a87f6433c7d000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66a87f6433c7d000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66a87f6433c7d000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66a87f6433c7d00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66a87f6433c7d00001e", "_id"=>{"$ne"=>"5470c66a87f6433c7d000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66a87f6433c7d00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7739ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66a87f6433c7d000021", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c66a87f6433c7d00001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:50 UTC, "created_at"=>2014-11-22 17:22:50 UTC}] flags=[] (0.5898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66a87f6433c7d00001e", "template_dependencies.en"=>{"$in"=>["5470c66a87f6433c7d000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66a87f6433c7d000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66a87f6433c7d000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c66a87f6433c7d00001e", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6940ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c66a87f6433c7d000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c66a87f6433c7d00001e", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c66a87f6433c7d000023", "updated_at"=>2014-11-22 17:22:50 UTC, "created_at"=>2014-11-22 17:22:50 UTC, "entries_custom_fields"=>[{"_id"=>"5470c66a87f6433c7d000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c66a87f6433c7d00001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c66a87f6433c7d000022"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6862ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c66a87f6433c7d000024", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c66a87f6433c7d00001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c66a87f6433c7d000025", "updated_at"=>2014-11-22 17:22:50 UTC, "created_at"=>2014-11-22 17:22:50 UTC, "entries_custom_fields"=>[{"_id"=>"5470c66a87f6433c7d000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c66a87f6433c7d000026", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c66a87f6433c7d000022", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c66a87f6433c7d000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c66a87f6433c7d00001e", "_id"=>"5470c66a87f6433c7d000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c66a87f6433c7d000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5467ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66a87f6433c7d000022"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1631ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c66a87f6433c7d000022"} update={"$set"=>{"updated_at"=>2014-11-22 17:22:50 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c66a87f6433c7d000028", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c66a87f6433c7d000024", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.3388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c66a87f6433c7d000022"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c66a87f6433c7d000024", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c66a87f6433c7d000029"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c66a87f6433c7d000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c66a87f6433c7d000022", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66a87f6433c7d000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5410ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c66a87f6433c7d000029", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c66a87f6433c7d000022", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c66a87f6433c7d000024", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c66a87f6433c7d000022", "content_type_id"=>"5470c66a87f6433c7d000022", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c66a87f6433c7d00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:22:50 UTC, "created_at"=>2014-11-22 17:22:50 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c66a87f6433c7d000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c66a87f6433c7d000024"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c66b87f6433c7d00002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c66a87f6433c7d000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c66a87f6433c7d000024", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66a87f6433c7d000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3791ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66a87f6433c7d000024"]}}} (0.4468ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c66b87f6433c7d00002a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c66a87f6433c7d000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c66a87f6433c7d000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c66a87f6433c7d000029", "_type"=>"Locomotive::ContentEntry5470c66a87f6433c7d000024", "content_type_id"=>"5470c66a87f6433c7d000024", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c66a87f6433c7d00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:22:51 UTC, "created_at"=>2014-11-22 17:22:51 UTC}] flags=[] (0.2701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c66b87f6433c7d00002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c66a87f6433c7d000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c66a87f6433c7d000024", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4017ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66a87f6433c7d000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5131ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66a87f6433c7d000024"]}}} (0.3581ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66a87f6433c7d000024"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c66b87f6433c7d00002b", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c66a87f6433c7d000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c66a87f6433c7d000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c66a87f6433c7d000024", "content_type_id"=>"5470c66a87f6433c7d000024", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c66a87f6433c7d00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:22:51 UTC, "created_at"=>2014-11-22 17:22:51 UTC}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6657ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66a87f6433c7d00001e", "parent_id"=>"5470c66a87f6433c7d000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4313ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66a87f6433c7d000020", "site_id"=>"5470c66a87f6433c7d00001e", "_id"=>{"$ne"=>"5470c66c87f6433c7d00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c66a87f6433c7d000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5598ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66c87f6433c7d00002c", "parent_ids"=>["5470c66a87f6433c7d000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c66a87f6433c7d00001e", "parent_id"=>"5470c66a87f6433c7d000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:52 UTC, "created_at"=>2014-11-22 17:22:52 UTC, "editable_elements"=>[{"_id"=>"5470c66c87f6433c7d00002d", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:22:52 UTC, "created_at"=>2014-11-22 17:22:52 UTC}]}] flags=[] (0.3152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66a87f6433c7d00001e", "template_dependencies.en"=>{"$in"=>["5470c66c87f6433c7d00002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66c87f6433c7d00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66c87f6433c7d00002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66a87f6433c7d00001e", "parent_id"=>"5470c66a87f6433c7d000020", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4013ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66a87f6433c7d000020", "site_id"=>"5470c66a87f6433c7d00001e", "_id"=>{"$ne"=>"5470c66c87f6433c7d00002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.6022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66a87f6433c7d000020", "site_id"=>"5470c66a87f6433c7d00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c66a87f6433c7d000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0712ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66c87f6433c7d00002e", "parent_ids"=>["5470c66a87f6433c7d000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c66a87f6433c7d00001e", "parent_id"=>"5470c66a87f6433c7d000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:52 UTC, "created_at"=>2014-11-22 17:22:52 UTC}] flags=[] (0.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66a87f6433c7d00001e", "template_dependencies.en"=>{"$in"=>["5470c66c87f6433c7d00002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66c87f6433c7d00002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66c87f6433c7d00002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66a87f6433c7d00001e", "parent_id"=>"5470c66a87f6433c7d000020", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66a87f6433c7d000020", "site_id"=>"5470c66a87f6433c7d00001e", "_id"=>{"$ne"=>"5470c66c87f6433c7d00002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66a87f6433c7d000020", "site_id"=>"5470c66a87f6433c7d00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c66a87f6433c7d000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66c87f6433c7d00002f", "parent_ids"=>["5470c66a87f6433c7d000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c66a87f6433c7d00001e", "parent_id"=>"5470c66a87f6433c7d000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:52 UTC, "created_at"=>2014-11-22 17:22:52 UTC}] flags=[] (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66a87f6433c7d00001e", "template_dependencies.en"=>{"$in"=>["5470c66c87f6433c7d00002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (3.0258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66c87f6433c7d00002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7570ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66c87f6433c7d00002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1936ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9983ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66a87f6433c7d00001e", "parent_id"=>"5470c66a87f6433c7d000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66a87f6433c7d000020", "site_id"=>"5470c66a87f6433c7d00001e", "_id"=>{"$ne"=>"5470c66c87f6433c7d000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66a87f6433c7d000020", "site_id"=>"5470c66a87f6433c7d00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c66a87f6433c7d000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5318ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66c87f6433c7d000030", "parent_ids"=>["5470c66a87f6433c7d000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c66a87f6433c7d00001e", "parent_id"=>"5470c66a87f6433c7d000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:52 UTC, "created_at"=>2014-11-22 17:22:52 UTC}] flags=[] (0.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66a87f6433c7d00001e", "template_dependencies.en"=>{"$in"=>["5470c66c87f6433c7d000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66c87f6433c7d000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66c87f6433c7d000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66a87f6433c7d00001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c66a87f6433c7d00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c66a87f6433c7d000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:22:53 UTC}} flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66a87f6433c7d00001e", "template_dependencies.en"=>{"$in"=>["5470c66a87f6433c7d000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4661ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c66e87f6433c7d000031", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:22:39 UTC, "updated_at"=>2014-11-22 17:22:54 UTC, "memberships"=>[{"_id"=>"5470c66e87f6433c7d000032", "role"=>"admin", "account_id"=>"5470c66a87f6433c7d00001d"}]}] flags=[] (0.2849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66e87f6433c7d000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66e87f6433c7d000031", "_id"=>{"$ne"=>"5470c66e87f6433c7d000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66e87f6433c7d000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c66e87f6433c7d000031", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:54 UTC, "created_at"=>2014-11-22 17:22:54 UTC}] flags=[] (0.2661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66e87f6433c7d000031", "template_dependencies.en"=>{"$in"=>["5470c66e87f6433c7d000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66e87f6433c7d000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3929ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66e87f6433c7d000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1237ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66e87f6433c7d000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6237ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66e87f6433c7d000031", "_id"=>{"$ne"=>"5470c66e87f6433c7d000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66e87f6433c7d000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66e87f6433c7d000034", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c66e87f6433c7d000031", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:54 UTC, "created_at"=>2014-11-22 17:22:54 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66e87f6433c7d000031", "template_dependencies.en"=>{"$in"=>["5470c66e87f6433c7d000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3703ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66e87f6433c7d000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66e87f6433c7d000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c66e87f6433c7d000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66e87f6433c7d000031", "_id"=>{"$ne"=>"5470c66e87f6433c7d000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c66e87f6433c7d000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c66e87f6433c7d000035", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c66e87f6433c7d000031", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:54 UTC, "created_at"=>2014-11-22 17:22:54 UTC}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66e87f6433c7d000031", "template_dependencies.en"=>{"$in"=>["5470c66e87f6433c7d000035"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c66e87f6433c7d000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2611ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c66e87f6433c7d000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c66e87f6433c7d000031", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c66e87f6433c7d000036", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c66e87f6433c7d000031", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c66e87f6433c7d000037", "updated_at"=>2014-11-22 17:22:54 UTC, "created_at"=>2014-11-22 17:22:54 UTC, "entries_custom_fields"=>[{"_id"=>"5470c66e87f6433c7d000037", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c66e87f6433c7d000038"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c66e87f6433c7d000036"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c66e87f6433c7d000036", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c66e87f6433c7d000036"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (1.0478ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c66e87f6433c7d000038", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c66e87f6433c7d000036", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c66e87f6433c7d000036", "content_type_id"=>"5470c66e87f6433c7d000036", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c66e87f6433c7d000031", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:22:54 UTC, "created_at"=>2014-11-22 17:22:54 UTC}] flags=[] (0.8450ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:22:55 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66a87f6433c7d00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7119ms) Rendered text template (0.0ms) Completed 200 OK in 10.8ms (Views: 4.1ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 18:22:55 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c66a87f6433c7d00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5598ms) Rendered text template (0.0ms) Completed 200 OK in 433.4ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7761ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5180ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3061ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2000ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7801ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3881ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c67087f6433c7d000039", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"bb259aa050b2c97135ad34dd6bb4cb24588b7878", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"SJ1TANxtiMpG8ysicGzi", "api_key"=>"cfcded167d796adcb455037a22c87697aee60ceb", "updated_at"=>2014-11-22 17:22:56 UTC, "created_at"=>2014-11-22 17:22:56 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c67087f6433c7d00003a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:22:39 UTC, "updated_at"=>2014-11-22 17:22:56 UTC, "memberships"=>[{"_id"=>"5470c67087f6433c7d00003b", "role"=>"admin", "account_id"=>"5470c67087f6433c7d000039"}]}] flags=[] (0.2067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67087f6433c7d00003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67087f6433c7d00003a", "_id"=>{"$ne"=>"5470c67087f6433c7d00003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3326ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67087f6433c7d00003c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c67087f6433c7d00003a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:56 UTC, "created_at"=>2014-11-22 17:22:56 UTC}] flags=[] (0.2601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "template_dependencies.en"=>{"$in"=>["5470c67087f6433c7d00003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67087f6433c7d00003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67087f6433c7d00003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67087f6433c7d00003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67087f6433c7d00003a", "_id"=>{"$ne"=>"5470c67087f6433c7d00003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67087f6433c7d00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67087f6433c7d00003d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c67087f6433c7d00003a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:56 UTC, "created_at"=>2014-11-22 17:22:56 UTC}] flags=[] (0.3729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "template_dependencies.en"=>{"$in"=>["5470c67087f6433c7d00003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67087f6433c7d00003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7739ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67087f6433c7d00003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c67087f6433c7d00003a", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c67087f6433c7d00003e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c67087f6433c7d00003a", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c67087f6433c7d00003f", "updated_at"=>2014-11-22 17:22:56 UTC, "created_at"=>2014-11-22 17:22:56 UTC, "entries_custom_fields"=>[{"_id"=>"5470c67087f6433c7d00003f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c67087f6433c7d00003a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6924ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c67087f6433c7d00003e"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9050ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c67087f6433c7d000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c67087f6433c7d00003a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c67087f6433c7d000041", "updated_at"=>2014-11-22 17:22:56 UTC, "created_at"=>2014-11-22 17:22:56 UTC, "entries_custom_fields"=>[{"_id"=>"5470c67087f6433c7d000041", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c67087f6433c7d000042", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c67087f6433c7d00003e", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c67087f6433c7d000043", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c67087f6433c7d00003a", "_id"=>"5470c67087f6433c7d00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.7080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c67087f6433c7d000040"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6201ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d00003e"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.4008ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c67087f6433c7d00003e"} update={"$set"=>{"updated_at"=>2014-11-22 17:22:56 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c67087f6433c7d000044", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c67087f6433c7d000040", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.5293ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67087f6433c7d00003e"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c67087f6433c7d000040", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67087f6433c7d000045"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d00003e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67087f6433c7d00003e", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d00003e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3710ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c67087f6433c7d000045", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c67087f6433c7d00003e", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c67087f6433c7d000040", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c67087f6433c7d00003e", "content_type_id"=>"5470c67087f6433c7d00003e", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c67087f6433c7d00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:22:56 UTC, "created_at"=>2014-11-22 17:22:56 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c67087f6433c7d000045", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67187f6433c7d000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67087f6433c7d000040", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.7923ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}}} (0.6211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c67187f6433c7d000046", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c67087f6433c7d000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c67087f6433c7d00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c67087f6433c7d000045", "_type"=>"Locomotive::ContentEntry5470c67087f6433c7d000040", "content_type_id"=>"5470c67087f6433c7d000040", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c67087f6433c7d00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:22:57 UTC, "created_at"=>2014-11-22 17:22:57 UTC}] flags=[] (0.3047ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67187f6433c7d000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67087f6433c7d000040", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}}} (0.4170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c67187f6433c7d000047", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c67087f6433c7d000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c67087f6433c7d00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c67087f6433c7d000040", "content_type_id"=>"5470c67087f6433c7d000040", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c67087f6433c7d00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:22:57 UTC, "created_at"=>2014-11-22 17:22:57 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6168ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67087f6433c7d00003a", "parent_id"=>"5470c67087f6433c7d00003c", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67087f6433c7d00003c", "site_id"=>"5470c67087f6433c7d00003a", "_id"=>{"$ne"=>"5470c67287f6433c7d000048"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c67087f6433c7d00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6173ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67287f6433c7d000048", "parent_ids"=>["5470c67087f6433c7d00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c67087f6433c7d00003a", "parent_id"=>"5470c67087f6433c7d00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:58 UTC, "created_at"=>2014-11-22 17:22:58 UTC, "editable_elements"=>[{"_id"=>"5470c67287f6433c7d000049", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:22:58 UTC, "created_at"=>2014-11-22 17:22:58 UTC}]}] flags=[] (0.2840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "template_dependencies.en"=>{"$in"=>["5470c67287f6433c7d000048"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67287f6433c7d000048"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2871ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67287f6433c7d000048"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6852ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67087f6433c7d00003a", "parent_id"=>"5470c67087f6433c7d00003c", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67087f6433c7d00003c", "site_id"=>"5470c67087f6433c7d00003a", "_id"=>{"$ne"=>"5470c67287f6433c7d00004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67087f6433c7d00003c", "site_id"=>"5470c67087f6433c7d00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c67087f6433c7d00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5567ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67287f6433c7d00004a", "parent_ids"=>["5470c67087f6433c7d00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c67087f6433c7d00003a", "parent_id"=>"5470c67087f6433c7d00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:58 UTC, "created_at"=>2014-11-22 17:22:58 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "template_dependencies.en"=>{"$in"=>["5470c67287f6433c7d00004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67287f6433c7d00004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67287f6433c7d00004a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67087f6433c7d00003a", "parent_id"=>"5470c67087f6433c7d00003c", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67087f6433c7d00003c", "site_id"=>"5470c67087f6433c7d00003a", "_id"=>{"$ne"=>"5470c67287f6433c7d00004b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67087f6433c7d00003c", "site_id"=>"5470c67087f6433c7d00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5598ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c67087f6433c7d00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67287f6433c7d00004b", "parent_ids"=>["5470c67087f6433c7d00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c67087f6433c7d00003a", "parent_id"=>"5470c67087f6433c7d00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:58 UTC, "created_at"=>2014-11-22 17:22:58 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "template_dependencies.en"=>{"$in"=>["5470c67287f6433c7d00004b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67287f6433c7d00004b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67287f6433c7d00004b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67087f6433c7d00003a", "parent_id"=>"5470c67087f6433c7d00003c", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67087f6433c7d00003c", "site_id"=>"5470c67087f6433c7d00003a", "_id"=>{"$ne"=>"5470c67287f6433c7d00004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67087f6433c7d00003c", "site_id"=>"5470c67087f6433c7d00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c67087f6433c7d00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67287f6433c7d00004c", "parent_ids"=>["5470c67087f6433c7d00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c67087f6433c7d00003a", "parent_id"=>"5470c67087f6433c7d00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:58 UTC, "created_at"=>2014-11-22 17:22:58 UTC}] flags=[] (0.2322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "template_dependencies.en"=>{"$in"=>["5470c67287f6433c7d00004c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67287f6433c7d00004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2851ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67287f6433c7d00004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c67087f6433c7d00003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4518ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c67087f6433c7d00003c"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:22:59 UTC}} flags=[] (0.1502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "template_dependencies.en"=>{"$in"=>["5470c67087f6433c7d00003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3550ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c67387f6433c7d00004d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:22:39 UTC, "updated_at"=>2014-11-22 17:22:59 UTC, "memberships"=>[{"_id"=>"5470c67387f6433c7d00004e", "role"=>"admin", "account_id"=>"5470c67087f6433c7d000039"}]}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67387f6433c7d00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67387f6433c7d00004d", "_id"=>{"$ne"=>"5470c67387f6433c7d00004f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5538ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67387f6433c7d00004f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c67387f6433c7d00004d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:22:59 UTC, "created_at"=>2014-11-22 17:22:59 UTC}] flags=[] (0.2098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67387f6433c7d00004d", "template_dependencies.en"=>{"$in"=>["5470c67387f6433c7d00004f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3648ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67387f6433c7d00004f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67387f6433c7d00004f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67387f6433c7d00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67387f6433c7d00004d", "_id"=>{"$ne"=>"5470c67487f6433c7d000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.3680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67387f6433c7d00004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.3059ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67487f6433c7d000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c67387f6433c7d00004d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:23:00 UTC, "created_at"=>2014-11-22 17:23:00 UTC}] flags=[] (0.4430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67387f6433c7d00004d", "template_dependencies.en"=>{"$in"=>["5470c67487f6433c7d000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67487f6433c7d000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7310ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67487f6433c7d000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67387f6433c7d00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67387f6433c7d00004d", "_id"=>{"$ne"=>"5470c67487f6433c7d000051"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67387f6433c7d00004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7179ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67487f6433c7d000051", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c67387f6433c7d00004d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:23:00 UTC, "created_at"=>2014-11-22 17:23:00 UTC}] flags=[] (0.4423ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67387f6433c7d00004d", "template_dependencies.en"=>{"$in"=>["5470c67487f6433c7d000051"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67487f6433c7d000051"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7391ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67487f6433c7d000051"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c67387f6433c7d00004d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c67587f6433c7d000052", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c67387f6433c7d00004d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c67587f6433c7d000053", "updated_at"=>2014-11-22 17:23:01 UTC, "created_at"=>2014-11-22 17:23:01 UTC, "entries_custom_fields"=>[{"_id"=>"5470c67587f6433c7d000053", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67587f6433c7d000054"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67587f6433c7d000052"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67587f6433c7d000052", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67587f6433c7d000052"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c67587f6433c7d000054", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c67587f6433c7d000052", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c67587f6433c7d000052", "content_type_id"=>"5470c67587f6433c7d000052", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c67387f6433c7d00004d", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:23:01 UTC, "created_at"=>2014-11-22 17:23:01 UTC}] flags=[] (0.3028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67187f6433c7d000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67187f6433c7d000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c67087f6433c7d00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1342ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c67087f6433c7d000040"} update={"$set"=>{"updated_at"=>2014-11-22 17:23:01 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.1078ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67087f6433c7d000040"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c67087f6433c7d00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c67087f6433c7d00003a", "_id"=>"5470c67087f6433c7d00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6380ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:23:01 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9758ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5791ms) Rendered text template (0.0ms) Completed 200 OK in 4.7ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:23:01 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5960ms) Rendered text template (0.0ms) Completed 200 OK in 694.1ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c67087f6433c7d000040"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67087f6433c7d000040", "updated_at"=>{"$lt"=>2014-11-22 17:23:01 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6793ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c67087f6433c7d00003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c67087f6433c7d000040"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c67187f6433c7d000046"} update={"$set"=>{"updated_at"=>2014-11-22 17:23:02 UTC}} flags=[] (0.1428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470c67087f6433c7d000045", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67087f6433c7d00003e"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c67087f6433c7d00003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c67087f6433c7d000040"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c67187f6433c7d000047"} update={"$set"=>{"updated_at"=>2014-11-22 17:23:03 UTC}} flags=[] (0.1361ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:23:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5209ms) Rendered text template (0.0ms) Completed 200 OK in 4.1ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:23:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67087f6433c7d00003a", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3020ms) Rendered text template (0.0ms) Completed 200 OK in 438.0ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6390ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7371ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4179ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0121ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c67887f6433c7d000055", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"812c9280c38a3f712ad7665ae505dcf34c140c9b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"gBpcyHJX7Dp9fqV3KtqX", "api_key"=>"2ef3a9901f803ef203b2354700b782f18a0c5a73", "updated_at"=>2014-11-22 17:23:04 UTC, "created_at"=>2014-11-22 17:23:04 UTC}] flags=[] (0.3309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7482ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c67887f6433c7d000056", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:22:39 UTC, "updated_at"=>2014-11-22 17:23:04 UTC, "memberships"=>[{"_id"=>"5470c67887f6433c7d000057", "role"=>"admin", "account_id"=>"5470c67887f6433c7d000055"}]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67887f6433c7d000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.2101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67887f6433c7d000056", "_id"=>{"$ne"=>"5470c67887f6433c7d000058"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67887f6433c7d000058", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c67887f6433c7d000056", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:23:04 UTC, "created_at"=>2014-11-22 17:23:04 UTC}] flags=[] (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67887f6433c7d000056", "template_dependencies.en"=>{"$in"=>["5470c67887f6433c7d000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67887f6433c7d000058"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67887f6433c7d000058"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67887f6433c7d000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4728ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67887f6433c7d000056", "_id"=>{"$ne"=>"5470c67987f6433c7d000059"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67887f6433c7d000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67987f6433c7d000059", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c67887f6433c7d000056", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:23:05 UTC, "created_at"=>2014-11-22 17:23:05 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67887f6433c7d000056", "template_dependencies.en"=>{"$in"=>["5470c67987f6433c7d000059"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67987f6433c7d000059"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67987f6433c7d000059"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c67887f6433c7d000056", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7710ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c67987f6433c7d00005a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c67887f6433c7d000056", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c67987f6433c7d00005b", "updated_at"=>2014-11-22 17:23:05 UTC, "created_at"=>2014-11-22 17:23:05 UTC, "entries_custom_fields"=>[{"_id"=>"5470c67987f6433c7d00005b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c67887f6433c7d000056", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c67987f6433c7d00005a"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4287ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c67987f6433c7d00005c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c67887f6433c7d000056", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c67987f6433c7d00005d", "updated_at"=>2014-11-22 17:23:05 UTC, "created_at"=>2014-11-22 17:23:05 UTC, "entries_custom_fields"=>[{"_id"=>"5470c67987f6433c7d00005d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c67987f6433c7d00005e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c67987f6433c7d00005a", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c67987f6433c7d00005f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c67887f6433c7d000056", "_id"=>"5470c67987f6433c7d00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c67987f6433c7d00005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5751ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005a"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c67987f6433c7d00005a"} update={"$set"=>{"updated_at"=>2014-11-22 17:23:05 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c67987f6433c7d000060", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c67987f6433c7d00005c", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67987f6433c7d00005a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c67987f6433c7d00005c", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67987f6433c7d000061"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67987f6433c7d00005a", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3581ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c67987f6433c7d000061", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c67987f6433c7d00005a", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c67987f6433c7d00005c", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c67987f6433c7d00005a", "content_type_id"=>"5470c67987f6433c7d00005a", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c67887f6433c7d000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:23:05 UTC, "created_at"=>2014-11-22 17:23:05 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c67987f6433c7d000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005c"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67987f6433c7d000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67987f6433c7d00005c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.7260ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005c"]}}} (1.3680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c67987f6433c7d000062", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c67987f6433c7d00005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c67987f6433c7d00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c67987f6433c7d000061", "_type"=>"Locomotive::ContentEntry5470c67987f6433c7d00005c", "content_type_id"=>"5470c67987f6433c7d00005c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c67887f6433c7d000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:23:05 UTC, "created_at"=>2014-11-22 17:23:05 UTC}] flags=[] (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67987f6433c7d000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67987f6433c7d00005c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5748ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005c"]}}} (0.4179ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005c"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c67987f6433c7d000063", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c67987f6433c7d00005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c67987f6433c7d00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c67987f6433c7d00005c", "content_type_id"=>"5470c67987f6433c7d00005c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c67887f6433c7d000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:23:06 UTC, "created_at"=>2014-11-22 17:23:06 UTC}] flags=[] (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6211ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67887f6433c7d000056", "parent_id"=>"5470c67887f6433c7d000058", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67887f6433c7d000058", "site_id"=>"5470c67887f6433c7d000056", "_id"=>{"$ne"=>"5470c67a87f6433c7d000064"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c67887f6433c7d000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5851ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67a87f6433c7d000064", "parent_ids"=>["5470c67887f6433c7d000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c67887f6433c7d000056", "parent_id"=>"5470c67887f6433c7d000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:23:06 UTC, "created_at"=>2014-11-22 17:23:06 UTC, "editable_elements"=>[{"_id"=>"5470c67a87f6433c7d000065", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:23:06 UTC, "created_at"=>2014-11-22 17:23:06 UTC}]}] flags=[] (0.2968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67887f6433c7d000056", "template_dependencies.en"=>{"$in"=>["5470c67a87f6433c7d000064"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67a87f6433c7d000064"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67a87f6433c7d000064"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67887f6433c7d000056", "parent_id"=>"5470c67887f6433c7d000058", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67887f6433c7d000058", "site_id"=>"5470c67887f6433c7d000056", "_id"=>{"$ne"=>"5470c67a87f6433c7d000066"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67887f6433c7d000058", "site_id"=>"5470c67887f6433c7d000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4107ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c67887f6433c7d000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.2109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67a87f6433c7d000066", "parent_ids"=>["5470c67887f6433c7d000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c67887f6433c7d000056", "parent_id"=>"5470c67887f6433c7d000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:23:06 UTC, "created_at"=>2014-11-22 17:23:06 UTC}] flags=[] (0.2739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67887f6433c7d000056", "template_dependencies.en"=>{"$in"=>["5470c67a87f6433c7d000066"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67a87f6433c7d000066"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4978ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67a87f6433c7d000066"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67887f6433c7d000056", "parent_id"=>"5470c67887f6433c7d000058", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67887f6433c7d000058", "site_id"=>"5470c67887f6433c7d000056", "_id"=>{"$ne"=>"5470c67a87f6433c7d000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1787ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67887f6433c7d000058", "site_id"=>"5470c67887f6433c7d000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c67887f6433c7d000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9677ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67a87f6433c7d000067", "parent_ids"=>["5470c67887f6433c7d000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c67887f6433c7d000056", "parent_id"=>"5470c67887f6433c7d000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:23:06 UTC, "created_at"=>2014-11-22 17:23:06 UTC}] flags=[] (0.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67887f6433c7d000056", "template_dependencies.en"=>{"$in"=>["5470c67a87f6433c7d000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67a87f6433c7d000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5719ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67a87f6433c7d000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67887f6433c7d000056", "parent_id"=>"5470c67887f6433c7d000058", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67887f6433c7d000058", "site_id"=>"5470c67887f6433c7d000056", "_id"=>{"$ne"=>"5470c67a87f6433c7d000068"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67887f6433c7d000058", "site_id"=>"5470c67887f6433c7d000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c67887f6433c7d000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67a87f6433c7d000068", "parent_ids"=>["5470c67887f6433c7d000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c67887f6433c7d000056", "parent_id"=>"5470c67887f6433c7d000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:23:06 UTC, "created_at"=>2014-11-22 17:23:06 UTC}] flags=[] (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67887f6433c7d000056", "template_dependencies.en"=>{"$in"=>["5470c67a87f6433c7d000068"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67a87f6433c7d000068"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7389ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67a87f6433c7d000068"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1187ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67887f6433c7d000056", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c67887f6433c7d000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4971ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c67887f6433c7d000058"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:23:07 UTC}} flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67887f6433c7d000056", "template_dependencies.en"=>{"$in"=>["5470c67887f6433c7d000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3798ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c67c87f6433c7d000069", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:22:39 UTC, "updated_at"=>2014-11-22 17:23:08 UTC, "memberships"=>[{"_id"=>"5470c67c87f6433c7d00006a", "role"=>"admin", "account_id"=>"5470c67887f6433c7d000055"}]}] flags=[] (0.1884ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67c87f6433c7d000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67c87f6433c7d000069", "_id"=>{"$ne"=>"5470c67c87f6433c7d00006b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6702ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67c87f6433c7d00006b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c67c87f6433c7d000069", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:23:08 UTC, "created_at"=>2014-11-22 17:23:08 UTC}] flags=[] (0.3428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67c87f6433c7d000069", "template_dependencies.en"=>{"$in"=>["5470c67c87f6433c7d00006b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67c87f6433c7d00006b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4988ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67c87f6433c7d00006b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67c87f6433c7d000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67c87f6433c7d000069", "_id"=>{"$ne"=>"5470c67c87f6433c7d00006c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67c87f6433c7d000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5739ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67c87f6433c7d00006c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c67c87f6433c7d000069", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:23:08 UTC, "created_at"=>2014-11-22 17:23:08 UTC}] flags=[] (0.2871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67c87f6433c7d000069", "template_dependencies.en"=>{"$in"=>["5470c67c87f6433c7d00006c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67c87f6433c7d00006c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4520ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67c87f6433c7d00006c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c67c87f6433c7d000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67c87f6433c7d000069", "_id"=>{"$ne"=>"5470c67c87f6433c7d00006d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c67c87f6433c7d000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c67c87f6433c7d00006d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c67c87f6433c7d000069", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:23:08 UTC, "created_at"=>2014-11-22 17:23:08 UTC}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c67c87f6433c7d000069", "template_dependencies.en"=>{"$in"=>["5470c67c87f6433c7d00006d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c67c87f6433c7d00006d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2801ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c67c87f6433c7d00006d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c67c87f6433c7d000069", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c67d87f6433c7d00006e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c67c87f6433c7d000069", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c67d87f6433c7d00006f", "updated_at"=>2014-11-22 17:23:09 UTC, "created_at"=>2014-11-22 17:23:09 UTC, "entries_custom_fields"=>[{"_id"=>"5470c67d87f6433c7d00006f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67d87f6433c7d000070"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67d87f6433c7d00006e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67d87f6433c7d00006e", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67d87f6433c7d00006e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5052ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c67d87f6433c7d000070", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c67d87f6433c7d00006e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c67d87f6433c7d00006e", "content_type_id"=>"5470c67d87f6433c7d00006e", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c67c87f6433c7d000069", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:23:09 UTC, "created_at"=>2014-11-22 17:23:09 UTC}] flags=[] (0.3490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67987f6433c7d000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c67987f6433c7d000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c67987f6433c7d00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5300ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c67987f6433c7d00005c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.2601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c67987f6433c7d00005c"} update={"$set"=>{"updated_at"=>2014-11-22 17:23:09 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c67987f6433c7d00005c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c67987f6433c7d00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c67887f6433c7d000056", "_id"=>"5470c67987f6433c7d00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6824ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5589ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7312ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4760ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5500ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0061ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1861ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5231ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5257ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3638ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c6b187f643f272000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"68389874baa22037168ff1910948ccc072f6624b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"opv26SGitSsXpsz21DqQ", "api_key"=>"9c7bb35e184375d48a3075d28a7a2e722c7ad5c0", "updated_at"=>2014-11-22 17:24:01 UTC, "created_at"=>2014-11-22 17:24:01 UTC}] flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6788ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6b187f643f272000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:24:01 UTC, "updated_at"=>2014-11-22 17:24:01 UTC, "memberships"=>[{"_id"=>"5470c6b187f643f272000003", "role"=>"admin", "account_id"=>"5470c6b187f643f272000001"}]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6b187f643f272000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6b187f643f272000002", "_id"=>{"$ne"=>"5470c6b287f643f272000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6b287f643f272000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6b187f643f272000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:02 UTC, "created_at"=>2014-11-22 17:24:02 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b287f643f272000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002", "template_dependencies.en"=>{"$in"=>["5470c6b287f643f272000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2940ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6b287f643f272000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6b187f643f272000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6b187f643f272000002", "_id"=>{"$ne"=>"5470c6b287f643f272000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6b287f643f272000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6b187f643f272000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:02 UTC, "created_at"=>2014-11-22 17:24:02 UTC}] flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002", "template_dependencies.en"=>{"$in"=>["5470c6b287f643f272000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b287f643f272000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3021ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6b287f643f272000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6b187f643f272000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6b287f643f272000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c6b187f643f272000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c6b287f643f272000007", "updated_at"=>2014-11-22 17:24:02 UTC, "created_at"=>2014-11-22 17:24:02 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6b287f643f272000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2544ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6b187f643f272000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6b287f643f272000006"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4737ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6b287f643f272000008", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6b187f643f272000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6b287f643f272000009", "updated_at"=>2014-11-22 17:24:02 UTC, "created_at"=>2014-11-22 17:24:02 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6b287f643f272000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c6b287f643f27200000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c6b287f643f272000006", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c6b287f643f27200000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6b187f643f272000002", "_id"=>"5470c6b287f643f272000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6b287f643f272000008"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5932ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b287f643f272000006"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1261ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6b287f643f272000006"} update={"$set"=>{"updated_at"=>2014-11-22 17:24:02 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c6b287f643f27200000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c6b287f643f272000008", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6b287f643f272000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6b287f643f272000008", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6b287f643f27200000d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b287f643f272000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6b287f643f272000006", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b287f643f272000006"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6b287f643f27200000d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6b287f643f272000006", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6b287f643f272000008", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6b287f643f272000006", "content_type_id"=>"5470c6b287f643f272000006", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c6b187f643f272000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:24:02 UTC, "created_at"=>2014-11-22 17:24:02 UTC}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c6b287f643f27200000d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b287f643f272000008"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6b387f643f27200000e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b287f643f272000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6b287f643f272000008", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b287f643f272000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4370ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b287f643f272000008"]}}} (0.4048ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6b387f643f27200000e", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6b287f643f272000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6b287f643f272000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c6b287f643f27200000d", "_type"=>"Locomotive::ContentEntry5470c6b287f643f272000008", "content_type_id"=>"5470c6b287f643f272000008", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c6b187f643f272000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:03 UTC, "created_at"=>2014-11-22 17:24:03 UTC}] flags=[] (0.2759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6b387f643f27200000f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b287f643f272000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6b287f643f272000008", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b287f643f272000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4799ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b287f643f272000008"]}}} (0.3788ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b287f643f272000008"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6b387f643f27200000f", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6b287f643f272000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6b287f643f272000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6b287f643f272000008", "content_type_id"=>"5470c6b287f643f272000008", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c6b187f643f272000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:03 UTC, "created_at"=>2014-11-22 17:24:03 UTC}] flags=[] (0.2649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7312ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6b187f643f272000002", "parent_id"=>"5470c6b287f643f272000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4663ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b287f643f272000004", "site_id"=>"5470c6b187f643f272000002", "_id"=>{"$ne"=>"5470c6b387f643f272000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6b287f643f272000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5651ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6b387f643f272000010", "parent_ids"=>["5470c6b287f643f272000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c6b187f643f272000002", "parent_id"=>"5470c6b287f643f272000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:03 UTC, "created_at"=>2014-11-22 17:24:03 UTC, "editable_elements"=>[{"_id"=>"5470c6b387f643f272000011", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:24:03 UTC, "created_at"=>2014-11-22 17:24:03 UTC}]}] flags=[] (0.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002", "template_dependencies.en"=>{"$in"=>["5470c6b387f643f272000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b387f643f272000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3073ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6b387f643f272000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6b187f643f272000002", "parent_id"=>"5470c6b287f643f272000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b287f643f272000004", "site_id"=>"5470c6b187f643f272000002", "_id"=>{"$ne"=>"5470c6b487f643f272000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b287f643f272000004", "site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6237ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6b287f643f272000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6080ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6b487f643f272000012", "parent_ids"=>["5470c6b287f643f272000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c6b187f643f272000002", "parent_id"=>"5470c6b287f643f272000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:04 UTC, "created_at"=>2014-11-22 17:24:04 UTC}] flags=[] (0.2303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002", "template_dependencies.en"=>{"$in"=>["5470c6b487f643f272000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b487f643f272000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2708ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6b487f643f272000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6b187f643f272000002", "parent_id"=>"5470c6b287f643f272000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b287f643f272000004", "site_id"=>"5470c6b187f643f272000002", "_id"=>{"$ne"=>"5470c6b487f643f272000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b287f643f272000004", "site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6b287f643f272000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4568ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6b487f643f272000013", "parent_ids"=>["5470c6b287f643f272000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c6b187f643f272000002", "parent_id"=>"5470c6b287f643f272000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:04 UTC, "created_at"=>2014-11-22 17:24:04 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002", "template_dependencies.en"=>{"$in"=>["5470c6b487f643f272000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b487f643f272000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2820ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6b487f643f272000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6b187f643f272000002", "parent_id"=>"5470c6b287f643f272000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b287f643f272000004", "site_id"=>"5470c6b187f643f272000002", "_id"=>{"$ne"=>"5470c6b487f643f272000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b287f643f272000004", "site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6b287f643f272000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5128ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6b487f643f272000014", "parent_ids"=>["5470c6b287f643f272000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c6b187f643f272000002", "parent_id"=>"5470c6b287f643f272000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:04 UTC, "created_at"=>2014-11-22 17:24:04 UTC}] flags=[] (0.2468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002", "template_dependencies.en"=>{"$in"=>["5470c6b487f643f272000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3803ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b487f643f272000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3419ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6b487f643f272000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c6b287f643f272000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:24:05 UTC}} flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002", "template_dependencies.en"=>{"$in"=>["5470c6b287f643f272000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3929ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6b687f643f272000015", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:24:01 UTC, "updated_at"=>2014-11-22 17:24:06 UTC, "memberships"=>[{"_id"=>"5470c6b687f643f272000016", "role"=>"admin", "account_id"=>"5470c6b187f643f272000001"}]}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6b687f643f272000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6b687f643f272000015", "_id"=>{"$ne"=>"5470c6b687f643f272000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4451ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6b687f643f272000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6b687f643f272000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:06 UTC, "created_at"=>2014-11-22 17:24:06 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b687f643f272000015", "template_dependencies.en"=>{"$in"=>["5470c6b687f643f272000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b687f643f272000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2928ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6b687f643f272000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6b687f643f272000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6b687f643f272000015", "_id"=>{"$ne"=>"5470c6b687f643f272000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6b687f643f272000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6b687f643f272000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6b687f643f272000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:06 UTC, "created_at"=>2014-11-22 17:24:06 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b687f643f272000015", "template_dependencies.en"=>{"$in"=>["5470c6b687f643f272000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b687f643f272000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6b687f643f272000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6b687f643f272000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6b687f643f272000015", "_id"=>{"$ne"=>"5470c6b687f643f272000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6b687f643f272000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4852ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6b687f643f272000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c6b687f643f272000015", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:06 UTC, "created_at"=>2014-11-22 17:24:06 UTC}] flags=[] (0.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b687f643f272000015", "template_dependencies.en"=>{"$in"=>["5470c6b687f643f272000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6b687f643f272000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2921ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6b687f643f272000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6b687f643f272000015", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6b787f643f27200001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6b687f643f272000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6b787f643f27200001b", "updated_at"=>2014-11-22 17:24:07 UTC, "created_at"=>2014-11-22 17:24:07 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6b787f643f27200001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6b787f643f27200001c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b787f643f27200001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6b787f643f27200001a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6b787f643f27200001a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5131ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6b787f643f27200001c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6b787f643f27200001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6b787f643f27200001a", "content_type_id"=>"5470c6b787f643f27200001a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c6b687f643f272000015", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:07 UTC, "created_at"=>2014-11-22 17:24:07 UTC}] flags=[] (0.2110ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 18:24:08 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c6b187f643f272000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5000ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (18.4ms) Completed 200 OK in 40.2ms (Views: 33.7ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 18:24:08 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (8ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 18:24:08 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (8ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 18:24:08 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 18:24:08 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c6b187f643f272000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c6b187f643f272000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 17:24:08 UTC, "updated_at"=>2014-11-22 17:24:08 UTC}} flags=[] (0.1512ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c6b187f643f272000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 17:24:08 UTC, "current_sign_in_at"=>2014-11-22 17:24:08 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 17:24:08 UTC}} flags=[] (0.1199ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 18.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:24:08 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c6b187f643f272000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c6b187f643f272000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.4422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3700ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4965195470924] (0.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.7610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c6b287f643f272000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c6b287f643f272000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8128ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (27.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (1.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (4.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (11.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (49.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c6b187f643f272000001", :role=>:admin}}}} (0.5331ms) Rendered locomotive/shared/_main_app_head.html.haml (2.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (14.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c6b187f643f272000001"}} (0.4411ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c6b187f643f272000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7041ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (4.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (5.1ms) Rendered locomotive/shared/_main_app_header.html.haml (6.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (29.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (3.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 133.1ms (Views: 117.0ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 18:24:09 +0100 Served asset /locomotive.js - 200 OK (115ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 18:24:09 +0100 Served asset /locomotive.css - 200 OK (37ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 18:24:09 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 18:24:09 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 18:24:09 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 18:24:09 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (3ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 18:24:09 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:24:09 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c6b187f643f272000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c6b187f643f272000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.6022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1578ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[4965859070274] (0.0713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c6b187f643f272000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c6b287f643f272000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6747ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c6b287f643f272000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8602ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (15.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c6b187f643f272000001", :role=>:admin}}}} (0.5019ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c6b187f643f272000001"}} (0.4270ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.8ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c6b187f643f272000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5870ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (9.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 58.1ms (Views: 42.7ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 18:24:09 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c6b187f643f272000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c6b187f643f272000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8650ms) Completed 200 OK in 453.8ms (Views: 1.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5372ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3461ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2541ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7801ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4487ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3502ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c6bb87f643f27200001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"05c4092565e70d585cef16461b97910ff3774831", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"SQ5oykLw3Dy8rR5EtqxW", "api_key"=>"5e7636c0555b25c98cb32f51450f2f26e19732ff", "updated_at"=>2014-11-22 17:24:11 UTC, "created_at"=>2014-11-22 17:24:11 UTC}] flags=[] (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6bb87f643f27200001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:24:01 UTC, "updated_at"=>2014-11-22 17:24:11 UTC, "memberships"=>[{"_id"=>"5470c6bb87f643f27200001f", "role"=>"admin", "account_id"=>"5470c6bb87f643f27200001d"}]}] flags=[] (0.1547ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6bb87f643f27200001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6852ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6bb87f643f27200001e", "_id"=>{"$ne"=>"5470c6bb87f643f272000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3803ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6bb87f643f272000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6bb87f643f27200001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:11 UTC, "created_at"=>2014-11-22 17:24:11 UTC}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bb87f643f27200001e", "template_dependencies.en"=>{"$in"=>["5470c6bb87f643f272000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bb87f643f272000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3109ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6bb87f643f272000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6bb87f643f27200001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6173ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6bb87f643f27200001e", "_id"=>{"$ne"=>"5470c6bc87f643f272000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6bb87f643f27200001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8242ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6bc87f643f272000021", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6bb87f643f27200001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:12 UTC, "created_at"=>2014-11-22 17:24:12 UTC}] flags=[] (0.2601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bb87f643f27200001e", "template_dependencies.en"=>{"$in"=>["5470c6bc87f643f272000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bc87f643f272000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6bc87f643f272000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1023ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6bb87f643f27200001e", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6bc87f643f272000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c6bb87f643f27200001e", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c6bc87f643f272000023", "updated_at"=>2014-11-22 17:24:12 UTC, "created_at"=>2014-11-22 17:24:12 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6bc87f643f272000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6bb87f643f27200001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6bc87f643f272000022"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6bc87f643f272000024", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6bb87f643f27200001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6bc87f643f272000025", "updated_at"=>2014-11-22 17:24:12 UTC, "created_at"=>2014-11-22 17:24:12 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6bc87f643f272000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c6bc87f643f272000026", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c6bc87f643f272000022", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c6bc87f643f272000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6bb87f643f27200001e", "_id"=>"5470c6bc87f643f272000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6bc87f643f272000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6bc87f643f272000022"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1228ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6bc87f643f272000022"} update={"$set"=>{"updated_at"=>2014-11-22 17:24:12 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c6bc87f643f272000028", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c6bc87f643f272000024", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6bc87f643f272000022"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6bc87f643f272000024", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2317ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6bc87f643f272000029"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6bc87f643f272000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4113ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6bc87f643f272000022", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6bc87f643f272000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3738ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6bc87f643f272000029", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6bc87f643f272000022", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6bc87f643f272000024", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6bc87f643f272000022", "content_type_id"=>"5470c6bc87f643f272000022", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c6bb87f643f27200001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:24:12 UTC, "created_at"=>2014-11-22 17:24:12 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c6bc87f643f272000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6bc87f643f272000024"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6bc87f643f27200002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6bc87f643f272000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6173ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6bc87f643f272000024", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6bc87f643f272000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5181ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6bc87f643f272000024"]}}} (0.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6bc87f643f27200002a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6bc87f643f272000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6bc87f643f272000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c6bc87f643f272000029", "_type"=>"Locomotive::ContentEntry5470c6bc87f643f272000024", "content_type_id"=>"5470c6bc87f643f272000024", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c6bb87f643f27200001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:12 UTC, "created_at"=>2014-11-22 17:24:12 UTC}] flags=[] (0.3347ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6bd87f643f27200002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6bc87f643f272000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6bc87f643f272000024", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6bc87f643f272000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4282ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6bc87f643f272000024"]}}} (0.3359ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6bc87f643f272000024"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6bd87f643f27200002b", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6bc87f643f272000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6bc87f643f272000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6bc87f643f272000024", "content_type_id"=>"5470c6bc87f643f272000024", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c6bb87f643f27200001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:13 UTC, "created_at"=>2014-11-22 17:24:13 UTC}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6258ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6bb87f643f27200001e", "parent_id"=>"5470c6bb87f643f272000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4523ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bb87f643f272000020", "site_id"=>"5470c6bb87f643f27200001e", "_id"=>{"$ne"=>"5470c6bd87f643f27200002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6bb87f643f272000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5708ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6bd87f643f27200002c", "parent_ids"=>["5470c6bb87f643f272000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c6bb87f643f27200001e", "parent_id"=>"5470c6bb87f643f272000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:13 UTC, "created_at"=>2014-11-22 17:24:13 UTC, "editable_elements"=>[{"_id"=>"5470c6bd87f643f27200002d", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:24:13 UTC, "created_at"=>2014-11-22 17:24:13 UTC}]}] flags=[] (0.2661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bb87f643f27200001e", "template_dependencies.en"=>{"$in"=>["5470c6bd87f643f27200002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bd87f643f27200002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6bd87f643f27200002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6bb87f643f27200001e", "parent_id"=>"5470c6bb87f643f272000020", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4396ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bb87f643f272000020", "site_id"=>"5470c6bb87f643f27200001e", "_id"=>{"$ne"=>"5470c6be87f643f27200002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8497ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bb87f643f272000020", "site_id"=>"5470c6bb87f643f27200001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6bb87f643f272000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6be87f643f27200002e", "parent_ids"=>["5470c6bb87f643f272000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c6bb87f643f27200001e", "parent_id"=>"5470c6bb87f643f272000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:14 UTC, "created_at"=>2014-11-22 17:24:14 UTC}] flags=[] (0.2980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bb87f643f27200001e", "template_dependencies.en"=>{"$in"=>["5470c6be87f643f27200002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6be87f643f27200002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6be87f643f27200002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6bb87f643f27200001e", "parent_id"=>"5470c6bb87f643f272000020", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bb87f643f272000020", "site_id"=>"5470c6bb87f643f27200001e", "_id"=>{"$ne"=>"5470c6be87f643f27200002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bb87f643f272000020", "site_id"=>"5470c6bb87f643f27200001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6bb87f643f272000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6be87f643f27200002f", "parent_ids"=>["5470c6bb87f643f272000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c6bb87f643f27200001e", "parent_id"=>"5470c6bb87f643f272000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:14 UTC, "created_at"=>2014-11-22 17:24:14 UTC}] flags=[] (0.2124ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bb87f643f27200001e", "template_dependencies.en"=>{"$in"=>["5470c6be87f643f27200002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6be87f643f27200002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6be87f643f27200002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6bb87f643f27200001e", "parent_id"=>"5470c6bb87f643f272000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bb87f643f272000020", "site_id"=>"5470c6bb87f643f27200001e", "_id"=>{"$ne"=>"5470c6be87f643f272000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9053ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bb87f643f272000020", "site_id"=>"5470c6bb87f643f27200001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6bb87f643f272000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6be87f643f272000030", "parent_ids"=>["5470c6bb87f643f272000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c6bb87f643f27200001e", "parent_id"=>"5470c6bb87f643f272000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:14 UTC, "created_at"=>2014-11-22 17:24:14 UTC}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bb87f643f27200001e", "template_dependencies.en"=>{"$in"=>["5470c6be87f643f272000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6be87f643f272000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3498ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6be87f643f272000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bb87f643f27200001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c6bb87f643f27200001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4919ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c6bb87f643f272000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:24:14 UTC}} flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bb87f643f27200001e", "template_dependencies.en"=>{"$in"=>["5470c6bb87f643f272000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6bf87f643f272000031", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:24:01 UTC, "updated_at"=>2014-11-22 17:24:15 UTC, "memberships"=>[{"_id"=>"5470c6bf87f643f272000032", "role"=>"admin", "account_id"=>"5470c6bb87f643f27200001d"}]}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6bf87f643f272000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6bf87f643f272000031", "_id"=>{"$ne"=>"5470c6bf87f643f272000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5701ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6bf87f643f272000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6bf87f643f272000031", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:15 UTC, "created_at"=>2014-11-22 17:24:15 UTC}] flags=[] (0.1957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bf87f643f272000031", "template_dependencies.en"=>{"$in"=>["5470c6bf87f643f272000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bf87f643f272000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3631ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6bf87f643f272000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6bf87f643f272000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4523ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6bf87f643f272000031", "_id"=>{"$ne"=>"5470c6bf87f643f272000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6bf87f643f272000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9019ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6bf87f643f272000034", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6bf87f643f272000031", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:15 UTC, "created_at"=>2014-11-22 17:24:15 UTC}] flags=[] (0.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bf87f643f272000031", "template_dependencies.en"=>{"$in"=>["5470c6bf87f643f272000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bf87f643f272000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3064ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6bf87f643f272000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6bf87f643f272000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6bf87f643f272000031", "_id"=>{"$ne"=>"5470c6bf87f643f272000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6bf87f643f272000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6bf87f643f272000035", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c6bf87f643f272000031", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:15 UTC, "created_at"=>2014-11-22 17:24:15 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bf87f643f272000031", "template_dependencies.en"=>{"$in"=>["5470c6bf87f643f272000035"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6bf87f643f272000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3560ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6bf87f643f272000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6bf87f643f272000031", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.0161ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6c087f643f272000036", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6bf87f643f272000031", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6c087f643f272000037", "updated_at"=>2014-11-22 17:24:16 UTC, "created_at"=>2014-11-22 17:24:16 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6c087f643f272000037", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c087f643f272000038"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c087f643f272000036"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c087f643f272000036", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c087f643f272000036"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6c087f643f272000038", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6c087f643f272000036", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6c087f643f272000036", "content_type_id"=>"5470c6c087f643f272000036", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c6bf87f643f272000031", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:16 UTC, "created_at"=>2014-11-22 17:24:16 UTC}] flags=[] (0.2260ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:24:16 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bb87f643f27200001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7460ms) Rendered text template (0.0ms) Completed 200 OK in 8.7ms (Views: 2.0ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 18:24:16 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6bb87f643f27200001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6230ms) Rendered text template (0.0ms) Completed 200 OK in 432.8ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6008ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4362ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4281ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3440ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8500ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c6c187f643f272000039", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"ef16b2d8922fecf1b02ecc4b9b297457a61bf690", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"EBmiBsyQdNqgmYYyhDsp", "api_key"=>"1a78f944638f94c947cd298935e925211e12b817", "updated_at"=>2014-11-22 17:24:17 UTC, "created_at"=>2014-11-22 17:24:17 UTC}] flags=[] (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.5852ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6c187f643f27200003a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:24:01 UTC, "updated_at"=>2014-11-22 17:24:17 UTC, "memberships"=>[{"_id"=>"5470c6c187f643f27200003b", "role"=>"admin", "account_id"=>"5470c6c187f643f272000039"}]}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c187f643f27200003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6c187f643f27200003a", "_id"=>{"$ne"=>"5470c6c187f643f27200003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3459ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c187f643f27200003c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6c187f643f27200003a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:17 UTC, "created_at"=>2014-11-22 17:24:17 UTC}] flags=[] (0.2213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c187f643f27200003a", "template_dependencies.en"=>{"$in"=>["5470c6c187f643f27200003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c187f643f27200003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c187f643f27200003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0927ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c187f643f27200003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6c187f643f27200003a", "_id"=>{"$ne"=>"5470c6c287f643f27200003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6c187f643f27200003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4861ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c287f643f27200003d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6c187f643f27200003a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:18 UTC, "created_at"=>2014-11-22 17:24:18 UTC}] flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c187f643f27200003a", "template_dependencies.en"=>{"$in"=>["5470c6c287f643f27200003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c287f643f27200003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3672ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c287f643f27200003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6c187f643f27200003a", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6738ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6c287f643f27200003e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c6c187f643f27200003a", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c6c287f643f27200003f", "updated_at"=>2014-11-22 17:24:18 UTC, "created_at"=>2014-11-22 17:24:18 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6c287f643f27200003f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6c187f643f27200003a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6c287f643f27200003e"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6c287f643f272000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6c187f643f27200003a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6c287f643f272000041", "updated_at"=>2014-11-22 17:24:18 UTC, "created_at"=>2014-11-22 17:24:18 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6c287f643f272000041", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c6c287f643f272000042", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c6c287f643f27200003e", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c6c287f643f272000043", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.5898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6c187f643f27200003a", "_id"=>"5470c6c287f643f27200003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6c287f643f272000040"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7429ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f27200003e"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1359ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6c287f643f27200003e"} update={"$set"=>{"updated_at"=>2014-11-22 17:24:18 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c6c287f643f272000044", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c6c287f643f272000040", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c287f643f27200003e"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6c287f643f272000040", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c287f643f272000045"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f27200003e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c287f643f27200003e", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f27200003e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3278ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6c287f643f272000045", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6c287f643f27200003e", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6c287f643f272000040", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6c287f643f27200003e", "content_type_id"=>"5470c6c287f643f27200003e", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c6c187f643f27200003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:24:18 UTC, "created_at"=>2014-11-22 17:24:18 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c6c287f643f272000045", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f272000040"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c387f643f272000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f272000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c287f643f272000040", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f272000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3819ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f272000040"]}}} (0.5069ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6c387f643f272000046", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6c287f643f272000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6c287f643f27200003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c6c287f643f272000045", "_type"=>"Locomotive::ContentEntry5470c6c287f643f272000040", "content_type_id"=>"5470c6c287f643f272000040", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c6c187f643f27200003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:19 UTC, "created_at"=>2014-11-22 17:24:19 UTC}] flags=[] (0.3278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c487f643f272000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f272000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c287f643f272000040", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f272000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5629ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f272000040"]}}} (0.5221ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f272000040"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5379ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6c487f643f272000047", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6c287f643f272000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6c287f643f27200003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6c287f643f272000040", "content_type_id"=>"5470c6c287f643f272000040", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c6c187f643f27200003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:20 UTC, "created_at"=>2014-11-22 17:24:20 UTC}] flags=[] (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6802ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c187f643f27200003a", "parent_id"=>"5470c6c187f643f27200003c", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c187f643f27200003c", "site_id"=>"5470c6c187f643f27200003a", "_id"=>{"$ne"=>"5470c6c487f643f272000048"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6c187f643f27200003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7851ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c487f643f272000048", "parent_ids"=>["5470c6c187f643f27200003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c6c187f643f27200003a", "parent_id"=>"5470c6c187f643f27200003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:20 UTC, "created_at"=>2014-11-22 17:24:20 UTC, "editable_elements"=>[{"_id"=>"5470c6c487f643f272000049", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:24:20 UTC, "created_at"=>2014-11-22 17:24:20 UTC}]}] flags=[] (0.3603ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c187f643f27200003a", "template_dependencies.en"=>{"$in"=>["5470c6c487f643f272000048"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c487f643f272000048"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c487f643f272000048"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0997ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c187f643f27200003a", "parent_id"=>"5470c6c187f643f27200003c", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c187f643f27200003c", "site_id"=>"5470c6c187f643f27200003a", "_id"=>{"$ne"=>"5470c6c487f643f27200004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c187f643f27200003c", "site_id"=>"5470c6c187f643f27200003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6c187f643f27200003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c487f643f27200004a", "parent_ids"=>["5470c6c187f643f27200003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c6c187f643f27200003a", "parent_id"=>"5470c6c187f643f27200003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:20 UTC, "created_at"=>2014-11-22 17:24:20 UTC}] flags=[] (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c187f643f27200003a", "template_dependencies.en"=>{"$in"=>["5470c6c487f643f27200004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c487f643f27200004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4001ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c487f643f27200004a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c187f643f27200003a", "parent_id"=>"5470c6c187f643f27200003c", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c187f643f27200003c", "site_id"=>"5470c6c187f643f27200003a", "_id"=>{"$ne"=>"5470c6c487f643f27200004b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c187f643f27200003c", "site_id"=>"5470c6c187f643f27200003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6c187f643f27200003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9489ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c487f643f27200004b", "parent_ids"=>["5470c6c187f643f27200003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c6c187f643f27200003a", "parent_id"=>"5470c6c187f643f27200003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:20 UTC, "created_at"=>2014-11-22 17:24:20 UTC}] flags=[] (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c187f643f27200003a", "template_dependencies.en"=>{"$in"=>["5470c6c487f643f27200004b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c487f643f27200004b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c487f643f27200004b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.8470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c187f643f27200003a", "parent_id"=>"5470c6c187f643f27200003c", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c187f643f27200003c", "site_id"=>"5470c6c187f643f27200003a", "_id"=>{"$ne"=>"5470c6c487f643f27200004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.6749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c187f643f27200003c", "site_id"=>"5470c6c187f643f27200003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6814ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6c187f643f27200003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c487f643f27200004c", "parent_ids"=>["5470c6c187f643f27200003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c6c187f643f27200003a", "parent_id"=>"5470c6c187f643f27200003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:20 UTC, "created_at"=>2014-11-22 17:24:20 UTC}] flags=[] (0.3240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c187f643f27200003a", "template_dependencies.en"=>{"$in"=>["5470c6c487f643f27200004c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c487f643f27200004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5829ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c487f643f27200004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2697ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c187f643f27200003a", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c6c187f643f27200003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c6c187f643f27200003c"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:24:21 UTC}} flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c187f643f27200003a", "template_dependencies.en"=>{"$in"=>["5470c6c187f643f27200003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6c687f643f27200004d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:24:01 UTC, "updated_at"=>2014-11-22 17:24:22 UTC, "memberships"=>[{"_id"=>"5470c6c687f643f27200004e", "role"=>"admin", "account_id"=>"5470c6c187f643f272000039"}]}] flags=[] (0.1519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c687f643f27200004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6c687f643f27200004d", "_id"=>{"$ne"=>"5470c6c687f643f27200004f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5202ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c687f643f27200004f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6c687f643f27200004d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:22 UTC, "created_at"=>2014-11-22 17:24:22 UTC}] flags=[] (0.2172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c687f643f27200004d", "template_dependencies.en"=>{"$in"=>["5470c6c687f643f27200004f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c687f643f27200004f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2930ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c687f643f27200004f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c687f643f27200004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6c687f643f27200004d", "_id"=>{"$ne"=>"5470c6c687f643f272000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6c687f643f27200004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c687f643f272000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6c687f643f27200004d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:22 UTC, "created_at"=>2014-11-22 17:24:22 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c687f643f27200004d", "template_dependencies.en"=>{"$in"=>["5470c6c687f643f272000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c687f643f272000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c687f643f272000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c687f643f27200004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6c687f643f27200004d", "_id"=>{"$ne"=>"5470c6c687f643f272000051"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6c687f643f27200004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c687f643f272000051", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c6c687f643f27200004d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:22 UTC, "created_at"=>2014-11-22 17:24:22 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c687f643f27200004d", "template_dependencies.en"=>{"$in"=>["5470c6c687f643f272000051"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3707ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c687f643f272000051"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c687f643f272000051"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6c687f643f27200004d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4010ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6c787f643f272000052", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6c687f643f27200004d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6c787f643f272000053", "updated_at"=>2014-11-22 17:24:23 UTC, "created_at"=>2014-11-22 17:24:23 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6c787f643f272000053", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.7627ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c787f643f272000054"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c787f643f272000052"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c787f643f272000052", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c787f643f272000052"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (1.3120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6c787f643f272000054", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6c787f643f272000052", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6c787f643f272000052", "content_type_id"=>"5470c6c787f643f272000052", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c6c687f643f27200004d", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:23 UTC, "created_at"=>2014-11-22 17:24:23 UTC}] flags=[] (0.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c387f643f272000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f272000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c487f643f272000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f272000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6c287f643f27200003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c287f643f272000040"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1271ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6c287f643f272000040"} update={"$set"=>{"updated_at"=>2014-11-22 17:24:23 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.1051ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c287f643f272000040"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6c287f643f27200003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6c187f643f27200003a", "_id"=>"5470c6c287f643f27200003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5338ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3950ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1411ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1072ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7491ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3912ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c6c887f643f272000055", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"911f98b543d06b938d43cff488c689dd1ed4e10a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"21V41pSxhoxLxGC1ccqz", "api_key"=>"410f3d39839b5d222cafe7557e6da2e568b68385", "updated_at"=>2014-11-22 17:24:24 UTC, "created_at"=>2014-11-22 17:24:24 UTC}] flags=[] (0.1352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9460ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6c887f643f272000056", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:24:01 UTC, "updated_at"=>2014-11-22 17:24:24 UTC, "memberships"=>[{"_id"=>"5470c6c887f643f272000057", "role"=>"admin", "account_id"=>"5470c6c887f643f272000055"}]}] flags=[] (0.3462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c887f643f272000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6c887f643f272000056", "_id"=>{"$ne"=>"5470c6c887f643f272000058"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c887f643f272000058", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6c887f643f272000056", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:24 UTC, "created_at"=>2014-11-22 17:24:24 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "template_dependencies.en"=>{"$in"=>["5470c6c887f643f272000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c887f643f272000058"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4661ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c887f643f272000058"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c887f643f272000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6c887f643f272000056", "_id"=>{"$ne"=>"5470c6c887f643f272000059"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6c887f643f272000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6030ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c887f643f272000059", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6c887f643f272000056", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:24 UTC, "created_at"=>2014-11-22 17:24:24 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "template_dependencies.en"=>{"$in"=>["5470c6c887f643f272000059"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3593ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c887f643f272000059"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3281ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c887f643f272000059"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6c887f643f272000056", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6671ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6c887f643f27200005a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c6c887f643f272000056", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c6c887f643f27200005b", "updated_at"=>2014-11-22 17:24:24 UTC, "created_at"=>2014-11-22 17:24:24 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6c887f643f27200005b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6c887f643f272000056", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6c887f643f27200005a"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6c887f643f27200005c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6c887f643f272000056", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6c887f643f27200005d", "updated_at"=>2014-11-22 17:24:24 UTC, "created_at"=>2014-11-22 17:24:24 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6c887f643f27200005d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c6c887f643f27200005e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c6c887f643f27200005a", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c6c887f643f27200005f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2933ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6c887f643f272000056", "_id"=>"5470c6c887f643f27200005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6c887f643f27200005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5651ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005a"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1521ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6c887f643f27200005a"} update={"$set"=>{"updated_at"=>2014-11-22 17:24:24 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c6c887f643f272000060", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c6c887f643f27200005c", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c887f643f27200005a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6c887f643f27200005c", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c887f643f272000061"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c887f643f27200005a", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6c887f643f272000061", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6c887f643f27200005a", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6c887f643f27200005c", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6c887f643f27200005a", "content_type_id"=>"5470c6c887f643f27200005a", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c6c887f643f272000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:24:24 UTC, "created_at"=>2014-11-22 17:24:24 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c6c887f643f272000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c987f643f272000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c887f643f27200005c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4640ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}}} (0.3240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6c987f643f272000062", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6c887f643f27200005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6c887f643f27200005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c6c887f643f272000061", "_type"=>"Locomotive::ContentEntry5470c6c887f643f27200005c", "content_type_id"=>"5470c6c887f643f27200005c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c6c887f643f272000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:25 UTC, "created_at"=>2014-11-22 17:24:25 UTC}] flags=[] (0.2012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c987f643f272000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c887f643f27200005c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4361ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}}} (0.3459ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4950ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6c987f643f272000063", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6c887f643f27200005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6c887f643f27200005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6c887f643f27200005c", "content_type_id"=>"5470c6c887f643f27200005c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c6c887f643f272000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:25 UTC, "created_at"=>2014-11-22 17:24:25 UTC}] flags=[] (0.2217ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6680ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c887f643f272000056", "parent_id"=>"5470c6c887f643f272000058", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c887f643f272000058", "site_id"=>"5470c6c887f643f272000056", "_id"=>{"$ne"=>"5470c6c987f643f272000064"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6c887f643f272000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6c987f643f272000064", "parent_ids"=>["5470c6c887f643f272000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c6c887f643f272000056", "parent_id"=>"5470c6c887f643f272000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:25 UTC, "created_at"=>2014-11-22 17:24:25 UTC, "editable_elements"=>[{"_id"=>"5470c6c987f643f272000065", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:24:25 UTC, "created_at"=>2014-11-22 17:24:25 UTC}]}] flags=[] (0.3181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "template_dependencies.en"=>{"$in"=>["5470c6c987f643f272000064"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3624ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c987f643f272000064"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4711ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6c987f643f272000064"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c887f643f272000056", "parent_id"=>"5470c6c887f643f272000058", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c887f643f272000058", "site_id"=>"5470c6c887f643f272000056", "_id"=>{"$ne"=>"5470c6cb87f643f272000066"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c887f643f272000058", "site_id"=>"5470c6c887f643f272000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6c887f643f272000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5851ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6cb87f643f272000066", "parent_ids"=>["5470c6c887f643f272000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c6c887f643f272000056", "parent_id"=>"5470c6c887f643f272000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:27 UTC, "created_at"=>2014-11-22 17:24:27 UTC}] flags=[] (0.2167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "template_dependencies.en"=>{"$in"=>["5470c6cb87f643f272000066"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6cb87f643f272000066"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6cb87f643f272000066"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c887f643f272000056", "parent_id"=>"5470c6c887f643f272000058", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c887f643f272000058", "site_id"=>"5470c6c887f643f272000056", "_id"=>{"$ne"=>"5470c6cb87f643f272000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c887f643f272000058", "site_id"=>"5470c6c887f643f272000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6c887f643f272000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6cb87f643f272000067", "parent_ids"=>["5470c6c887f643f272000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c6c887f643f272000056", "parent_id"=>"5470c6c887f643f272000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:27 UTC, "created_at"=>2014-11-22 17:24:27 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "template_dependencies.en"=>{"$in"=>["5470c6cb87f643f272000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6cb87f643f272000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2999ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6cb87f643f272000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6c887f643f272000056", "parent_id"=>"5470c6c887f643f272000058", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c887f643f272000058", "site_id"=>"5470c6c887f643f272000056", "_id"=>{"$ne"=>"5470c6cb87f643f272000068"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6c887f643f272000058", "site_id"=>"5470c6c887f643f272000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6c887f643f272000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6cb87f643f272000068", "parent_ids"=>["5470c6c887f643f272000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c6c887f643f272000056", "parent_id"=>"5470c6c887f643f272000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:27 UTC, "created_at"=>2014-11-22 17:24:27 UTC}] flags=[] (0.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "template_dependencies.en"=>{"$in"=>["5470c6cb87f643f272000068"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6cb87f643f272000068"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2930ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6cb87f643f272000068"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c6c887f643f272000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4103ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c6c887f643f272000058"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:24:28 UTC}} flags=[] (0.2599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "template_dependencies.en"=>{"$in"=>["5470c6c887f643f272000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6cc87f643f272000069", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:24:01 UTC, "updated_at"=>2014-11-22 17:24:28 UTC, "memberships"=>[{"_id"=>"5470c6cc87f643f27200006a", "role"=>"admin", "account_id"=>"5470c6c887f643f272000055"}]}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6cc87f643f272000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6cc87f643f272000069", "_id"=>{"$ne"=>"5470c6cc87f643f27200006b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5138ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6cc87f643f27200006b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6cc87f643f272000069", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:28 UTC, "created_at"=>2014-11-22 17:24:28 UTC}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6cc87f643f272000069", "template_dependencies.en"=>{"$in"=>["5470c6cc87f643f27200006b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6cc87f643f27200006b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6cc87f643f27200006b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6cc87f643f272000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6cc87f643f272000069", "_id"=>{"$ne"=>"5470c6cd87f643f27200006c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6cc87f643f272000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6061ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6cd87f643f27200006c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6cc87f643f272000069", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:29 UTC, "created_at"=>2014-11-22 17:24:29 UTC}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6cc87f643f272000069", "template_dependencies.en"=>{"$in"=>["5470c6cd87f643f27200006c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6cd87f643f27200006c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3288ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6cd87f643f27200006c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6cc87f643f272000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4287ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6cc87f643f272000069", "_id"=>{"$ne"=>"5470c6cd87f643f27200006d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6cc87f643f272000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3002ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6cd87f643f27200006d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c6cc87f643f272000069", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:24:29 UTC, "created_at"=>2014-11-22 17:24:29 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6cc87f643f272000069", "template_dependencies.en"=>{"$in"=>["5470c6cd87f643f27200006d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6cd87f643f27200006d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6cd87f643f27200006d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6cc87f643f272000069", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6cd87f643f27200006e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6cc87f643f272000069", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6cd87f643f27200006f", "updated_at"=>2014-11-22 17:24:29 UTC, "created_at"=>2014-11-22 17:24:29 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6cd87f643f27200006f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.6878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6cd87f643f272000070"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6cd87f643f27200006e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6cd87f643f27200006e", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6cd87f643f27200006e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.6249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6cd87f643f272000070", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6cd87f643f27200006e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6cd87f643f27200006e", "content_type_id"=>"5470c6cd87f643f27200006e", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c6cc87f643f272000069", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:24:29 UTC, "created_at"=>2014-11-22 17:24:29 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c987f643f272000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6c987f643f272000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6c887f643f27200005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5598ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1321ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6c887f643f27200005c"} update={"$set"=>{"updated_at"=>2014-11-22 17:24:30 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.0970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c887f643f27200005c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6c887f643f27200005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6c887f643f272000056", "_id"=>"5470c6c887f643f27200005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6540ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:24:30 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6063ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5519ms) Rendered text template (0.0ms) Completed 200 OK in 4.1ms (Views: 0.3ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:24:30 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5457ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5829ms) Rendered text template (0.0ms) Completed 200 OK in 700.4ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6c887f643f27200005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6c887f643f27200005c", "updated_at"=>{"$lt"=>2014-11-22 17:24:30 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c6c887f643f272000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c6c887f643f27200005c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7360ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c6c987f643f272000062"} update={"$set"=>{"updated_at"=>2014-11-22 17:24:30 UTC}} flags=[] (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470c6c887f643f272000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6c887f643f27200005a"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c6c887f643f272000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c6c887f643f27200005c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4780ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c6c987f643f272000063"} update={"$set"=>{"updated_at"=>2014-11-22 17:24:31 UTC}} flags=[] (0.1590ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:24:32 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) Rendered text template (0.0ms) Completed 200 OK in 4.8ms (Views: 0.8ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:24:32 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6c887f643f272000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6611ms) Rendered text template (0.0ms) Completed 200 OK in 592.5ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3561ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2500ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8969ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5271ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5157ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c6ef87f643af4b000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"7963ab9b6fcbde1db62dfd5b3107fcbdb456e1bb", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"qNvtqmhxPULdzx2j5es4", "api_key"=>"cacb04b2588fc85a6e1c9bbab3c8f5a0bf8f7c8d", "updated_at"=>2014-11-22 17:25:03 UTC, "created_at"=>2014-11-22 17:25:03 UTC}] flags=[] (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7310ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6ef87f643af4b000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:25:02 UTC, "updated_at"=>2014-11-22 17:25:03 UTC, "memberships"=>[{"_id"=>"5470c6ef87f643af4b000003", "role"=>"admin", "account_id"=>"5470c6ef87f643af4b000001"}]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6ef87f643af4b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6ef87f643af4b000002", "_id"=>{"$ne"=>"5470c6ef87f643af4b000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6ef87f643af4b000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6ef87f643af4b000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:03 UTC, "created_at"=>2014-11-22 17:25:03 UTC}] flags=[] (0.2267ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6ef87f643af4b000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002", "template_dependencies.en"=>{"$in"=>["5470c6ef87f643af4b000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6ef87f643af4b000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6ef87f643af4b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6ef87f643af4b000002", "_id"=>{"$ne"=>"5470c6f087f643af4b000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7827ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5269ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6f087f643af4b000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6ef87f643af4b000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:04 UTC, "created_at"=>2014-11-22 17:25:04 UTC}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002", "template_dependencies.en"=>{"$in"=>["5470c6f087f643af4b000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f087f643af4b000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2978ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6f087f643af4b000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6ef87f643af4b000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6f087f643af4b000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c6ef87f643af4b000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c6f087f643af4b000007", "updated_at"=>2014-11-22 17:25:04 UTC, "created_at"=>2014-11-22 17:25:04 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6f087f643af4b000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.4301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6ef87f643af4b000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6f087f643af4b000006"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4861ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6f087f643af4b000008", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6ef87f643af4b000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6f087f643af4b000009", "updated_at"=>2014-11-22 17:25:04 UTC, "created_at"=>2014-11-22 17:25:04 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6f087f643af4b000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c6f087f643af4b00000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c6f087f643af4b000006", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c6f087f643af4b00000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3133ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6ef87f643af4b000002", "_id"=>"5470c6f087f643af4b000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6f087f643af4b000008"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5641ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f087f643af4b000006"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1190ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6f087f643af4b000006"} update={"$set"=>{"updated_at"=>2014-11-22 17:25:04 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c6f087f643af4b00000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c6f087f643af4b000008", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6f087f643af4b000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6f087f643af4b000008", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6f087f643af4b00000d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f087f643af4b000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6f087f643af4b000006", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3397ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f087f643af4b000006"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4950ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6f087f643af4b00000d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6f087f643af4b000006", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6f087f643af4b000008", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6f087f643af4b000006", "content_type_id"=>"5470c6f087f643af4b000006", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c6ef87f643af4b000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:25:04 UTC, "created_at"=>2014-11-22 17:25:04 UTC}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c6f087f643af4b00000d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f087f643af4b000008"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6f087f643af4b00000e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f087f643af4b000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6f087f643af4b000008", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f087f643af4b000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4358ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f087f643af4b000008"]}}} (0.5009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6f087f643af4b00000e", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6f087f643af4b000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6f087f643af4b000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c6f087f643af4b00000d", "_type"=>"Locomotive::ContentEntry5470c6f087f643af4b000008", "content_type_id"=>"5470c6f087f643af4b000008", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c6ef87f643af4b000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:04 UTC, "created_at"=>2014-11-22 17:25:04 UTC}] flags=[] (0.2718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6f187f643af4b00000f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f087f643af4b000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6f087f643af4b000008", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f087f643af4b000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4420ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f087f643af4b000008"]}}} (0.3519ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f087f643af4b000008"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6f187f643af4b00000f", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6f087f643af4b000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6f087f643af4b000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6f087f643af4b000008", "content_type_id"=>"5470c6f087f643af4b000008", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c6ef87f643af4b000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:05 UTC, "created_at"=>2014-11-22 17:25:05 UTC}] flags=[] (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7219ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6ef87f643af4b000002", "parent_id"=>"5470c6ef87f643af4b000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6ef87f643af4b000004", "site_id"=>"5470c6ef87f643af4b000002", "_id"=>{"$ne"=>"5470c6f187f643af4b000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6ef87f643af4b000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6f187f643af4b000010", "parent_ids"=>["5470c6ef87f643af4b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c6ef87f643af4b000002", "parent_id"=>"5470c6ef87f643af4b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:05 UTC, "created_at"=>2014-11-22 17:25:05 UTC, "editable_elements"=>[{"_id"=>"5470c6f187f643af4b000011", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:25:05 UTC, "created_at"=>2014-11-22 17:25:05 UTC}]}] flags=[] (0.3030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002", "template_dependencies.en"=>{"$in"=>["5470c6f187f643af4b000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f187f643af4b000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6f187f643af4b000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6ef87f643af4b000002", "parent_id"=>"5470c6ef87f643af4b000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6ef87f643af4b000004", "site_id"=>"5470c6ef87f643af4b000002", "_id"=>{"$ne"=>"5470c6f287f643af4b000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6ef87f643af4b000004", "site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6ef87f643af4b000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7522ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6f287f643af4b000012", "parent_ids"=>["5470c6ef87f643af4b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c6ef87f643af4b000002", "parent_id"=>"5470c6ef87f643af4b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:06 UTC, "created_at"=>2014-11-22 17:25:06 UTC}] flags=[] (0.2909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002", "template_dependencies.en"=>{"$in"=>["5470c6f287f643af4b000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f287f643af4b000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7172ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6f287f643af4b000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6ef87f643af4b000002", "parent_id"=>"5470c6ef87f643af4b000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6ef87f643af4b000004", "site_id"=>"5470c6ef87f643af4b000002", "_id"=>{"$ne"=>"5470c6f287f643af4b000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6ef87f643af4b000004", "site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6ef87f643af4b000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5147ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6f287f643af4b000013", "parent_ids"=>["5470c6ef87f643af4b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c6ef87f643af4b000002", "parent_id"=>"5470c6ef87f643af4b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:06 UTC, "created_at"=>2014-11-22 17:25:06 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002", "template_dependencies.en"=>{"$in"=>["5470c6f287f643af4b000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f287f643af4b000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3529ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6f287f643af4b000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6ef87f643af4b000002", "parent_id"=>"5470c6ef87f643af4b000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4427ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6ef87f643af4b000004", "site_id"=>"5470c6ef87f643af4b000002", "_id"=>{"$ne"=>"5470c6f287f643af4b000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6ef87f643af4b000004", "site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6ef87f643af4b000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6f287f643af4b000014", "parent_ids"=>["5470c6ef87f643af4b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c6ef87f643af4b000002", "parent_id"=>"5470c6ef87f643af4b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:06 UTC, "created_at"=>2014-11-22 17:25:06 UTC}] flags=[] (0.2909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002", "template_dependencies.en"=>{"$in"=>["5470c6f287f643af4b000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f287f643af4b000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6f287f643af4b000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c6ef87f643af4b000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:25:07 UTC}} flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002", "template_dependencies.en"=>{"$in"=>["5470c6ef87f643af4b000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6f387f643af4b000015", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:25:02 UTC, "updated_at"=>2014-11-22 17:25:07 UTC, "memberships"=>[{"_id"=>"5470c6f387f643af4b000016", "role"=>"admin", "account_id"=>"5470c6ef87f643af4b000001"}]}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6f387f643af4b000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4637ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6f387f643af4b000015", "_id"=>{"$ne"=>"5470c6f387f643af4b000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5481ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6f387f643af4b000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6f387f643af4b000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:07 UTC, "created_at"=>2014-11-22 17:25:07 UTC}] flags=[] (0.2959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f387f643af4b000015", "template_dependencies.en"=>{"$in"=>["5470c6f387f643af4b000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f387f643af4b000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3269ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6f387f643af4b000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6f387f643af4b000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6f387f643af4b000015", "_id"=>{"$ne"=>"5470c6f487f643af4b000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6f387f643af4b000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6f487f643af4b000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6f387f643af4b000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:08 UTC, "created_at"=>2014-11-22 17:25:08 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f387f643af4b000015", "template_dependencies.en"=>{"$in"=>["5470c6f487f643af4b000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f487f643af4b000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6f487f643af4b000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6f387f643af4b000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6f387f643af4b000015", "_id"=>{"$ne"=>"5470c6f487f643af4b000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6f387f643af4b000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6f487f643af4b000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c6f387f643af4b000015", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:08 UTC, "created_at"=>2014-11-22 17:25:08 UTC}] flags=[] (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f387f643af4b000015", "template_dependencies.en"=>{"$in"=>["5470c6f487f643af4b000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f487f643af4b000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3183ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6f487f643af4b000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6f387f643af4b000015", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6f487f643af4b00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6f387f643af4b000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6f487f643af4b00001b", "updated_at"=>2014-11-22 17:25:08 UTC, "created_at"=>2014-11-22 17:25:08 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6f487f643af4b00001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6f487f643af4b00001c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f487f643af4b00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6f487f643af4b00001a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6f487f643af4b00001a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6f487f643af4b00001c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6f487f643af4b00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6f487f643af4b00001a", "content_type_id"=>"5470c6f487f643af4b00001a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c6f387f643af4b000015", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:08 UTC, "created_at"=>2014-11-22 17:25:08 UTC}] flags=[] (0.2141ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 18:25:10 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.7601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c6ef87f643af4b000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4661ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (18.9ms) Completed 200 OK in 38.0ms (Views: 32.4ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 18:25:10 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (8ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 18:25:10 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (8ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 18:25:10 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 18:25:10 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c6ef87f643af4b000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5169ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c6ef87f643af4b000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 17:25:10 UTC, "updated_at"=>2014-11-22 17:25:10 UTC}} flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c6ef87f643af4b000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 17:25:10 UTC, "current_sign_in_at"=>2014-11-22 17:25:10 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 17:25:10 UTC}} flags=[] (0.2162ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 18.4ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:25:10 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c6ef87f643af4b000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5534ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c6ef87f643af4b000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.5161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3890ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[5051903152239] (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c6f087f643af4b000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c6f087f643af4b000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7589ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (25.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (9.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (46.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c6ef87f643af4b000001", :role=>:admin}}}} (0.5691ms) Rendered locomotive/shared/_main_app_head.html.haml (1.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (14.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c6ef87f643af4b000001"}} (0.4339ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c6ef87f643af4b000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5751ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (3.8ms) Rendered locomotive/shared/_main_app_header.html.haml (5.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (26.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 126.6ms (Views: 108.5ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 18:25:10 +0100 Served asset /locomotive.css - 200 OK (36ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 18:25:10 +0100 Served asset /locomotive.js - 200 OK (104ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 18:25:11 +0100 Served asset /locomotive/search_bar.js - 200 OK (9ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 18:25:11 +0100 Served asset /locomotive/search_bar.css - 200 OK (4ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 18:25:11 +0100 Served asset /locomotive/list/item-left.png - 200 OK (3ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 18:25:11 +0100 Served asset /locomotive/nocoffee.png - 200 OK (6ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 18:25:11 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (3ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:25:11 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6897ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c6ef87f643af4b000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c6ef87f643af4b000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.6079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2562ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[5050950147947] (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.8271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c6ef87f643af4b000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c6f087f643af4b000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c6f087f643af4b000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (2.2879ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (28.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (11.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (16.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (48.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c6ef87f643af4b000001", :role=>:admin}}}} (0.7100ms) Rendered locomotive/shared/_main_app_head.html.haml (1.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (8.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c6ef87f643af4b000001"}} (0.6220ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (1.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c6ef87f643af4b000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2960ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (2.9ms) Rendered locomotive/shared/_main_app_header.html.haml (3.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (20.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 120.7ms (Views: 88.9ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 18:25:11 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c6ef87f643af4b000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c6ef87f643af4b000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5381ms) Completed 200 OK in 474.1ms (Views: 1.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1690ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (3.2790ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.8877ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.1551ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.6408ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.9951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3972ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c6f987f643af4b00001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b401be1482ca02e06df4a25414b5c47426863f80", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"RMfXoA9GguaQGz6Q6xxi", "api_key"=>"b0d81c089573c1215c24c751e4743f17825c3f20", "updated_at"=>2014-11-22 17:25:13 UTC, "created_at"=>2014-11-22 17:25:13 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6f987f643af4b00001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:25:02 UTC, "updated_at"=>2014-11-22 17:25:13 UTC, "memberships"=>[{"_id"=>"5470c6f987f643af4b00001f", "role"=>"admin", "account_id"=>"5470c6f987f643af4b00001d"}]}] flags=[] (0.3941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6f987f643af4b00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6f987f643af4b00001e", "_id"=>{"$ne"=>"5470c6f987f643af4b000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6f987f643af4b000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6f987f643af4b00001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:13 UTC, "created_at"=>2014-11-22 17:25:13 UTC}] flags=[] (0.8211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "template_dependencies.en"=>{"$in"=>["5470c6f987f643af4b000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f987f643af4b000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7598ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6f987f643af4b000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6f987f643af4b00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6f987f643af4b00001e", "_id"=>{"$ne"=>"5470c6fa87f643af4b000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6f987f643af4b00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6fa87f643af4b000021", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6f987f643af4b00001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:14 UTC, "created_at"=>2014-11-22 17:25:14 UTC}] flags=[] (0.3452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "template_dependencies.en"=>{"$in"=>["5470c6fa87f643af4b000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6fa87f643af4b000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4079ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6fa87f643af4b000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6f987f643af4b00001e", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6928ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6fa87f643af4b000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c6f987f643af4b00001e", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c6fa87f643af4b000023", "updated_at"=>2014-11-22 17:25:14 UTC, "created_at"=>2014-11-22 17:25:14 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6fa87f643af4b000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6f987f643af4b00001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6fa87f643af4b000022"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6fa87f643af4b000024", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6f987f643af4b00001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6fa87f643af4b000025", "updated_at"=>2014-11-22 17:25:14 UTC, "created_at"=>2014-11-22 17:25:14 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6fa87f643af4b000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c6fa87f643af4b000026", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c6fa87f643af4b000022", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c6fa87f643af4b000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6f987f643af4b00001e", "_id"=>"5470c6fa87f643af4b000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6fa87f643af4b000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8049ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fa87f643af4b000022"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1431ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c6fa87f643af4b000022"} update={"$set"=>{"updated_at"=>2014-11-22 17:25:14 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c6fa87f643af4b000028", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c6fa87f643af4b000024", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.3321ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6fa87f643af4b000022"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6fa87f643af4b000024", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6fa87f643af4b000029"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fa87f643af4b000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0293ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6fa87f643af4b000022", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6557ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fa87f643af4b000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6fa87f643af4b000029", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6fa87f643af4b000022", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6fa87f643af4b000024", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6fa87f643af4b000022", "content_type_id"=>"5470c6fa87f643af4b000022", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c6f987f643af4b00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:25:14 UTC, "created_at"=>2014-11-22 17:25:14 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c6fa87f643af4b000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fa87f643af4b000024"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6fa87f643af4b00002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fa87f643af4b000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6fa87f643af4b000024", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fa87f643af4b000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4609ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fa87f643af4b000024"]}}} (0.4041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6fa87f643af4b00002a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6fa87f643af4b000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6fa87f643af4b000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c6fa87f643af4b000029", "_type"=>"Locomotive::ContentEntry5470c6fa87f643af4b000024", "content_type_id"=>"5470c6fa87f643af4b000024", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c6f987f643af4b00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:14 UTC, "created_at"=>2014-11-22 17:25:14 UTC}] flags=[] (0.3808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6fb87f643af4b00002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fa87f643af4b000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6fa87f643af4b000024", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fa87f643af4b000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5791ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fa87f643af4b000024"]}}} (0.3903ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fa87f643af4b000024"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5202ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6fb87f643af4b00002b", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6fa87f643af4b000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c6fa87f643af4b000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6fa87f643af4b000024", "content_type_id"=>"5470c6fa87f643af4b000024", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c6f987f643af4b00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:15 UTC, "created_at"=>2014-11-22 17:25:15 UTC}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8919ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6f987f643af4b00001e", "parent_id"=>"5470c6f987f643af4b000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f987f643af4b000020", "site_id"=>"5470c6f987f643af4b00001e", "_id"=>{"$ne"=>"5470c6fb87f643af4b00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6f987f643af4b000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6521ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6fb87f643af4b00002c", "parent_ids"=>["5470c6f987f643af4b000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c6f987f643af4b00001e", "parent_id"=>"5470c6f987f643af4b000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:15 UTC, "created_at"=>2014-11-22 17:25:15 UTC, "editable_elements"=>[{"_id"=>"5470c6fb87f643af4b00002d", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:25:15 UTC, "created_at"=>2014-11-22 17:25:15 UTC}]}] flags=[] (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "template_dependencies.en"=>{"$in"=>["5470c6fb87f643af4b00002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6fb87f643af4b00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4311ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6fb87f643af4b00002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6f987f643af4b00001e", "parent_id"=>"5470c6f987f643af4b000020", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f987f643af4b000020", "site_id"=>"5470c6f987f643af4b00001e", "_id"=>{"$ne"=>"5470c6fc87f643af4b00002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f987f643af4b000020", "site_id"=>"5470c6f987f643af4b00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6f987f643af4b000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7958ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6fc87f643af4b00002e", "parent_ids"=>["5470c6f987f643af4b000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c6f987f643af4b00001e", "parent_id"=>"5470c6f987f643af4b000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:16 UTC, "created_at"=>2014-11-22 17:25:16 UTC}] flags=[] (0.3502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "template_dependencies.en"=>{"$in"=>["5470c6fc87f643af4b00002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6fc87f643af4b00002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2952ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6fc87f643af4b00002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6f987f643af4b00001e", "parent_id"=>"5470c6f987f643af4b000020", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f987f643af4b000020", "site_id"=>"5470c6f987f643af4b00001e", "_id"=>{"$ne"=>"5470c6fc87f643af4b00002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f987f643af4b000020", "site_id"=>"5470c6f987f643af4b00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6f987f643af4b000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5751ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6fc87f643af4b00002f", "parent_ids"=>["5470c6f987f643af4b000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c6f987f643af4b00001e", "parent_id"=>"5470c6f987f643af4b000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:16 UTC, "created_at"=>2014-11-22 17:25:16 UTC}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "template_dependencies.en"=>{"$in"=>["5470c6fc87f643af4b00002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6fc87f643af4b00002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3679ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6fc87f643af4b00002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6f987f643af4b00001e", "parent_id"=>"5470c6f987f643af4b000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f987f643af4b000020", "site_id"=>"5470c6f987f643af4b00001e", "_id"=>{"$ne"=>"5470c6fc87f643af4b000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6f987f643af4b000020", "site_id"=>"5470c6f987f643af4b00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c6f987f643af4b000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5288ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6fc87f643af4b000030", "parent_ids"=>["5470c6f987f643af4b000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c6f987f643af4b00001e", "parent_id"=>"5470c6f987f643af4b000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:16 UTC, "created_at"=>2014-11-22 17:25:16 UTC}] flags=[] (0.2871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "template_dependencies.en"=>{"$in"=>["5470c6fc87f643af4b000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6fc87f643af4b000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6fc87f643af4b000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c6f987f643af4b00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8180ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c6f987f643af4b000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:25:17 UTC}} flags=[] (0.3562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "template_dependencies.en"=>{"$in"=>["5470c6f987f643af4b000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c6fd87f643af4b000031", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:25:02 UTC, "updated_at"=>2014-11-22 17:25:17 UTC, "memberships"=>[{"_id"=>"5470c6fd87f643af4b000032", "role"=>"admin", "account_id"=>"5470c6f987f643af4b00001d"}]}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6fd87f643af4b000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6fd87f643af4b000031", "_id"=>{"$ne"=>"5470c6fd87f643af4b000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6fd87f643af4b000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c6fd87f643af4b000031", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:17 UTC, "created_at"=>2014-11-22 17:25:17 UTC}] flags=[] (0.3362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6fd87f643af4b000031", "template_dependencies.en"=>{"$in"=>["5470c6fd87f643af4b000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6fd87f643af4b000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4241ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6fd87f643af4b000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6fd87f643af4b000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6fd87f643af4b000031", "_id"=>{"$ne"=>"5470c6fd87f643af4b000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6fd87f643af4b000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5093ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6fd87f643af4b000034", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c6fd87f643af4b000031", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:17 UTC, "created_at"=>2014-11-22 17:25:17 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6fd87f643af4b000031", "template_dependencies.en"=>{"$in"=>["5470c6fd87f643af4b000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6fd87f643af4b000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3290ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6fd87f643af4b000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1087ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c6fd87f643af4b000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6fd87f643af4b000031", "_id"=>{"$ne"=>"5470c6fd87f643af4b000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c6fd87f643af4b000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c6fd87f643af4b000035", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c6fd87f643af4b000031", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:17 UTC, "created_at"=>2014-11-22 17:25:17 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6fd87f643af4b000031", "template_dependencies.en"=>{"$in"=>["5470c6fd87f643af4b000035"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c6fd87f643af4b000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c6fd87f643af4b000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c6fd87f643af4b000031", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c6fe87f643af4b000036", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c6fd87f643af4b000031", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c6fe87f643af4b000037", "updated_at"=>2014-11-22 17:25:18 UTC, "created_at"=>2014-11-22 17:25:18 UTC, "entries_custom_fields"=>[{"_id"=>"5470c6fe87f643af4b000037", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.6700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c6fe87f643af4b000038"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fe87f643af4b000036"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c6fe87f643af4b000036", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c6fe87f643af4b000036"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c6fe87f643af4b000038", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c6fe87f643af4b000036", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c6fe87f643af4b000036", "content_type_id"=>"5470c6fe87f643af4b000036", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c6fd87f643af4b000031", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:18 UTC, "created_at"=>2014-11-22 17:25:18 UTC}] flags=[] (0.1829ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:25:18 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6309ms) Rendered text template (0.0ms) Completed 200 OK in 8.5ms (Views: 2.0ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 18:25:18 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5739ms) Rendered text template (0.0ms) Completed 200 OK in 441.0ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 18:25:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6518ms) Rendered text template (0.0ms) Completed 200 OK in 4.2ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:25:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5918ms) Rendered text template (0.0ms) Completed 200 OK in 3.7ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 18:25:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c6f987f643af4b00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5910ms) Rendered text template (0.0ms) Completed 200 OK in 436.2ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7381ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6859ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.1160ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5004ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0631ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c70087f643af4b000039", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f24100a9a5c1773497a3b3d56cb1e322f45b745a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"pKkps7zWiin3iNs73LKL", "api_key"=>"8695c0a911f243b9405e204411fc9c39d7d2e420", "updated_at"=>2014-11-22 17:25:20 UTC, "created_at"=>2014-11-22 17:25:20 UTC}] flags=[] (0.1471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6542ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c70087f643af4b00003a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:25:02 UTC, "updated_at"=>2014-11-22 17:25:20 UTC, "memberships"=>[{"_id"=>"5470c70087f643af4b00003b", "role"=>"admin", "account_id"=>"5470c70087f643af4b000039"}]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70087f643af4b00003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70087f643af4b00003a", "_id"=>{"$ne"=>"5470c70087f643af4b00003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.2930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70087f643af4b00003c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c70087f643af4b00003a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:20 UTC, "created_at"=>2014-11-22 17:25:20 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70087f643af4b00003a", "template_dependencies.en"=>{"$in"=>["5470c70087f643af4b00003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70087f643af4b00003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2859ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70087f643af4b00003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70087f643af4b00003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70087f643af4b00003a", "_id"=>{"$ne"=>"5470c70187f643af4b00003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70087f643af4b00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70187f643af4b00003d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c70087f643af4b00003a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:21 UTC, "created_at"=>2014-11-22 17:25:21 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70087f643af4b00003a", "template_dependencies.en"=>{"$in"=>["5470c70187f643af4b00003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70187f643af4b00003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70187f643af4b00003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0987ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c70087f643af4b00003a", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c70187f643af4b00003e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c70087f643af4b00003a", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c70187f643af4b00003f", "updated_at"=>2014-11-22 17:25:21 UTC, "created_at"=>2014-11-22 17:25:21 UTC, "entries_custom_fields"=>[{"_id"=>"5470c70187f643af4b00003f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c70087f643af4b00003a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c70187f643af4b00003e"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c70187f643af4b000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c70087f643af4b00003a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c70187f643af4b000041", "updated_at"=>2014-11-22 17:25:21 UTC, "created_at"=>2014-11-22 17:25:21 UTC, "entries_custom_fields"=>[{"_id"=>"5470c70187f643af4b000041", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c70187f643af4b000042", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c70187f643af4b00003e", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c70187f643af4b000043", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c70087f643af4b00003a", "_id"=>"5470c70187f643af4b00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c70187f643af4b000040"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5977ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b00003e"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1280ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c70187f643af4b00003e"} update={"$set"=>{"updated_at"=>2014-11-22 17:25:21 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c70187f643af4b000044", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c70187f643af4b000040", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70187f643af4b00003e"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c70187f643af4b000040", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70187f643af4b000045"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b00003e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70187f643af4b00003e", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4044ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b00003e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3409ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c70187f643af4b000045", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c70187f643af4b00003e", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c70187f643af4b000040", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c70187f643af4b00003e", "content_type_id"=>"5470c70187f643af4b00003e", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c70087f643af4b00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:25:21 UTC, "created_at"=>2014-11-22 17:25:21 UTC}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c70187f643af4b000045", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b000040"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70187f643af4b000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70187f643af4b000040", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3719ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b000040"]}}} (0.3603ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c70187f643af4b000046", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c70187f643af4b000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c70187f643af4b00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c70187f643af4b000045", "_type"=>"Locomotive::ContentEntry5470c70187f643af4b000040", "content_type_id"=>"5470c70187f643af4b000040", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c70087f643af4b00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:21 UTC, "created_at"=>2014-11-22 17:25:21 UTC}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70287f643af4b000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70187f643af4b000040", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5152ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b000040"]}}} (0.3619ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b000040"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5102ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c70287f643af4b000047", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c70187f643af4b000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c70187f643af4b00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c70187f643af4b000040", "content_type_id"=>"5470c70187f643af4b000040", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c70087f643af4b00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:22 UTC, "created_at"=>2014-11-22 17:25:22 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7200ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70087f643af4b00003a", "parent_id"=>"5470c70087f643af4b00003c", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4947ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70087f643af4b00003c", "site_id"=>"5470c70087f643af4b00003a", "_id"=>{"$ne"=>"5470c70387f643af4b000048"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c70087f643af4b00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70387f643af4b000048", "parent_ids"=>["5470c70087f643af4b00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c70087f643af4b00003a", "parent_id"=>"5470c70087f643af4b00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:23 UTC, "created_at"=>2014-11-22 17:25:23 UTC, "editable_elements"=>[{"_id"=>"5470c70387f643af4b000049", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:25:23 UTC, "created_at"=>2014-11-22 17:25:23 UTC}]}] flags=[] (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70087f643af4b00003a", "template_dependencies.en"=>{"$in"=>["5470c70387f643af4b000048"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70387f643af4b000048"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70387f643af4b000048"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70087f643af4b00003a", "parent_id"=>"5470c70087f643af4b00003c", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70087f643af4b00003c", "site_id"=>"5470c70087f643af4b00003a", "_id"=>{"$ne"=>"5470c70387f643af4b00004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70087f643af4b00003c", "site_id"=>"5470c70087f643af4b00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c70087f643af4b00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9873ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70387f643af4b00004a", "parent_ids"=>["5470c70087f643af4b00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c70087f643af4b00003a", "parent_id"=>"5470c70087f643af4b00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:23 UTC, "created_at"=>2014-11-22 17:25:23 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70087f643af4b00003a", "template_dependencies.en"=>{"$in"=>["5470c70387f643af4b00004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70387f643af4b00004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3219ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70387f643af4b00004a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70087f643af4b00003a", "parent_id"=>"5470c70087f643af4b00003c", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70087f643af4b00003c", "site_id"=>"5470c70087f643af4b00003a", "_id"=>{"$ne"=>"5470c70387f643af4b00004b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8547ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70087f643af4b00003c", "site_id"=>"5470c70087f643af4b00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c70087f643af4b00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4902ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70387f643af4b00004b", "parent_ids"=>["5470c70087f643af4b00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c70087f643af4b00003a", "parent_id"=>"5470c70087f643af4b00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:23 UTC, "created_at"=>2014-11-22 17:25:23 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70087f643af4b00003a", "template_dependencies.en"=>{"$in"=>["5470c70387f643af4b00004b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70387f643af4b00004b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3438ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70387f643af4b00004b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70087f643af4b00003a", "parent_id"=>"5470c70087f643af4b00003c", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70087f643af4b00003c", "site_id"=>"5470c70087f643af4b00003a", "_id"=>{"$ne"=>"5470c70387f643af4b00004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70087f643af4b00003c", "site_id"=>"5470c70087f643af4b00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c70087f643af4b00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70387f643af4b00004c", "parent_ids"=>["5470c70087f643af4b00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c70087f643af4b00003a", "parent_id"=>"5470c70087f643af4b00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:23 UTC, "created_at"=>2014-11-22 17:25:23 UTC}] flags=[] (0.4258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70087f643af4b00003a", "template_dependencies.en"=>{"$in"=>["5470c70387f643af4b00004c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70387f643af4b00004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4451ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70387f643af4b00004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70087f643af4b00003a", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c70087f643af4b00003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c70087f643af4b00003c"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:25:24 UTC}} flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70087f643af4b00003a", "template_dependencies.en"=>{"$in"=>["5470c70087f643af4b00003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5922ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c70487f643af4b00004d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:25:02 UTC, "updated_at"=>2014-11-22 17:25:24 UTC, "memberships"=>[{"_id"=>"5470c70487f643af4b00004e", "role"=>"admin", "account_id"=>"5470c70087f643af4b000039"}]}] flags=[] (0.3140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70487f643af4b00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70487f643af4b00004d", "_id"=>{"$ne"=>"5470c70487f643af4b00004f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8371ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70487f643af4b00004f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c70487f643af4b00004d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:24 UTC, "created_at"=>2014-11-22 17:25:24 UTC}] flags=[] (0.4871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70487f643af4b00004d", "template_dependencies.en"=>{"$in"=>["5470c70487f643af4b00004f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70487f643af4b00004f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3638ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70487f643af4b00004f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70487f643af4b00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70487f643af4b00004d", "_id"=>{"$ne"=>"5470c70587f643af4b000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70487f643af4b00004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70587f643af4b000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c70487f643af4b00004d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:25 UTC, "created_at"=>2014-11-22 17:25:25 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70487f643af4b00004d", "template_dependencies.en"=>{"$in"=>["5470c70587f643af4b000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70587f643af4b000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3102ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70587f643af4b000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70487f643af4b00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4013ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70487f643af4b00004d", "_id"=>{"$ne"=>"5470c70587f643af4b000051"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70487f643af4b00004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70587f643af4b000051", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c70487f643af4b00004d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:25 UTC, "created_at"=>2014-11-22 17:25:25 UTC}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70487f643af4b00004d", "template_dependencies.en"=>{"$in"=>["5470c70587f643af4b000051"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70587f643af4b000051"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3078ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70587f643af4b000051"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c70487f643af4b00004d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4144ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c70587f643af4b000052", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c70487f643af4b00004d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c70587f643af4b000053", "updated_at"=>2014-11-22 17:25:25 UTC, "created_at"=>2014-11-22 17:25:25 UTC, "entries_custom_fields"=>[{"_id"=>"5470c70587f643af4b000053", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70587f643af4b000054"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70587f643af4b000052"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70587f643af4b000052", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70587f643af4b000052"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3808ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c70587f643af4b000054", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c70587f643af4b000052", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c70587f643af4b000052", "content_type_id"=>"5470c70587f643af4b000052", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c70487f643af4b00004d", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:25 UTC, "created_at"=>2014-11-22 17:25:25 UTC}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70187f643af4b000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70287f643af4b000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c70187f643af4b00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70187f643af4b000040"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1328ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c70187f643af4b000040"} update={"$set"=>{"updated_at"=>2014-11-22 17:25:26 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.1030ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70187f643af4b000040"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c70187f643af4b00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c70087f643af4b00003a", "_id"=>"5470c70187f643af4b00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6683ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5472ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1370ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7541ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c70687f643af4b000055", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"aa69666575b7cf9e1e90bac886150225e9e01b06", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"xXyxqmktZL3EVpA2sfhA", "api_key"=>"01992a0cbae0a7130aceecbd79842014e272135d", "updated_at"=>2014-11-22 17:25:26 UTC, "created_at"=>2014-11-22 17:25:26 UTC}] flags=[] (0.1328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6196ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c70687f643af4b000056", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:25:02 UTC, "updated_at"=>2014-11-22 17:25:26 UTC, "memberships"=>[{"_id"=>"5470c70687f643af4b000057", "role"=>"admin", "account_id"=>"5470c70687f643af4b000055"}]}] flags=[] (0.2770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70687f643af4b000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70687f643af4b000056", "_id"=>{"$ne"=>"5470c70687f643af4b000058"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70687f643af4b000058", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c70687f643af4b000056", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:26 UTC, "created_at"=>2014-11-22 17:25:26 UTC}] flags=[] (0.5257ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "template_dependencies.en"=>{"$in"=>["5470c70687f643af4b000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70687f643af4b000058"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3729ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70687f643af4b000058"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70687f643af4b000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70687f643af4b000056", "_id"=>{"$ne"=>"5470c70787f643af4b000059"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70687f643af4b000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70787f643af4b000059", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c70687f643af4b000056", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:27 UTC, "created_at"=>2014-11-22 17:25:27 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "template_dependencies.en"=>{"$in"=>["5470c70787f643af4b000059"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70787f643af4b000059"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70787f643af4b000059"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c70687f643af4b000056", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c70787f643af4b00005a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c70687f643af4b000056", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c70787f643af4b00005b", "updated_at"=>2014-11-22 17:25:27 UTC, "created_at"=>2014-11-22 17:25:27 UTC, "entries_custom_fields"=>[{"_id"=>"5470c70787f643af4b00005b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c70687f643af4b000056", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c70787f643af4b00005a"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c70787f643af4b00005c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c70687f643af4b000056", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c70787f643af4b00005d", "updated_at"=>2014-11-22 17:25:27 UTC, "created_at"=>2014-11-22 17:25:27 UTC, "entries_custom_fields"=>[{"_id"=>"5470c70787f643af4b00005d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c70787f643af4b00005e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c70787f643af4b00005a", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c70787f643af4b00005f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c70687f643af4b000056", "_id"=>"5470c70787f643af4b00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c70787f643af4b00005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005a"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1671ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c70787f643af4b00005a"} update={"$set"=>{"updated_at"=>2014-11-22 17:25:27 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c70787f643af4b000060", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c70787f643af4b00005c", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2007ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70787f643af4b00005a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c70787f643af4b00005c", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70787f643af4b000061"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70787f643af4b00005a", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3650ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c70787f643af4b000061", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c70787f643af4b00005a", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c70787f643af4b00005c", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c70787f643af4b00005a", "content_type_id"=>"5470c70787f643af4b00005a", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c70687f643af4b000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:25:27 UTC, "created_at"=>2014-11-22 17:25:27 UTC}] flags=[] (0.1993ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c70787f643af4b000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70787f643af4b000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70787f643af4b00005c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (1.0121ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}}} (0.7129ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c70787f643af4b000062", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c70787f643af4b00005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c70787f643af4b00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c70787f643af4b000061", "_type"=>"Locomotive::ContentEntry5470c70787f643af4b00005c", "content_type_id"=>"5470c70787f643af4b00005c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c70687f643af4b000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:27 UTC, "created_at"=>2014-11-22 17:25:27 UTC}] flags=[] (0.4539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70887f643af4b000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70787f643af4b00005c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4408ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}}} (0.3040ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.7041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c70887f643af4b000063", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c70787f643af4b00005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c70787f643af4b00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c70787f643af4b00005c", "content_type_id"=>"5470c70787f643af4b00005c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c70687f643af4b000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:28 UTC, "created_at"=>2014-11-22 17:25:28 UTC}] flags=[] (0.2859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5779ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70687f643af4b000056", "parent_id"=>"5470c70687f643af4b000058", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70687f643af4b000058", "site_id"=>"5470c70687f643af4b000056", "_id"=>{"$ne"=>"5470c70887f643af4b000064"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c70687f643af4b000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5734ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70887f643af4b000064", "parent_ids"=>["5470c70687f643af4b000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c70687f643af4b000056", "parent_id"=>"5470c70687f643af4b000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:28 UTC, "created_at"=>2014-11-22 17:25:28 UTC, "editable_elements"=>[{"_id"=>"5470c70887f643af4b000065", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:25:28 UTC, "created_at"=>2014-11-22 17:25:28 UTC}]}] flags=[] (0.2849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "template_dependencies.en"=>{"$in"=>["5470c70887f643af4b000064"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70887f643af4b000064"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4077ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70887f643af4b000064"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70687f643af4b000056", "parent_id"=>"5470c70687f643af4b000058", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70687f643af4b000058", "site_id"=>"5470c70687f643af4b000056", "_id"=>{"$ne"=>"5470c70887f643af4b000066"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8497ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70687f643af4b000058", "site_id"=>"5470c70687f643af4b000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c70687f643af4b000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6571ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70887f643af4b000066", "parent_ids"=>["5470c70687f643af4b000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c70687f643af4b000056", "parent_id"=>"5470c70687f643af4b000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:29 UTC, "created_at"=>2014-11-22 17:25:29 UTC}] flags=[] (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "template_dependencies.en"=>{"$in"=>["5470c70887f643af4b000066"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70887f643af4b000066"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5860ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70887f643af4b000066"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70687f643af4b000056", "parent_id"=>"5470c70687f643af4b000058", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70687f643af4b000058", "site_id"=>"5470c70687f643af4b000056", "_id"=>{"$ne"=>"5470c70987f643af4b000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70687f643af4b000058", "site_id"=>"5470c70687f643af4b000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c70687f643af4b000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70987f643af4b000067", "parent_ids"=>["5470c70687f643af4b000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c70687f643af4b000056", "parent_id"=>"5470c70687f643af4b000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:29 UTC, "created_at"=>2014-11-22 17:25:29 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "template_dependencies.en"=>{"$in"=>["5470c70987f643af4b000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3347ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70987f643af4b000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70987f643af4b000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70687f643af4b000056", "parent_id"=>"5470c70687f643af4b000058", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70687f643af4b000058", "site_id"=>"5470c70687f643af4b000056", "_id"=>{"$ne"=>"5470c70987f643af4b000068"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70687f643af4b000058", "site_id"=>"5470c70687f643af4b000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c70687f643af4b000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6540ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70987f643af4b000068", "parent_ids"=>["5470c70687f643af4b000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c70687f643af4b000056", "parent_id"=>"5470c70687f643af4b000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:29 UTC, "created_at"=>2014-11-22 17:25:29 UTC}] flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "template_dependencies.en"=>{"$in"=>["5470c70987f643af4b000068"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70987f643af4b000068"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70987f643af4b000068"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c70687f643af4b000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3757ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c70687f643af4b000058"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:25:29 UTC}} flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "template_dependencies.en"=>{"$in"=>["5470c70687f643af4b000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c70a87f643af4b000069", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:25:02 UTC, "updated_at"=>2014-11-22 17:25:30 UTC, "memberships"=>[{"_id"=>"5470c70a87f643af4b00006a", "role"=>"admin", "account_id"=>"5470c70687f643af4b000055"}]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70a87f643af4b000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70a87f643af4b000069", "_id"=>{"$ne"=>"5470c70a87f643af4b00006b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5548ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70a87f643af4b00006b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c70a87f643af4b000069", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:30 UTC, "created_at"=>2014-11-22 17:25:30 UTC}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70a87f643af4b000069", "template_dependencies.en"=>{"$in"=>["5470c70a87f643af4b00006b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70a87f643af4b00006b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3569ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70a87f643af4b00006b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70a87f643af4b000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70a87f643af4b000069", "_id"=>{"$ne"=>"5470c70a87f643af4b00006c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70a87f643af4b000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5050ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70a87f643af4b00006c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c70a87f643af4b000069", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:30 UTC, "created_at"=>2014-11-22 17:25:30 UTC}] flags=[] (0.2592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70a87f643af4b000069", "template_dependencies.en"=>{"$in"=>["5470c70a87f643af4b00006c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70a87f643af4b00006c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3142ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70a87f643af4b00006c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c70a87f643af4b000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70a87f643af4b000069", "_id"=>{"$ne"=>"5470c70a87f643af4b00006d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c70a87f643af4b000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c70a87f643af4b00006d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c70a87f643af4b000069", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:30 UTC, "created_at"=>2014-11-22 17:25:30 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70a87f643af4b000069", "template_dependencies.en"=>{"$in"=>["5470c70a87f643af4b00006d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c70a87f643af4b00006d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3021ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c70a87f643af4b00006d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c70a87f643af4b000069", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c70b87f643af4b00006e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c70a87f643af4b000069", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c70b87f643af4b00006f", "updated_at"=>2014-11-22 17:25:31 UTC, "created_at"=>2014-11-22 17:25:31 UTC, "entries_custom_fields"=>[{"_id"=>"5470c70b87f643af4b00006f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70b87f643af4b000070"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70b87f643af4b00006e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70b87f643af4b00006e", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70b87f643af4b00006e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c70b87f643af4b000070", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c70b87f643af4b00006e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c70b87f643af4b00006e", "content_type_id"=>"5470c70b87f643af4b00006e", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c70a87f643af4b000069", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:31 UTC, "created_at"=>2014-11-22 17:25:31 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70787f643af4b000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c70887f643af4b000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c70787f643af4b00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5798ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1411ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c70787f643af4b00005c"} update={"$set"=>{"updated_at"=>2014-11-22 17:25:31 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.1090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70787f643af4b00005c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c70787f643af4b00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c70687f643af4b000056", "_id"=>"5470c70787f643af4b00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6852ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:25:31 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5801ms) Rendered text template (0.0ms) Completed 200 OK in 4.4ms (Views: 0.3ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:25:31 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5569ms) Rendered text template (0.0ms) Completed 200 OK in 458.9ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c70787f643af4b00005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7753ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c70787f643af4b00005c", "updated_at"=>{"$lt"=>2014-11-22 17:25:31 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7486ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c70687f643af4b000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4873ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c70787f643af4b00005c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5412ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c70787f643af4b000062"} update={"$set"=>{"updated_at"=>2014-11-22 17:25:32 UTC}} flags=[] (0.1583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470c70787f643af4b000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c70787f643af4b00005a"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c70687f643af4b000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c70787f643af4b00005c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4978ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c70887f643af4b000063"} update={"$set"=>{"updated_at"=>2014-11-22 17:25:32 UTC}} flags=[] (0.1390ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:25:33 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6142ms) Rendered text template (0.0ms) Completed 200 OK in 4.6ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:25:33 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c70687f643af4b000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5579ms) Rendered text template (0.0ms) Completed 200 OK in 737.6ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6032ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5597ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2670ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2610ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8640ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9611ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5138ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c71b87f6436bbc000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c2b1436e66b3c19acaa0fe4b7a7a6c3df407ad92", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"1xjuEQusPyCREz9eStHK", "api_key"=>"2aab1320b4cdcb5ea75f951bd4788738b910a79b", "updated_at"=>2014-11-22 17:25:47 UTC, "created_at"=>2014-11-22 17:25:47 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c71b87f6436bbc000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:25:46 UTC, "updated_at"=>2014-11-22 17:25:47 UTC, "memberships"=>[{"_id"=>"5470c71b87f6436bbc000003", "role"=>"admin", "account_id"=>"5470c71b87f6436bbc000001"}]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c71b87f6436bbc000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c71b87f6436bbc000002", "_id"=>{"$ne"=>"5470c71b87f6436bbc000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c71b87f6436bbc000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c71b87f6436bbc000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:47 UTC, "created_at"=>2014-11-22 17:25:47 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71b87f6436bbc000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002", "template_dependencies.en"=>{"$in"=>["5470c71b87f6436bbc000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c71b87f6436bbc000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1023ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c71b87f6436bbc000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c71b87f6436bbc000002", "_id"=>{"$ne"=>"5470c71c87f6436bbc000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5398ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c71c87f6436bbc000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c71b87f6436bbc000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:48 UTC, "created_at"=>2014-11-22 17:25:48 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002", "template_dependencies.en"=>{"$in"=>["5470c71c87f6436bbc000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71c87f6436bbc000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2890ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c71c87f6436bbc000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c71b87f6436bbc000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7477ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c71c87f6436bbc000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c71b87f6436bbc000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c71c87f6436bbc000007", "updated_at"=>2014-11-22 17:25:48 UTC, "created_at"=>2014-11-22 17:25:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470c71c87f6436bbc000007", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c71b87f6436bbc000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c71c87f6436bbc000006"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c71c87f6436bbc000008", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c71b87f6436bbc000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c71c87f6436bbc000009", "updated_at"=>2014-11-22 17:25:48 UTC, "created_at"=>2014-11-22 17:25:48 UTC, "entries_custom_fields"=>[{"_id"=>"5470c71c87f6436bbc000009", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c71c87f6436bbc00000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c71c87f6436bbc000006", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c71c87f6436bbc00000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c71b87f6436bbc000002", "_id"=>"5470c71c87f6436bbc000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c71c87f6436bbc000008"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c71c87f6436bbc000006"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1280ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c71c87f6436bbc000006"} update={"$set"=>{"updated_at"=>2014-11-22 17:25:48 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c71c87f6436bbc00000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c71c87f6436bbc000008", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.3359ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c71c87f6436bbc000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c71c87f6436bbc000008", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c71c87f6436bbc00000d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c71c87f6436bbc000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c71c87f6436bbc000006", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c71c87f6436bbc000006"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c71c87f6436bbc00000d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c71c87f6436bbc000006", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c71c87f6436bbc000008", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c71c87f6436bbc000006", "content_type_id"=>"5470c71c87f6436bbc000006", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c71b87f6436bbc000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:25:48 UTC, "created_at"=>2014-11-22 17:25:48 UTC}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c71c87f6436bbc00000d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c71c87f6436bbc000008"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c71c87f6436bbc00000e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c71c87f6436bbc000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c71c87f6436bbc000008", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4492ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c71c87f6436bbc000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4549ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c71c87f6436bbc000008"]}}} (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c71c87f6436bbc00000e", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c71c87f6436bbc000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c71c87f6436bbc000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c71c87f6436bbc00000d", "_type"=>"Locomotive::ContentEntry5470c71c87f6436bbc000008", "content_type_id"=>"5470c71c87f6436bbc000008", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c71b87f6436bbc000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:48 UTC, "created_at"=>2014-11-22 17:25:48 UTC}] flags=[] (0.2692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c71d87f6436bbc00000f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c71c87f6436bbc000008"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c71c87f6436bbc000008", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c71c87f6436bbc000008"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.9367ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c71c87f6436bbc000008"]}}} (0.4919ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c71c87f6436bbc000008"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.7470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c71d87f6436bbc00000f", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c71c87f6436bbc000008", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c71c87f6436bbc000006"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c71c87f6436bbc000008", "content_type_id"=>"5470c71c87f6436bbc000008", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c71b87f6436bbc000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:49 UTC, "created_at"=>2014-11-22 17:25:49 UTC}] flags=[] (0.2828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6778ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c71b87f6436bbc000002", "parent_id"=>"5470c71b87f6436bbc000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71b87f6436bbc000004", "site_id"=>"5470c71b87f6436bbc000002", "_id"=>{"$ne"=>"5470c71d87f6436bbc000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6852ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c71b87f6436bbc000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c71d87f6436bbc000010", "parent_ids"=>["5470c71b87f6436bbc000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c71b87f6436bbc000002", "parent_id"=>"5470c71b87f6436bbc000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:49 UTC, "created_at"=>2014-11-22 17:25:49 UTC, "editable_elements"=>[{"_id"=>"5470c71d87f6436bbc000011", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:25:49 UTC, "created_at"=>2014-11-22 17:25:49 UTC}]}] flags=[] (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002", "template_dependencies.en"=>{"$in"=>["5470c71d87f6436bbc000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71d87f6436bbc000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4048ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c71d87f6436bbc000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c71b87f6436bbc000002", "parent_id"=>"5470c71b87f6436bbc000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71b87f6436bbc000004", "site_id"=>"5470c71b87f6436bbc000002", "_id"=>{"$ne"=>"5470c71e87f6436bbc000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71b87f6436bbc000004", "site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c71b87f6436bbc000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5982ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c71e87f6436bbc000012", "parent_ids"=>["5470c71b87f6436bbc000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c71b87f6436bbc000002", "parent_id"=>"5470c71b87f6436bbc000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:50 UTC, "created_at"=>2014-11-22 17:25:50 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002", "template_dependencies.en"=>{"$in"=>["5470c71e87f6436bbc000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71e87f6436bbc000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2930ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c71e87f6436bbc000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c71b87f6436bbc000002", "parent_id"=>"5470c71b87f6436bbc000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71b87f6436bbc000004", "site_id"=>"5470c71b87f6436bbc000002", "_id"=>{"$ne"=>"5470c71e87f6436bbc000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71b87f6436bbc000004", "site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c71b87f6436bbc000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c71e87f6436bbc000013", "parent_ids"=>["5470c71b87f6436bbc000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c71b87f6436bbc000002", "parent_id"=>"5470c71b87f6436bbc000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:50 UTC, "created_at"=>2014-11-22 17:25:50 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002", "template_dependencies.en"=>{"$in"=>["5470c71e87f6436bbc000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71e87f6436bbc000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3052ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c71e87f6436bbc000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c71b87f6436bbc000002", "parent_id"=>"5470c71b87f6436bbc000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71b87f6436bbc000004", "site_id"=>"5470c71b87f6436bbc000002", "_id"=>{"$ne"=>"5470c71e87f6436bbc000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71b87f6436bbc000004", "site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c71b87f6436bbc000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c71e87f6436bbc000014", "parent_ids"=>["5470c71b87f6436bbc000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c71b87f6436bbc000002", "parent_id"=>"5470c71b87f6436bbc000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:50 UTC, "created_at"=>2014-11-22 17:25:50 UTC}] flags=[] (0.5591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002", "template_dependencies.en"=>{"$in"=>["5470c71e87f6436bbc000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71e87f6436bbc000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4859ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c71e87f6436bbc000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c71b87f6436bbc000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:25:51 UTC}} flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002", "template_dependencies.en"=>{"$in"=>["5470c71b87f6436bbc000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c71f87f6436bbc000015", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:25:46 UTC, "updated_at"=>2014-11-22 17:25:51 UTC, "memberships"=>[{"_id"=>"5470c71f87f6436bbc000016", "role"=>"admin", "account_id"=>"5470c71b87f6436bbc000001"}]}] flags=[] (0.2859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c71f87f6436bbc000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c71f87f6436bbc000015", "_id"=>{"$ne"=>"5470c71f87f6436bbc000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6931ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c71f87f6436bbc000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c71f87f6436bbc000015", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:51 UTC, "created_at"=>2014-11-22 17:25:51 UTC}] flags=[] (0.2911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71f87f6436bbc000015", "template_dependencies.en"=>{"$in"=>["5470c71f87f6436bbc000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c71f87f6436bbc000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5212ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c71f87f6436bbc000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c71f87f6436bbc000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c71f87f6436bbc000015", "_id"=>{"$ne"=>"5470c72087f6436bbc000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c71f87f6436bbc000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8662ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72087f6436bbc000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c71f87f6436bbc000015", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:52 UTC, "created_at"=>2014-11-22 17:25:52 UTC}] flags=[] (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71f87f6436bbc000015", "template_dependencies.en"=>{"$in"=>["5470c72087f6436bbc000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72087f6436bbc000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4869ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72087f6436bbc000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c71f87f6436bbc000015", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c71f87f6436bbc000015", "_id"=>{"$ne"=>"5470c72087f6436bbc000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.1429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c71f87f6436bbc000015"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7527ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4251ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72087f6436bbc000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c71f87f6436bbc000015", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:52 UTC, "created_at"=>2014-11-22 17:25:52 UTC}] flags=[] (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71f87f6436bbc000015", "template_dependencies.en"=>{"$in"=>["5470c72087f6436bbc000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72087f6436bbc000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5677ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72087f6436bbc000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c71f87f6436bbc000015", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c72087f6436bbc00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c71f87f6436bbc000015", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c72087f6436bbc00001b", "updated_at"=>2014-11-22 17:25:52 UTC, "created_at"=>2014-11-22 17:25:52 UTC, "entries_custom_fields"=>[{"_id"=>"5470c72087f6436bbc00001b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.3142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c72087f6436bbc00001c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72087f6436bbc00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c72087f6436bbc00001a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72087f6436bbc00001a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4492ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c72087f6436bbc00001c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c72087f6436bbc00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c72087f6436bbc00001a", "content_type_id"=>"5470c72087f6436bbc00001a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c71f87f6436bbc000015", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:52 UTC, "created_at"=>2014-11-22 17:25:52 UTC}] flags=[] (0.2379ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 18:25:53 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c71b87f6436bbc000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5639ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (17.2ms) Completed 200 OK in 36.2ms (Views: 30.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (12ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (12ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c71b87f6436bbc000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5250ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c71b87f6436bbc000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 17:25:54 UTC, "updated_at"=>2014-11-22 17:25:54 UTC}} flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c71b87f6436bbc000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 17:25:54 UTC, "current_sign_in_at"=>2014-11-22 17:25:54 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 17:25:54 UTC}} flags=[] (0.2291ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 19.4ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c71b87f6436bbc000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c71b87f6436bbc000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.4541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2350ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[5138638977542] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c71c87f6436bbc000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5996ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c71c87f6436bbc000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8502ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (29.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (1.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (13.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (56.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c71b87f6436bbc000001", :role=>:admin}}}} (0.4919ms) Rendered locomotive/shared/_main_app_head.html.haml (1.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (13.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c71b87f6436bbc000001"}} (0.5560ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (2.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c71b87f6436bbc000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8328ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (5.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (5.2ms) Rendered locomotive/shared/_main_app_header.html.haml (7.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (34.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 146.2ms (Views: 129.5ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Served asset /locomotive.js - 200 OK (123ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Served asset /locomotive.css - 200 OK (38ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c71b87f6436bbc000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c71b87f6436bbc000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1556ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[5138227035974] (0.0882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c71b87f6436bbc000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c71c87f6436bbc000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c71c87f6436bbc000008"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6609ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (13.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (20.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c71b87f6436bbc000001", :role=>:admin}}}} (0.5372ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c71b87f6436bbc000001"}} (0.5379ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c71b87f6436bbc000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5002ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (8.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 51.3ms (Views: 37.4ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 18:25:54 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c71b87f6436bbc000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c71b87f6436bbc000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4609ms) Completed 200 OK in 448.2ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6859ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6432ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5082ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2779ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9558ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3393ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c72487f6436bbc00001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"6b0e670c31e986b2787fc65bb960cd03fc7be2a9", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"6WU9pdwP3ULQAuEf7Dpu", "api_key"=>"99cfb543a5e2850ac9cebed449e2010787dfd291", "updated_at"=>2014-11-22 17:25:56 UTC, "created_at"=>2014-11-22 17:25:56 UTC}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6948ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c72487f6436bbc00001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:25:46 UTC, "updated_at"=>2014-11-22 17:25:56 UTC, "memberships"=>[{"_id"=>"5470c72487f6436bbc00001f", "role"=>"admin", "account_id"=>"5470c72487f6436bbc00001d"}]}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72487f6436bbc00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c72487f6436bbc00001e", "_id"=>{"$ne"=>"5470c72487f6436bbc000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72487f6436bbc000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c72487f6436bbc00001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:56 UTC, "created_at"=>2014-11-22 17:25:56 UTC}] flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "template_dependencies.en"=>{"$in"=>["5470c72487f6436bbc000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72487f6436bbc000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72487f6436bbc000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72487f6436bbc00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5732ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c72487f6436bbc00001e", "_id"=>{"$ne"=>"5470c72587f6436bbc000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c72487f6436bbc00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6702ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72587f6436bbc000021", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c72487f6436bbc00001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:57 UTC, "created_at"=>2014-11-22 17:25:57 UTC}] flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "template_dependencies.en"=>{"$in"=>["5470c72587f6436bbc000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72587f6436bbc000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2849ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72587f6436bbc000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c72487f6436bbc00001e", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6678ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c72587f6436bbc000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c72487f6436bbc00001e", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c72587f6436bbc000023", "updated_at"=>2014-11-22 17:25:57 UTC, "created_at"=>2014-11-22 17:25:57 UTC, "entries_custom_fields"=>[{"_id"=>"5470c72587f6436bbc000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.1957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c72487f6436bbc00001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c72587f6436bbc000022"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4978ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c72587f6436bbc000024", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c72487f6436bbc00001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c72587f6436bbc000025", "updated_at"=>2014-11-22 17:25:57 UTC, "created_at"=>2014-11-22 17:25:57 UTC, "entries_custom_fields"=>[{"_id"=>"5470c72587f6436bbc000025", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c72587f6436bbc000026", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c72587f6436bbc000022", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c72587f6436bbc000027", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c72487f6436bbc00001e", "_id"=>"5470c72587f6436bbc000022"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5648ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c72587f6436bbc000024"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8168ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72587f6436bbc000022"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1421ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c72587f6436bbc000022"} update={"$set"=>{"updated_at"=>2014-11-22 17:25:57 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c72587f6436bbc000028", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c72587f6436bbc000024", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c72587f6436bbc000022"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c72587f6436bbc000024", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c72587f6436bbc000029"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72587f6436bbc000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c72587f6436bbc000022", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72587f6436bbc000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c72587f6436bbc000029", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c72587f6436bbc000022", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c72587f6436bbc000024", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c72587f6436bbc000022", "content_type_id"=>"5470c72587f6436bbc000022", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c72487f6436bbc00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:25:57 UTC, "created_at"=>2014-11-22 17:25:57 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c72587f6436bbc000029", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72587f6436bbc000024"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c72587f6436bbc00002a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72587f6436bbc000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c72587f6436bbc000024", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72587f6436bbc000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.6020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72587f6436bbc000024"]}}} (0.3960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c72587f6436bbc00002a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c72587f6436bbc000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c72587f6436bbc000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c72587f6436bbc000029", "_type"=>"Locomotive::ContentEntry5470c72587f6436bbc000024", "content_type_id"=>"5470c72587f6436bbc000024", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c72487f6436bbc00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:57 UTC, "created_at"=>2014-11-22 17:25:57 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c72687f6436bbc00002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72587f6436bbc000024"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c72587f6436bbc000024", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72587f6436bbc000024"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4392ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72587f6436bbc000024"]}}} (0.2820ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72587f6436bbc000024"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c72687f6436bbc00002b", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c72587f6436bbc000024", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c72587f6436bbc000022"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c72587f6436bbc000024", "content_type_id"=>"5470c72587f6436bbc000024", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c72487f6436bbc00001e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:25:58 UTC, "created_at"=>2014-11-22 17:25:58 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6688ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72487f6436bbc00001e", "parent_id"=>"5470c72487f6436bbc000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4523ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72487f6436bbc000020", "site_id"=>"5470c72487f6436bbc00001e", "_id"=>{"$ne"=>"5470c72787f6436bbc00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c72487f6436bbc000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8061ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72787f6436bbc00002c", "parent_ids"=>["5470c72487f6436bbc000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c72487f6436bbc00001e", "parent_id"=>"5470c72487f6436bbc000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:25:59 UTC, "created_at"=>2014-11-22 17:25:59 UTC, "editable_elements"=>[{"_id"=>"5470c72787f6436bbc00002d", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:25:59 UTC, "created_at"=>2014-11-22 17:25:59 UTC}]}] flags=[] (0.3240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "template_dependencies.en"=>{"$in"=>["5470c72787f6436bbc00002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72787f6436bbc00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72787f6436bbc00002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72487f6436bbc00001e", "parent_id"=>"5470c72487f6436bbc000020", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4127ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72487f6436bbc000020", "site_id"=>"5470c72487f6436bbc00001e", "_id"=>{"$ne"=>"5470c72887f6436bbc00002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72487f6436bbc000020", "site_id"=>"5470c72487f6436bbc00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c72487f6436bbc000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7169ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72887f6436bbc00002e", "parent_ids"=>["5470c72487f6436bbc000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c72487f6436bbc00001e", "parent_id"=>"5470c72487f6436bbc000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:00 UTC, "created_at"=>2014-11-22 17:26:00 UTC}] flags=[] (0.4539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "template_dependencies.en"=>{"$in"=>["5470c72887f6436bbc00002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0707ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72887f6436bbc00002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.8198ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72887f6436bbc00002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3777ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72487f6436bbc00001e", "parent_id"=>"5470c72487f6436bbc000020", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72487f6436bbc000020", "site_id"=>"5470c72487f6436bbc00001e", "_id"=>{"$ne"=>"5470c72887f6436bbc00002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.7292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72487f6436bbc000020", "site_id"=>"5470c72487f6436bbc00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c72487f6436bbc000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72887f6436bbc00002f", "parent_ids"=>["5470c72487f6436bbc000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c72487f6436bbc00001e", "parent_id"=>"5470c72487f6436bbc000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:00 UTC, "created_at"=>2014-11-22 17:26:00 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "template_dependencies.en"=>{"$in"=>["5470c72887f6436bbc00002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72887f6436bbc00002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3488ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72887f6436bbc00002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72487f6436bbc00001e", "parent_id"=>"5470c72487f6436bbc000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72487f6436bbc000020", "site_id"=>"5470c72487f6436bbc00001e", "_id"=>{"$ne"=>"5470c72887f6436bbc000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72487f6436bbc000020", "site_id"=>"5470c72487f6436bbc00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c72487f6436bbc000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72887f6436bbc000030", "parent_ids"=>["5470c72487f6436bbc000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c72487f6436bbc00001e", "parent_id"=>"5470c72487f6436bbc000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:00 UTC, "created_at"=>2014-11-22 17:26:00 UTC}] flags=[] (0.2854ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "template_dependencies.en"=>{"$in"=>["5470c72887f6436bbc000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72887f6436bbc000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5140ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72887f6436bbc000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c72487f6436bbc00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3898ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c72487f6436bbc000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:26:01 UTC}} flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "template_dependencies.en"=>{"$in"=>["5470c72487f6436bbc000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3557ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c72987f6436bbc000031", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:25:46 UTC, "updated_at"=>2014-11-22 17:26:01 UTC, "memberships"=>[{"_id"=>"5470c72987f6436bbc000032", "role"=>"admin", "account_id"=>"5470c72487f6436bbc00001d"}]}] flags=[] (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72987f6436bbc000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c72987f6436bbc000031", "_id"=>{"$ne"=>"5470c72987f6436bbc000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7513ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72987f6436bbc000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c72987f6436bbc000031", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:01 UTC, "created_at"=>2014-11-22 17:26:01 UTC}] flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72987f6436bbc000031", "template_dependencies.en"=>{"$in"=>["5470c72987f6436bbc000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72987f6436bbc000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3572ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72987f6436bbc000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72987f6436bbc000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c72987f6436bbc000031", "_id"=>{"$ne"=>"5470c72a87f6436bbc000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.3203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c72987f6436bbc000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1673ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72a87f6436bbc000034", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c72987f6436bbc000031", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:02 UTC, "created_at"=>2014-11-22 17:26:02 UTC}] flags=[] (0.4797ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72987f6436bbc000031", "template_dependencies.en"=>{"$in"=>["5470c72a87f6436bbc000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72a87f6436bbc000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6471ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72a87f6436bbc000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72987f6436bbc000031", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c72987f6436bbc000031", "_id"=>{"$ne"=>"5470c72a87f6436bbc000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c72987f6436bbc000031"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6998ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72a87f6436bbc000035", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c72987f6436bbc000031", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:02 UTC, "created_at"=>2014-11-22 17:26:02 UTC}] flags=[] (0.3681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72987f6436bbc000031", "template_dependencies.en"=>{"$in"=>["5470c72a87f6436bbc000035"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72a87f6436bbc000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72a87f6436bbc000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c72987f6436bbc000031", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c72a87f6436bbc000036", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c72987f6436bbc000031", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c72a87f6436bbc000037", "updated_at"=>2014-11-22 17:26:02 UTC, "created_at"=>2014-11-22 17:26:02 UTC, "entries_custom_fields"=>[{"_id"=>"5470c72a87f6436bbc000037", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c72a87f6436bbc000038"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72a87f6436bbc000036"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6557ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c72a87f6436bbc000036", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72a87f6436bbc000036"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c72a87f6436bbc000038", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c72a87f6436bbc000036", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c72a87f6436bbc000036", "content_type_id"=>"5470c72a87f6436bbc000036", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c72987f6436bbc000031", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:02 UTC, "created_at"=>2014-11-22 17:26:02 UTC}] flags=[] (0.1979ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:26:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6530ms) Rendered text template (0.0ms) Completed 200 OK in 11.0ms (Views: 2.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 18:26:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8204ms) Rendered text template (0.0ms) Completed 200 OK in 443.6ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 18:26:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8018ms) Rendered text template (0.0ms) Completed 200 OK in 6.7ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:26:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7417ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7479ms) Rendered text template (0.0ms) Completed 200 OK in 6.1ms (Views: 0.6ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 18:26:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72487f6436bbc00001e", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6490ms) Rendered text template (0.0ms) Completed 200 OK in 435.0ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7372ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3728ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4482ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9880ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3202ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c72c87f6436bbc000039", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"54272978f6786b974431e38bd02e3a7d6726cb24", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"fG3MZmzzUYpPfRBB47mQ", "api_key"=>"7a1151047d7cd3b711ef03dcd5e3c630187d62d7", "updated_at"=>2014-11-22 17:26:04 UTC, "created_at"=>2014-11-22 17:26:04 UTC}] flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7329ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c72c87f6436bbc00003a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:25:46 UTC, "updated_at"=>2014-11-22 17:26:04 UTC, "memberships"=>[{"_id"=>"5470c72c87f6436bbc00003b", "role"=>"admin", "account_id"=>"5470c72c87f6436bbc000039"}]}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72c87f6436bbc00003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c72c87f6436bbc00003a", "_id"=>{"$ne"=>"5470c72c87f6436bbc00003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72c87f6436bbc00003c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c72c87f6436bbc00003a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:04 UTC, "created_at"=>2014-11-22 17:26:04 UTC}] flags=[] (0.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72c87f6436bbc00003a", "template_dependencies.en"=>{"$in"=>["5470c72c87f6436bbc00003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72c87f6436bbc00003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72c87f6436bbc00003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72c87f6436bbc00003a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4013ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c72c87f6436bbc00003a", "_id"=>{"$ne"=>"5470c72d87f6436bbc00003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c72c87f6436bbc00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5753ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72d87f6436bbc00003d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c72c87f6436bbc00003a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:05 UTC, "created_at"=>2014-11-22 17:26:05 UTC}] flags=[] (0.3591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72c87f6436bbc00003a", "template_dependencies.en"=>{"$in"=>["5470c72d87f6436bbc00003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72d87f6436bbc00003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72d87f6436bbc00003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c72c87f6436bbc00003a", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6452ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c72d87f6436bbc00003e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c72c87f6436bbc00003a", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c72d87f6436bbc00003f", "updated_at"=>2014-11-22 17:26:05 UTC, "created_at"=>2014-11-22 17:26:05 UTC, "entries_custom_fields"=>[{"_id"=>"5470c72d87f6436bbc00003f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c72c87f6436bbc00003a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c72d87f6436bbc00003e"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c72d87f6436bbc000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c72c87f6436bbc00003a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c72d87f6436bbc000041", "updated_at"=>2014-11-22 17:26:05 UTC, "created_at"=>2014-11-22 17:26:05 UTC, "entries_custom_fields"=>[{"_id"=>"5470c72d87f6436bbc000041", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c72d87f6436bbc000042", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c72d87f6436bbc00003e", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c72d87f6436bbc000043", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c72c87f6436bbc00003a", "_id"=>"5470c72d87f6436bbc00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c72d87f6436bbc000040"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5848ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc00003e"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1202ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c72d87f6436bbc00003e"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:05 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c72d87f6436bbc000044", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c72d87f6436bbc000040", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c72d87f6436bbc00003e"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c72d87f6436bbc000040", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c72d87f6436bbc000045"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc00003e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c72d87f6436bbc00003e", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc00003e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c72d87f6436bbc000045", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c72d87f6436bbc00003e", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c72d87f6436bbc000040", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c72d87f6436bbc00003e", "content_type_id"=>"5470c72d87f6436bbc00003e", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c72c87f6436bbc00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:26:05 UTC, "created_at"=>2014-11-22 17:26:05 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c72d87f6436bbc000045", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc000040"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c72d87f6436bbc000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c72d87f6436bbc000040", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.5021ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc000040"]}}} (1.3490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c72d87f6436bbc000046", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c72d87f6436bbc000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c72d87f6436bbc00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c72d87f6436bbc000045", "_type"=>"Locomotive::ContentEntry5470c72d87f6436bbc000040", "content_type_id"=>"5470c72d87f6436bbc000040", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c72c87f6436bbc00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:05 UTC, "created_at"=>2014-11-22 17:26:05 UTC}] flags=[] (0.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c72d87f6436bbc000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c72d87f6436bbc000040", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc000040"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3772ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc000040"]}}} (0.3369ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc000040"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4172ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c72d87f6436bbc000047", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c72d87f6436bbc000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c72d87f6436bbc00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c72d87f6436bbc000040", "content_type_id"=>"5470c72d87f6436bbc000040", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c72c87f6436bbc00003a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:05 UTC, "created_at"=>2014-11-22 17:26:05 UTC}] flags=[] (0.2902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6652ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72c87f6436bbc00003a", "parent_id"=>"5470c72c87f6436bbc00003c", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4177ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72c87f6436bbc00003c", "site_id"=>"5470c72c87f6436bbc00003a", "_id"=>{"$ne"=>"5470c72e87f6436bbc000048"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c72c87f6436bbc00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7701ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72e87f6436bbc000048", "parent_ids"=>["5470c72c87f6436bbc00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c72c87f6436bbc00003a", "parent_id"=>"5470c72c87f6436bbc00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:06 UTC, "created_at"=>2014-11-22 17:26:06 UTC, "editable_elements"=>[{"_id"=>"5470c72e87f6436bbc000049", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:26:06 UTC, "created_at"=>2014-11-22 17:26:06 UTC}]}] flags=[] (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72c87f6436bbc00003a", "template_dependencies.en"=>{"$in"=>["5470c72e87f6436bbc000048"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72e87f6436bbc000048"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3693ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72e87f6436bbc000048"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72c87f6436bbc00003a", "parent_id"=>"5470c72c87f6436bbc00003c", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72c87f6436bbc00003c", "site_id"=>"5470c72c87f6436bbc00003a", "_id"=>{"$ne"=>"5470c72e87f6436bbc00004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72c87f6436bbc00003c", "site_id"=>"5470c72c87f6436bbc00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c72c87f6436bbc00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72e87f6436bbc00004a", "parent_ids"=>["5470c72c87f6436bbc00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c72c87f6436bbc00003a", "parent_id"=>"5470c72c87f6436bbc00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:06 UTC, "created_at"=>2014-11-22 17:26:06 UTC}] flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72c87f6436bbc00003a", "template_dependencies.en"=>{"$in"=>["5470c72e87f6436bbc00004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72e87f6436bbc00004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72e87f6436bbc00004a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72c87f6436bbc00003a", "parent_id"=>"5470c72c87f6436bbc00003c", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72c87f6436bbc00003c", "site_id"=>"5470c72c87f6436bbc00003a", "_id"=>{"$ne"=>"5470c72e87f6436bbc00004b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72c87f6436bbc00003c", "site_id"=>"5470c72c87f6436bbc00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c72c87f6436bbc00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6561ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72e87f6436bbc00004b", "parent_ids"=>["5470c72c87f6436bbc00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c72c87f6436bbc00003a", "parent_id"=>"5470c72c87f6436bbc00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:06 UTC, "created_at"=>2014-11-22 17:26:06 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72c87f6436bbc00003a", "template_dependencies.en"=>{"$in"=>["5470c72e87f6436bbc00004b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72e87f6436bbc00004b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2909ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72e87f6436bbc00004b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c72c87f6436bbc00003a", "parent_id"=>"5470c72c87f6436bbc00003c", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72c87f6436bbc00003c", "site_id"=>"5470c72c87f6436bbc00003a", "_id"=>{"$ne"=>"5470c72e87f6436bbc00004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9737ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72c87f6436bbc00003c", "site_id"=>"5470c72c87f6436bbc00003a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c72c87f6436bbc00003c"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8459ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c72e87f6436bbc00004c", "parent_ids"=>["5470c72c87f6436bbc00003c"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c72c87f6436bbc00003a", "parent_id"=>"5470c72c87f6436bbc00003c", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:06 UTC, "created_at"=>2014-11-22 17:26:06 UTC}] flags=[] (0.4101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72c87f6436bbc00003a", "template_dependencies.en"=>{"$in"=>["5470c72e87f6436bbc00004c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c72e87f6436bbc00004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7110ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c72e87f6436bbc00004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72c87f6436bbc00003a", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c72c87f6436bbc00003a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c72c87f6436bbc00003c"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:26:07 UTC}} flags=[] (0.1552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c72c87f6436bbc00003a", "template_dependencies.en"=>{"$in"=>["5470c72c87f6436bbc00003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3581ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c73087f6436bbc00004d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:25:46 UTC, "updated_at"=>2014-11-22 17:26:08 UTC, "memberships"=>[{"_id"=>"5470c73087f6436bbc00004e", "role"=>"admin", "account_id"=>"5470c72c87f6436bbc000039"}]}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73087f6436bbc00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73087f6436bbc00004d", "_id"=>{"$ne"=>"5470c73087f6436bbc00004f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5369ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73087f6436bbc00004f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c73087f6436bbc00004d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:08 UTC, "created_at"=>2014-11-22 17:26:08 UTC}] flags=[] (0.2277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73087f6436bbc00004d", "template_dependencies.en"=>{"$in"=>["5470c73087f6436bbc00004f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73087f6436bbc00004f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73087f6436bbc00004f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73087f6436bbc00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73087f6436bbc00004d", "_id"=>{"$ne"=>"5470c73087f6436bbc000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7648ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73087f6436bbc00004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73087f6436bbc000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c73087f6436bbc00004d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:08 UTC, "created_at"=>2014-11-22 17:26:08 UTC}] flags=[] (0.3591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73087f6436bbc00004d", "template_dependencies.en"=>{"$in"=>["5470c73087f6436bbc000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73087f6436bbc000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73087f6436bbc000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73087f6436bbc00004d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73087f6436bbc00004d", "_id"=>{"$ne"=>"5470c73087f6436bbc000051"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73087f6436bbc00004d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3929ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73087f6436bbc000051", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c73087f6436bbc00004d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:08 UTC, "created_at"=>2014-11-22 17:26:08 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73087f6436bbc00004d", "template_dependencies.en"=>{"$in"=>["5470c73087f6436bbc000051"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73087f6436bbc000051"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3049ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73087f6436bbc000051"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c73087f6436bbc00004d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c73187f6436bbc000052", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c73087f6436bbc00004d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c73187f6436bbc000053", "updated_at"=>2014-11-22 17:26:09 UTC, "created_at"=>2014-11-22 17:26:09 UTC, "entries_custom_fields"=>[{"_id"=>"5470c73187f6436bbc000053", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c73187f6436bbc000054"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c73187f6436bbc000052"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c73187f6436bbc000052", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c73187f6436bbc000052"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4292ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c73187f6436bbc000054", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c73187f6436bbc000052", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c73187f6436bbc000052", "content_type_id"=>"5470c73187f6436bbc000052", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c73087f6436bbc00004d", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:09 UTC, "created_at"=>2014-11-22 17:26:09 UTC}] flags=[] (0.1793ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c72d87f6436bbc000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c72d87f6436bbc000047"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7732ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c72d87f6436bbc00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6299ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c72d87f6436bbc000040"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c72d87f6436bbc000040"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:09 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.1128ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c72d87f6436bbc000040"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c72d87f6436bbc00003e"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c72c87f6436bbc00003a", "_id"=>"5470c72d87f6436bbc00003e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5629ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2970ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2403ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1370ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7410ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5052ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c73287f6436bbc000055", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"4217d0f00e0dbc1494135211611f0cda1a05e343", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"TZ6QT4RzSCds1ppWb9xN", "api_key"=>"b9f1949c39bf2577ab7444efb5afee1ce9abbbb5", "updated_at"=>2014-11-22 17:26:10 UTC, "created_at"=>2014-11-22 17:26:10 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c73287f6436bbc000056", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:25:46 UTC, "updated_at"=>2014-11-22 17:26:10 UTC, "memberships"=>[{"_id"=>"5470c73287f6436bbc000057", "role"=>"admin", "account_id"=>"5470c73287f6436bbc000055"}]}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73287f6436bbc000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73287f6436bbc000056", "_id"=>{"$ne"=>"5470c73287f6436bbc000058"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5498ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73287f6436bbc000058", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c73287f6436bbc000056", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:10 UTC, "created_at"=>2014-11-22 17:26:10 UTC}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "template_dependencies.en"=>{"$in"=>["5470c73287f6436bbc000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73287f6436bbc000058"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3128ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73287f6436bbc000058"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73287f6436bbc000056", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73287f6436bbc000056", "_id"=>{"$ne"=>"5470c73287f6436bbc000059"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73287f6436bbc000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4354ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73287f6436bbc000059", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c73287f6436bbc000056", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:10 UTC, "created_at"=>2014-11-22 17:26:10 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "template_dependencies.en"=>{"$in"=>["5470c73287f6436bbc000059"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73287f6436bbc000059"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3469ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73287f6436bbc000059"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c73287f6436bbc000056", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6902ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c73287f6436bbc00005a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c73287f6436bbc000056", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c73287f6436bbc00005b", "updated_at"=>2014-11-22 17:26:10 UTC, "created_at"=>2014-11-22 17:26:10 UTC, "entries_custom_fields"=>[{"_id"=>"5470c73287f6436bbc00005b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c73287f6436bbc000056", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c73287f6436bbc00005a"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c73287f6436bbc00005c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c73287f6436bbc000056", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c73287f6436bbc00005d", "updated_at"=>2014-11-22 17:26:10 UTC, "created_at"=>2014-11-22 17:26:10 UTC, "entries_custom_fields"=>[{"_id"=>"5470c73287f6436bbc00005d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c73287f6436bbc00005e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c73287f6436bbc00005a", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c73287f6436bbc00005f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c73287f6436bbc000056", "_id"=>"5470c73287f6436bbc00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c73287f6436bbc00005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6330ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005a"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1831ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c73287f6436bbc00005a"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:10 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c73287f6436bbc000060", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c73287f6436bbc00005c", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c73287f6436bbc00005a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c73287f6436bbc00005c", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c73287f6436bbc000061"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c73287f6436bbc00005a", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005a"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c73287f6436bbc000061", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c73287f6436bbc00005a", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c73287f6436bbc00005c", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c73287f6436bbc00005a", "content_type_id"=>"5470c73287f6436bbc00005a", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c73287f6436bbc000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:26:10 UTC, "created_at"=>2014-11-22 17:26:10 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c73287f6436bbc000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c73387f6436bbc000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c73287f6436bbc00005c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}}} (0.3371ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c73387f6436bbc000062", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c73287f6436bbc00005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c73287f6436bbc00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c73287f6436bbc000061", "_type"=>"Locomotive::ContentEntry5470c73287f6436bbc00005c", "content_type_id"=>"5470c73287f6436bbc00005c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c73287f6436bbc000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:11 UTC, "created_at"=>2014-11-22 17:26:11 UTC}] flags=[] (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c73387f6436bbc000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7513ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c73287f6436bbc00005c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (3.9959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}}} (0.8790ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (1.3809ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c73387f6436bbc000063", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c73287f6436bbc00005c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c73287f6436bbc00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c73287f6436bbc00005c", "content_type_id"=>"5470c73287f6436bbc00005c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c73287f6436bbc000056", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:11 UTC, "created_at"=>2014-11-22 17:26:11 UTC}] flags=[] (0.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7491ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73287f6436bbc000056", "parent_id"=>"5470c73287f6436bbc000058", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73287f6436bbc000058", "site_id"=>"5470c73287f6436bbc000056", "_id"=>{"$ne"=>"5470c73487f6436bbc000064"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c73287f6436bbc000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5538ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73487f6436bbc000064", "parent_ids"=>["5470c73287f6436bbc000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c73287f6436bbc000056", "parent_id"=>"5470c73287f6436bbc000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:12 UTC, "created_at"=>2014-11-22 17:26:12 UTC, "editable_elements"=>[{"_id"=>"5470c73487f6436bbc000065", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:26:12 UTC, "created_at"=>2014-11-22 17:26:12 UTC}]}] flags=[] (0.3328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "template_dependencies.en"=>{"$in"=>["5470c73487f6436bbc000064"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73487f6436bbc000064"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73487f6436bbc000064"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73287f6436bbc000056", "parent_id"=>"5470c73287f6436bbc000058", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4423ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73287f6436bbc000058", "site_id"=>"5470c73287f6436bbc000056", "_id"=>{"$ne"=>"5470c73587f6436bbc000066"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8037ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73287f6436bbc000058", "site_id"=>"5470c73287f6436bbc000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c73287f6436bbc000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73587f6436bbc000066", "parent_ids"=>["5470c73287f6436bbc000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c73287f6436bbc000056", "parent_id"=>"5470c73287f6436bbc000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:13 UTC, "created_at"=>2014-11-22 17:26:13 UTC}] flags=[] (0.2909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "template_dependencies.en"=>{"$in"=>["5470c73587f6436bbc000066"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73587f6436bbc000066"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3638ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73587f6436bbc000066"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73287f6436bbc000056", "parent_id"=>"5470c73287f6436bbc000058", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73287f6436bbc000058", "site_id"=>"5470c73287f6436bbc000056", "_id"=>{"$ne"=>"5470c73587f6436bbc000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73287f6436bbc000058", "site_id"=>"5470c73287f6436bbc000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c73287f6436bbc000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5844ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73587f6436bbc000067", "parent_ids"=>["5470c73287f6436bbc000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c73287f6436bbc000056", "parent_id"=>"5470c73287f6436bbc000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:13 UTC, "created_at"=>2014-11-22 17:26:13 UTC}] flags=[] (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "template_dependencies.en"=>{"$in"=>["5470c73587f6436bbc000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73587f6436bbc000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3862ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73587f6436bbc000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73287f6436bbc000056", "parent_id"=>"5470c73287f6436bbc000058", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73287f6436bbc000058", "site_id"=>"5470c73287f6436bbc000056", "_id"=>{"$ne"=>"5470c73587f6436bbc000068"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73287f6436bbc000058", "site_id"=>"5470c73287f6436bbc000056"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c73287f6436bbc000058"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4952ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73587f6436bbc000068", "parent_ids"=>["5470c73287f6436bbc000058"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c73287f6436bbc000056", "parent_id"=>"5470c73287f6436bbc000058", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:13 UTC, "created_at"=>2014-11-22 17:26:13 UTC}] flags=[] (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "template_dependencies.en"=>{"$in"=>["5470c73587f6436bbc000068"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73587f6436bbc000068"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0061ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73587f6436bbc000068"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c73287f6436bbc000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4778ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c73287f6436bbc000058"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:26:14 UTC}} flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "template_dependencies.en"=>{"$in"=>["5470c73287f6436bbc000058"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5472ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c73687f6436bbc000069", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:25:46 UTC, "updated_at"=>2014-11-22 17:26:14 UTC, "memberships"=>[{"_id"=>"5470c73687f6436bbc00006a", "role"=>"admin", "account_id"=>"5470c73287f6436bbc000055"}]}] flags=[] (0.3290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73687f6436bbc000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73687f6436bbc000069", "_id"=>{"$ne"=>"5470c73687f6436bbc00006b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6011ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73687f6436bbc00006b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c73687f6436bbc000069", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:14 UTC, "created_at"=>2014-11-22 17:26:14 UTC}] flags=[] (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73687f6436bbc000069", "template_dependencies.en"=>{"$in"=>["5470c73687f6436bbc00006b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73687f6436bbc00006b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73687f6436bbc00006b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73687f6436bbc000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73687f6436bbc000069", "_id"=>{"$ne"=>"5470c73787f6436bbc00006c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73687f6436bbc000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6835ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73787f6436bbc00006c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c73687f6436bbc000069", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:15 UTC, "created_at"=>2014-11-22 17:26:15 UTC}] flags=[] (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73687f6436bbc000069", "template_dependencies.en"=>{"$in"=>["5470c73787f6436bbc00006c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73787f6436bbc00006c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73787f6436bbc00006c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c73687f6436bbc000069", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73687f6436bbc000069", "_id"=>{"$ne"=>"5470c73787f6436bbc00006d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c73687f6436bbc000069"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c73787f6436bbc00006d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c73687f6436bbc000069", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:15 UTC, "created_at"=>2014-11-22 17:26:15 UTC}] flags=[] (0.2263ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73687f6436bbc000069", "template_dependencies.en"=>{"$in"=>["5470c73787f6436bbc00006d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c73787f6436bbc00006d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2823ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c73787f6436bbc00006d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c73687f6436bbc000069", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3922ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c73787f6436bbc00006e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c73687f6436bbc000069", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c73787f6436bbc00006f", "updated_at"=>2014-11-22 17:26:15 UTC, "created_at"=>2014-11-22 17:26:15 UTC, "entries_custom_fields"=>[{"_id"=>"5470c73787f6436bbc00006f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.3657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c73787f6436bbc000070"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c73787f6436bbc00006e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c73787f6436bbc00006e", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c73787f6436bbc00006e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c73787f6436bbc000070", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c73787f6436bbc00006e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c73787f6436bbc00006e", "content_type_id"=>"5470c73787f6436bbc00006e", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c73687f6436bbc000069", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:15 UTC, "created_at"=>2014-11-22 17:26:15 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c73387f6436bbc000062"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c73387f6436bbc000063"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c73287f6436bbc00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4752ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.3800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c73287f6436bbc00005c"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:16 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c73287f6436bbc00005c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c73287f6436bbc00005a"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.5748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c73287f6436bbc000056", "_id"=>"5470c73287f6436bbc00005a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7631ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:26:16 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7937ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6669ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:26:16 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5409ms) Rendered text template (0.0ms) Completed 200 OK in 440.0ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c73287f6436bbc00005c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c73287f6436bbc00005c", "updated_at"=>{"$lt"=>2014-11-22 17:26:16 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c73287f6436bbc000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c73287f6436bbc00005c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4618ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c73387f6436bbc000062"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:16 UTC}} flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470c73287f6436bbc000061", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c73287f6436bbc00005a"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c73287f6436bbc000056"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c73287f6436bbc00005c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5772ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c73387f6436bbc000063"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:17 UTC}} flags=[] (0.1862ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:26:17 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6709ms) Rendered text template (0.0ms) Completed 200 OK in 4.7ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:26:17 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c73287f6436bbc000056", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6039ms) Rendered text template (0.0ms) Completed 200 OK in 435.9ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8261ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6782ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4360ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2963ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8461ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1871ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5832ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c74287f64320d8000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d9f7339c01502f18401408b4af6344d284503408", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"XNCH41dEDppkXEuSaUku", "api_key"=>"ab47573fb7a2919974f5cc1b5f49c2e1f09d91e1", "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7088ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c74287f64320d8000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:26:26 UTC, "updated_at"=>2014-11-22 17:26:26 UTC, "memberships"=>[{"_id"=>"5470c74287f64320d8000003", "role"=>"admin", "account_id"=>"5470c74287f64320d8000001"}]}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74287f64320d8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74287f64320d8000002", "_id"=>{"$ne"=>"5470c74287f64320d8000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4981ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74287f64320d8000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c74287f64320d8000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002", "template_dependencies.en"=>{"$in"=>["5470c74287f64320d8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74287f64320d8000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74287f64320d8000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2789ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74287f64320d8000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74287f64320d8000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74287f64320d8000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74287f64320d8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74287f64320d8000002", "_id"=>{"$ne"=>"5470c74287f64320d8000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74287f64320d8000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c74287f64320d8000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.2611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002", "template_dependencies.en"=>{"$in"=>["5470c74287f64320d8000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4721ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74287f64320d8000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74287f64320d8000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74287f64320d8000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c74287f64320d8000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c74287f64320d8000008", "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74287f64320d8000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74287f64320d8000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74287f64320d8000007"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74287f64320d8000009", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c74287f64320d8000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c74287f64320d800000a", "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74287f64320d800000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c74287f64320d800000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c74287f64320d8000007", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c74287f64320d800000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74287f64320d8000002", "_id"=>"5470c74287f64320d8000007"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74287f64320d8000009"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5739ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000007"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1259ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74287f64320d8000007"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:26 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c74287f64320d800000d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c74287f64320d8000009", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74287f64320d8000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74287f64320d8000009", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74287f64320d800000e"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74287f64320d8000007", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000007"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74287f64320d800000e", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74287f64320d8000007", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74287f64320d8000009", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74287f64320d8000007", "content_type_id"=>"5470c74287f64320d8000007", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c74287f64320d8000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74287f64320d8000007", "original_id"=>"5470c74287f64320d800000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6521ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c74287f64320d800000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000009"]}}} (0.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c74287f64320d800000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74287f64320d800000f", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c74287f64320d8000002", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c74287f64320d8000007", "original_id"=>"5470c74287f64320d800000e", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74287f64320d8000010"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74287f64320d8000009", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4520ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000009"]}}} (0.3788ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74287f64320d8000010", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74287f64320d8000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74287f64320d8000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c74287f64320d800000e", "_type"=>"Locomotive::ContentEntry5470c74287f64320d8000009", "content_type_id"=>"5470c74287f64320d8000009", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c74287f64320d8000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74287f64320d8000009", "original_id"=>"5470c74287f64320d8000010", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c74287f64320d800000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6688ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74287f64320d8000011", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c74287f64320d8000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74287f64320d8000009", "original_id"=>"5470c74287f64320d8000010", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74287f64320d8000012"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74287f64320d8000009", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4880ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000009"]}}} (0.3967ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000009"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4671ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74287f64320d8000012", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74287f64320d8000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74287f64320d8000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74287f64320d8000009", "content_type_id"=>"5470c74287f64320d8000009", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c74287f64320d8000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74287f64320d8000009", "original_id"=>"5470c74287f64320d8000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74287f64320d8000013", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c74287f64320d8000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74287f64320d8000009", "original_id"=>"5470c74287f64320d8000012", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5980ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74287f64320d8000002", "parent_id"=>"5470c74287f64320d8000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000004", "site_id"=>"5470c74287f64320d8000002", "_id"=>{"$ne"=>"5470c74287f64320d8000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74287f64320d8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74287f64320d8000014", "parent_ids"=>["5470c74287f64320d8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c74287f64320d8000002", "parent_id"=>"5470c74287f64320d8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC, "editable_elements"=>[{"_id"=>"5470c74287f64320d8000015", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}]}] flags=[] (0.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002", "template_dependencies.en"=>{"$in"=>["5470c74287f64320d8000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74287f64320d8000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74287f64320d8000014", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3281ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74287f64320d8000016", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c74287f64320d8000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74287f64320d8000014", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74287f64320d8000002", "parent_id"=>"5470c74287f64320d8000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000004", "site_id"=>"5470c74287f64320d8000002", "_id"=>{"$ne"=>"5470c74287f64320d8000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000004", "site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74287f64320d8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74287f64320d8000017", "parent_ids"=>["5470c74287f64320d8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c74287f64320d8000002", "parent_id"=>"5470c74287f64320d8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002", "template_dependencies.en"=>{"$in"=>["5470c74287f64320d8000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3259ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74287f64320d8000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0787ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74287f64320d8000002", "parent_id"=>"5470c74287f64320d8000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000004", "site_id"=>"5470c74287f64320d8000002", "_id"=>{"$ne"=>"5470c74287f64320d8000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000004", "site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74287f64320d8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5257ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74287f64320d8000018", "parent_ids"=>["5470c74287f64320d8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c74287f64320d8000002", "parent_id"=>"5470c74287f64320d8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002", "template_dependencies.en"=>{"$in"=>["5470c74287f64320d8000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3383ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74287f64320d8000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74287f64320d8000002", "parent_id"=>"5470c74287f64320d8000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000004", "site_id"=>"5470c74287f64320d8000002", "_id"=>{"$ne"=>"5470c74287f64320d8000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000004", "site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74287f64320d8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74287f64320d8000019", "parent_ids"=>["5470c74287f64320d8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c74287f64320d8000002", "parent_id"=>"5470c74287f64320d8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002", "template_dependencies.en"=>{"$in"=>["5470c74287f64320d8000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3138ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74287f64320d8000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0887ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74287f64320d8000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74287f64320d8000002", "locale"=>"en"}} (0.5901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74287f64320d8000002", "locale"=>"en"}} (0.5100ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74287f64320d800001a", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c74287f64320d8000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74287f64320d8000019", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1433ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c74287f64320d8000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:26:26 UTC}} flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002", "template_dependencies.en"=>{"$in"=>["5470c74287f64320d8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74287f64320d8000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4637ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c74287f64320d8000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74287f64320d8000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c74287f64320d800001b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:26:26 UTC, "updated_at"=>2014-11-22 17:26:26 UTC, "memberships"=>[{"_id"=>"5470c74287f64320d800001c", "role"=>"admin", "account_id"=>"5470c74287f64320d8000001"}]}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74287f64320d800001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74287f64320d800001b", "_id"=>{"$ne"=>"5470c74287f64320d800001d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74287f64320d800001d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c74287f64320d800001b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d800001b", "template_dependencies.en"=>{"$in"=>["5470c74287f64320d800001d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d800001d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3729ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74287f64320d800001d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74287f64320d800001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3631ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74287f64320d800001e", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74287f64320d800001b", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74287f64320d800001d", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74287f64320d800001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74287f64320d800001b", "_id"=>{"$ne"=>"5470c74287f64320d800001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74287f64320d800001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74287f64320d800001f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c74287f64320d800001b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d800001b", "template_dependencies.en"=>{"$in"=>["5470c74287f64320d800001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d800001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2832ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74287f64320d800001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74287f64320d800001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74287f64320d800001b", "_id"=>{"$ne"=>"5470c74287f64320d8000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74287f64320d800001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74287f64320d8000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c74287f64320d800001b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d800001b", "template_dependencies.en"=>{"$in"=>["5470c74287f64320d8000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74287f64320d8000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3068ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74287f64320d8000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74287f64320d8000020", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3071ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74287f64320d8000021", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c74287f64320d800001b", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74287f64320d8000020", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74287f64320d800001b", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74287f64320d8000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c74287f64320d800001b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c74287f64320d8000023", "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74287f64320d8000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74287f64320d8000024"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74287f64320d8000022", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74287f64320d8000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3893ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74287f64320d8000024", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74287f64320d8000022", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74287f64320d8000022", "content_type_id"=>"5470c74287f64320d8000022", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c74287f64320d800001b", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:26 UTC, "created_at"=>2014-11-22 17:26:26 UTC}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74287f64320d8000022", "original_id"=>"5470c74287f64320d8000024", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74287f64320d8000025", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c74287f64320d800001b", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74287f64320d8000022", "original_id"=>"5470c74287f64320d8000024", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1349ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 18:26:27 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c74287f64320d8000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4811ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (31.5ms) Completed 200 OK in 60.7ms (Views: 51.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 18:26:27 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (17ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 18:26:27 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (21ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 18:26:28 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 18:26:28 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c74287f64320d8000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5279ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c74287f64320d8000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 17:26:28 UTC, "updated_at"=>2014-11-22 17:26:28 UTC}} flags=[] (0.4148ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c74287f64320d8000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 17:26:28 UTC, "current_sign_in_at"=>2014-11-22 17:26:28 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 17:26:28 UTC}} flags=[] (0.3819ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 30.8ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:26:28 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c74287f64320d8000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c74287f64320d8000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (2.0330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.3027ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[5228945978025] (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (1.6701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (1.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c74287f64320d8000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c74287f64320d8000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7951ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (42.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (3.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (6.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (14.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (73.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c74287f64320d8000001", :role=>:admin}}}} (0.5419ms) Rendered locomotive/shared/_main_app_head.html.haml (2.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (22.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c74287f64320d8000001"}} (0.4618ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (4.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c74287f64320d8000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5851ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (3.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (6.6ms) Rendered locomotive/shared/_main_app_header.html.haml (8.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (39.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (5.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (3.3ms) Completed 200 OK in 195.3ms (Views: 166.6ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 18:26:28 +0100 Served asset /locomotive.css - 200 OK (63ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 18:26:28 +0100 Served asset /locomotive.js - 200 OK (119ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 18:26:28 +0100 Served asset /locomotive/search_bar.js - 200 OK (4ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 18:26:28 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 18:26:28 +0100 Served asset /locomotive/list/item-left.png - 200 OK (3ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 18:26:28 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (3ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 18:26:28 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:26:28 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c74287f64320d8000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c74287f64320d8000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (2.1679ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[5228275823775] (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c74287f64320d8000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.3552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c74287f64320d8000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c74287f64320d8000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6740ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (19.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (5.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (27.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c74287f64320d8000001", :role=>:admin}}}} (0.4439ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (4.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c74287f64320d8000001"}} (0.4308ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c74287f64320d8000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4592ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (8.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 70.2ms (Views: 47.2ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-11-22 18:26:29 +0100 Processing by Locomotive::SearchController#index as JSON Parameters: {"per_page"=>"10", "query"=>"findable "} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c74287f64320d8000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c74287f64320d8000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4439ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"findable ", "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74287f64320d8000002"}} (0.7858ms) Completed 200 OK in 24.0ms (Views: 1.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8271ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.9750ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4150ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5178ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8278ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5457ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1097ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2940ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c74587f64320d8000026", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"768e457671712dfcf15aa76d7393903fe13b090f", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"3sqcAvpyVwoeUeTTZFgK", "api_key"=>"d584de19e6ab4400a94622ca5de6c860078a024e", "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.1593ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c74587f64320d8000027", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:26:26 UTC, "updated_at"=>2014-11-22 17:26:29 UTC, "memberships"=>[{"_id"=>"5470c74587f64320d8000028", "role"=>"admin", "account_id"=>"5470c74587f64320d8000026"}]}] flags=[] (0.3278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74587f64320d8000027", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74587f64320d8000027", "_id"=>{"$ne"=>"5470c74587f64320d8000029"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74587f64320d8000029", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c74587f64320d8000027", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.3042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "template_dependencies.en"=>{"$in"=>["5470c74587f64320d8000029"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4098ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74587f64320d8000029"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74587f64320d8000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74587f64320d800002a", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74587f64320d8000027", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74587f64320d8000029", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74587f64320d8000027", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74587f64320d8000027", "_id"=>{"$ne"=>"5470c74587f64320d800002b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74587f64320d8000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0042ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74587f64320d800002b", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c74587f64320d8000027", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.4139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "template_dependencies.en"=>{"$in"=>["5470c74587f64320d800002b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d800002b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74587f64320d800002b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74587f64320d8000027", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74587f64320d800002c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c74587f64320d8000027", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c74587f64320d800002d", "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74587f64320d800002d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.3662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74587f64320d8000027", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4113ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74587f64320d800002c"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74587f64320d800002e", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c74587f64320d8000027", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c74587f64320d800002f", "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74587f64320d800002f", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c74587f64320d8000030", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c74587f64320d800002c", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c74587f64320d8000031", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74587f64320d8000027", "_id"=>"5470c74587f64320d800002c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74587f64320d800002e"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5679ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002c"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1369ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74587f64320d800002c"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:29 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c74587f64320d8000032", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c74587f64320d800002e", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74587f64320d800002c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74587f64320d800002e", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74587f64320d8000033"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74587f64320d800002c", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3998ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74587f64320d8000033", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74587f64320d800002c", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74587f64320d800002e", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74587f64320d800002c", "content_type_id"=>"5470c74587f64320d800002c", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c74587f64320d8000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74587f64320d800002c", "original_id"=>"5470c74587f64320d8000033", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5670ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c74587f64320d8000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002e"]}}} (0.4041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c74587f64320d8000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002e"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74587f64320d8000034", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c74587f64320d8000027", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c74587f64320d800002c", "original_id"=>"5470c74587f64320d8000033", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74587f64320d8000035"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74587f64320d800002e", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4537ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002e"]}}} (0.3729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74587f64320d8000035", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74587f64320d800002e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74587f64320d800002c"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c74587f64320d8000033", "_type"=>"Locomotive::ContentEntry5470c74587f64320d800002e", "content_type_id"=>"5470c74587f64320d800002e", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c74587f64320d8000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74587f64320d800002e", "original_id"=>"5470c74587f64320d8000035", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c74587f64320d8000033", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002e"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74587f64320d8000036", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c74587f64320d8000027", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74587f64320d800002e", "original_id"=>"5470c74587f64320d8000035", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74587f64320d8000037"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002e"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74587f64320d800002e", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002e"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4427ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002e"]}}} (0.3231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d800002e"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74587f64320d8000037", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74587f64320d800002e", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74587f64320d800002c"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74587f64320d800002e", "content_type_id"=>"5470c74587f64320d800002e", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c74587f64320d8000027", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74587f64320d800002e", "original_id"=>"5470c74587f64320d8000037", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6199ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74587f64320d8000038", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c74587f64320d8000027", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74587f64320d800002e", "original_id"=>"5470c74587f64320d8000037", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5479ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74587f64320d8000027", "parent_id"=>"5470c74587f64320d8000029", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000029", "site_id"=>"5470c74587f64320d8000027", "_id"=>{"$ne"=>"5470c74587f64320d8000039"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74587f64320d8000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74587f64320d8000039", "parent_ids"=>["5470c74587f64320d8000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c74587f64320d8000027", "parent_id"=>"5470c74587f64320d8000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC, "editable_elements"=>[{"_id"=>"5470c74587f64320d800003a", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}]}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "template_dependencies.en"=>{"$in"=>["5470c74587f64320d8000039"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3767ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000039"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3219ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74587f64320d8000039"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74587f64320d8000039", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74587f64320d800003b", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c74587f64320d8000027", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74587f64320d8000039", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74587f64320d8000027", "parent_id"=>"5470c74587f64320d8000029", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000029", "site_id"=>"5470c74587f64320d8000027", "_id"=>{"$ne"=>"5470c74587f64320d800003c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000029", "site_id"=>"5470c74587f64320d8000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74587f64320d8000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74587f64320d800003c", "parent_ids"=>["5470c74587f64320d8000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c74587f64320d8000027", "parent_id"=>"5470c74587f64320d8000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "template_dependencies.en"=>{"$in"=>["5470c74587f64320d800003c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d800003c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74587f64320d800003c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74587f64320d8000027", "parent_id"=>"5470c74587f64320d8000029", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000029", "site_id"=>"5470c74587f64320d8000027", "_id"=>{"$ne"=>"5470c74587f64320d800003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000029", "site_id"=>"5470c74587f64320d8000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74587f64320d8000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5429ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74587f64320d800003d", "parent_ids"=>["5470c74587f64320d8000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c74587f64320d8000027", "parent_id"=>"5470c74587f64320d8000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "template_dependencies.en"=>{"$in"=>["5470c74587f64320d800003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3343ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d800003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2978ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74587f64320d800003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74587f64320d8000027", "parent_id"=>"5470c74587f64320d8000029", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000029", "site_id"=>"5470c74587f64320d8000027", "_id"=>{"$ne"=>"5470c74587f64320d800003e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000029", "site_id"=>"5470c74587f64320d8000027"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74587f64320d8000029"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6080ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74587f64320d800003e", "parent_ids"=>["5470c74587f64320d8000029"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c74587f64320d8000027", "parent_id"=>"5470c74587f64320d8000029", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.2868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "template_dependencies.en"=>{"$in"=>["5470c74587f64320d800003e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d800003e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74587f64320d800003e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74587f64320d800003e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74587f64320d8000027", "locale"=>"en"}} (0.5591ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74587f64320d8000027", "locale"=>"en"}} (0.4783ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74587f64320d800003f", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c74587f64320d8000027", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74587f64320d800003e", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c74587f64320d8000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3722ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c74587f64320d8000029"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:26:29 UTC}} flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "template_dependencies.en"=>{"$in"=>["5470c74587f64320d8000029"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74587f64320d8000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5052ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c74587f64320d800002a"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74587f64320d8000027", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3269ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c74587f64320d8000040", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:26:26 UTC, "updated_at"=>2014-11-22 17:26:29 UTC, "memberships"=>[{"_id"=>"5470c74587f64320d8000041", "role"=>"admin", "account_id"=>"5470c74587f64320d8000026"}]}] flags=[] (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74587f64320d8000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74587f64320d8000040", "_id"=>{"$ne"=>"5470c74587f64320d8000042"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74587f64320d8000042", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c74587f64320d8000040", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000040", "template_dependencies.en"=>{"$in"=>["5470c74587f64320d8000042"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000042"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3040ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74587f64320d8000042"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74587f64320d8000042", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4077ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74587f64320d8000043", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74587f64320d8000040", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74587f64320d8000042", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1893ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74587f64320d8000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74587f64320d8000040", "_id"=>{"$ne"=>"5470c74587f64320d8000044"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74587f64320d8000040"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4971ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74587f64320d8000044", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c74587f64320d8000040", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000040", "template_dependencies.en"=>{"$in"=>["5470c74587f64320d8000044"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000044"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3278ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74587f64320d8000044"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74587f64320d8000040", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4296ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74587f64320d8000040", "_id"=>{"$ne"=>"5470c74587f64320d8000045"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74587f64320d8000040"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3498ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74587f64320d8000045", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c74587f64320d8000040", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000040", "template_dependencies.en"=>{"$in"=>["5470c74587f64320d8000045"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74587f64320d8000045"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74587f64320d8000045"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74587f64320d8000045", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3648ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74587f64320d8000046", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c74587f64320d8000040", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74587f64320d8000045", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74587f64320d8000040", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74587f64320d8000047", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c74587f64320d8000040", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c74587f64320d8000048", "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74587f64320d8000048", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74587f64320d8000049"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d8000047"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5057ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74587f64320d8000047", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74587f64320d8000047"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74587f64320d8000049", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74587f64320d8000047", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74587f64320d8000047", "content_type_id"=>"5470c74587f64320d8000047", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c74587f64320d8000040", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:29 UTC, "created_at"=>2014-11-22 17:26:29 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74587f64320d8000047", "original_id"=>"5470c74587f64320d8000049", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4427ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74587f64320d800004a", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c74587f64320d8000040", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74587f64320d8000047", "original_id"=>"5470c74587f64320d8000049", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1459ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:26:29 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6361ms) Rendered text template (0.0ms) Completed 200 OK in 11.0ms (Views: 2.1ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-11-22 18:26:29 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"findable", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6402ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"findable", "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74587f64320d8000027", "locale"=>"en"}} (0.6909ms) Rendered text template (0.0ms) Completed 200 OK in 8.1ms (Views: 0.3ms) Started GET "/findable" for 127.0.0.1 at 2014-11-22 18:26:29 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"path"=>"findable"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6051ms) Rendered text template (0.0ms) Completed 200 OK in 4.2ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:26:29 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5391ms) Rendered text template (0.0ms) Completed 200 OK in 4.0ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-11-22 18:26:29 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"not found", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74587f64320d8000027", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"not found", "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74587f64320d8000027", "locale"=>"en"}} (0.5729ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.8318ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5639ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4733ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4098ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.3788ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3548ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.0939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c74687f64320d800004b", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"28ae4ad1cf78a2015b7c9bcb10563ca8444041f0", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Q6PJ6gyyo7pk7XRVHpgH", "api_key"=>"39b54d4da70ad4e01513db6669f8bbbb8355c172", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.0968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c74687f64320d800004c", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:26:26 UTC, "updated_at"=>2014-11-22 17:26:30 UTC, "memberships"=>[{"_id"=>"5470c74687f64320d800004d", "role"=>"admin", "account_id"=>"5470c74687f64320d800004b"}]}] flags=[] (0.1361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d800004c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d800004c", "_id"=>{"$ne"=>"5470c74687f64320d800004e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d800004e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c74687f64320d800004c", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d800004e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800004e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d800004e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d800004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d800004f", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74687f64320d800004c", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d800004e", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d800004c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d800004c", "_id"=>{"$ne"=>"5470c74687f64320d8000050"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d800004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000050", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c74687f64320d800004c", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000050"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000050"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3529ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000050"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74687f64320d800004c", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74687f64320d8000051", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c74687f64320d800004c", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c74687f64320d8000052", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74687f64320d8000052", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.2770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74687f64320d800004c", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74687f64320d8000051"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4508ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74687f64320d8000053", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c74687f64320d800004c", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c74687f64320d8000054", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74687f64320d8000054", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c74687f64320d8000055", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000051", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c74687f64320d8000056", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3047ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74687f64320d800004c", "_id"=>"5470c74687f64320d8000051"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74687f64320d8000053"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6001ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000051"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1421ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74687f64320d8000051"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:30 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c74687f64320d8000057", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000053", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000051"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000053", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d8000058"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000051"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000051", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000051"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74687f64320d8000058", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74687f64320d8000051", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000053", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74687f64320d8000051", "content_type_id"=>"5470c74687f64320d8000051", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c74687f64320d800004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000051", "original_id"=>"5470c74687f64320d8000058", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c74687f64320d8000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}}} (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c74687f64320d8000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d8000059", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c74687f64320d800004c", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000051", "original_id"=>"5470c74687f64320d8000058", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d800005a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000053", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3598ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4592ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}}} (0.3240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74687f64320d800005a", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74687f64320d8000053", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000051"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c74687f64320d8000058", "_type"=>"Locomotive::ContentEntry5470c74687f64320d8000053", "content_type_id"=>"5470c74687f64320d8000053", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c74687f64320d800004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.2098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000053", "original_id"=>"5470c74687f64320d800005a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c74687f64320d8000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d800005b", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c74687f64320d800004c", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000053", "original_id"=>"5470c74687f64320d800005a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d800005c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000053", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4292ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}}} (0.3259ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4351ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74687f64320d800005c", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74687f64320d8000053", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000051"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74687f64320d8000053", "content_type_id"=>"5470c74687f64320d8000053", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c74687f64320d800004c", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000053", "original_id"=>"5470c74687f64320d800005c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3893ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d800005d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c74687f64320d800004c", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000053", "original_id"=>"5470c74687f64320d800005c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7231ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d800004c", "parent_id"=>"5470c74687f64320d800004e", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800004e", "site_id"=>"5470c74687f64320d800004c", "_id"=>{"$ne"=>"5470c74687f64320d800005e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74687f64320d800004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d800005e", "parent_ids"=>["5470c74687f64320d800004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c74687f64320d800004c", "parent_id"=>"5470c74687f64320d800004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC, "editable_elements"=>[{"_id"=>"5470c74687f64320d800005f", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}]}] flags=[] (0.3428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d800005e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800005e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2770ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d800005e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0896ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d800005e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d8000060", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c74687f64320d800004c", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d800005e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d800004c", "parent_id"=>"5470c74687f64320d800004e", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800004e", "site_id"=>"5470c74687f64320d800004c", "_id"=>{"$ne"=>"5470c74687f64320d8000061"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800004e", "site_id"=>"5470c74687f64320d800004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7207ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74687f64320d800004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6118ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000061", "parent_ids"=>["5470c74687f64320d800004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c74687f64320d800004c", "parent_id"=>"5470c74687f64320d800004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.2644ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000061"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000061"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2968ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000061"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d800004c", "parent_id"=>"5470c74687f64320d800004e", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3746ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800004e", "site_id"=>"5470c74687f64320d800004c", "_id"=>{"$ne"=>"5470c74687f64320d8000062"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800004e", "site_id"=>"5470c74687f64320d800004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74687f64320d800004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4871ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000062", "parent_ids"=>["5470c74687f64320d800004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c74687f64320d800004c", "parent_id"=>"5470c74687f64320d800004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000062"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000062"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000062"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0777ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d800004c", "parent_id"=>"5470c74687f64320d800004e", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800004e", "site_id"=>"5470c74687f64320d800004c", "_id"=>{"$ne"=>"5470c74687f64320d8000063"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800004e", "site_id"=>"5470c74687f64320d800004c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74687f64320d800004e"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5393ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000063", "parent_ids"=>["5470c74687f64320d800004e"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c74687f64320d800004c", "parent_id"=>"5470c74687f64320d800004e", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000063"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000063"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2842ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000063"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0927ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d8000063", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3183ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74687f64320d800004c", "locale"=>"en"}} (0.6020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74687f64320d800004c", "locale"=>"en"}} (0.6001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d8000064", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c74687f64320d800004c", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d8000063", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c74687f64320d800004c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c74687f64320d800004e"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:26:30 UTC}} flags=[] (0.1407ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d800004e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d800004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c74687f64320d800004f"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74687f64320d800004c", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3338ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c74687f64320d8000065", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:26:26 UTC, "updated_at"=>2014-11-22 17:26:30 UTC, "memberships"=>[{"_id"=>"5470c74687f64320d8000066", "role"=>"admin", "account_id"=>"5470c74687f64320d800004b"}]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d8000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d8000065", "_id"=>{"$ne"=>"5470c74687f64320d8000067"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000067", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c74687f64320d8000065", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d8000065", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000067"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000067"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3133ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000067"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d8000067", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3943ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d8000068", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74687f64320d8000065", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d8000067", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1407ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d8000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d8000065", "_id"=>{"$ne"=>"5470c74687f64320d8000069"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d8000065"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4778ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000069", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c74687f64320d8000065", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d8000065", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000069"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000069"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3650ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000069"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d8000065", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d8000065", "_id"=>{"$ne"=>"5470c74687f64320d800006a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d8000065"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d800006a", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c74687f64320d8000065", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d8000065", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d800006a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800006a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4041ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d800006a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d800006a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d800006b", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c74687f64320d8000065", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d800006a", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74687f64320d8000065", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4029ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74687f64320d800006c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c74687f64320d8000065", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c74687f64320d800006d", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74687f64320d800006d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d800006e"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d800006c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d800006c", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d800006c"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4332ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74687f64320d800006e", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74687f64320d800006c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74687f64320d800006c", "content_type_id"=>"5470c74687f64320d800006c", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c74687f64320d8000065", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74687f64320d800006c", "original_id"=>"5470c74687f64320d800006e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d800006f", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c74687f64320d8000065", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74687f64320d800006c", "original_id"=>"5470c74687f64320d800006e", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d800005a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d800005c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74687f64320d8000051"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4861ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1359ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74687f64320d8000053"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:30 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.2.searchable"=>true}} flags=[] (0.1221ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000053"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000051"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74687f64320d800004c", "_id"=>"5470c74687f64320d8000051"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6483ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:26:30 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5603ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8221ms) Rendered text template (0.0ms) Completed 200 OK in 5.0ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:26:30 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6948ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"stuff", "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74687f64320d800004c", "locale"=>"en"}} (0.5918ms) Rendered text template (0.0ms) Completed 200 OK in 6.1ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74687f64320d8000053"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000053", "updated_at"=>{"$lt"=>2014-11-22 17:26:30 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c74687f64320d800004c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c74687f64320d8000053"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5018ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c74687f64320d800005a"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:30 UTC}} flags=[] (0.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000053", "original_id"=>"5470c74687f64320d800005a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_id"=>"5470c74687f64320d8000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000051"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c74687f64320d8000051"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c74687f64320d8000058", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000053"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7110ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c74687f64320d800005b"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c74687f64320d800004c", :content_type_slug=>"examples"}, "content"=>["Findable entry", "John Doe", "Some stuff"]}} flags=[] (0.3147ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c74687f64320d800004c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5470c74687f64320d8000053"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6869ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5470c74687f64320d800005c"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:30 UTC}} flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000053", "original_id"=>"5470c74687f64320d800005c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1370ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c74687f64320d800005d"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c74687f64320d800004c", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.3011ms) Started GET "/" for 127.0.0.1 at 2014-11-22 18:26:30 +0100 Processing by Locomotive::Public::PagesController#show as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6299ms) Rendered text template (0.0ms) Completed 200 OK in 4.7ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-11-22 18:26:30 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"search"=>"stuff", "locale"=>"en", "path"=>"search"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800004c", "depth"=>1, "fullpath.en"=>{"$in"=>["search", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6630ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>"stuff", "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74687f64320d800004c", "locale"=>"en"}} (0.8960ms) Rendered text template (0.0ms) Completed 200 OK in 8.0ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7639ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.9582ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5682ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5000ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.6042ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.7130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8011ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.3779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.2601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c74687f64320d8000070", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3003b410f48b90166ff0231e42c4cd7f655b35cb", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"7faeGMpUcx7Pxpx9uMx3", "api_key"=>"97fc5008f63c063015a1a77e96f0277253a2817c", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.1440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2959ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c74687f64320d8000071", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:26:26 UTC, "updated_at"=>2014-11-22 17:26:30 UTC, "memberships"=>[{"_id"=>"5470c74687f64320d8000072", "role"=>"admin", "account_id"=>"5470c74687f64320d8000070"}]}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d8000071", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d8000071", "_id"=>{"$ne"=>"5470c74687f64320d8000073"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3192ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000073", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c74687f64320d8000071", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d8000071", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000073"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000073"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3068ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000073"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1023ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d8000073", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d8000074", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74687f64320d8000071", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d8000073", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d8000071", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d8000071", "_id"=>{"$ne"=>"5470c74687f64320d8000075"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8337ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d8000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.7240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000075", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c74687f64320d8000071", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d8000071", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000075"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000075"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000075"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74687f64320d8000071", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74687f64320d8000076", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c74687f64320d8000071", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c74687f64320d8000077", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74687f64320d8000077", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74687f64320d8000071", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74687f64320d8000076"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74687f64320d8000078", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c74687f64320d8000071", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c74687f64320d8000079", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74687f64320d8000079", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c74687f64320d800007a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000076", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c74687f64320d800007b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.8850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74687f64320d8000071", "_id"=>"5470c74687f64320d8000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74687f64320d8000078"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8202ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000076"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.2010ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74687f64320d8000076"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:30 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c74687f64320d800007c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000078", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.3409ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000076"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000078", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d800007d"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000076"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000076", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000076"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4051ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74687f64320d800007d", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74687f64320d8000076", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000078", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74687f64320d8000076", "content_type_id"=>"5470c74687f64320d8000076", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c74687f64320d8000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.3340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000076", "original_id"=>"5470c74687f64320d800007d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2732ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c74687f64320d800007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}}} (0.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c74687f64320d800007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d800007e", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c74687f64320d8000071", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000076", "original_id"=>"5470c74687f64320d800007d", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d800007f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000078", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4652ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}}} (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74687f64320d800007f", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74687f64320d8000078", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c74687f64320d800007d", "_type"=>"Locomotive::ContentEntry5470c74687f64320d8000078", "content_type_id"=>"5470c74687f64320d8000078", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c74687f64320d8000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000078", "original_id"=>"5470c74687f64320d800007f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c74687f64320d800007d", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5689ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d8000080", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c74687f64320d8000071", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000078", "original_id"=>"5470c74687f64320d800007f", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d8000081"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000078", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}}} (0.3111ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.4122ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74687f64320d8000081", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74687f64320d8000078", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74687f64320d8000078", "content_type_id"=>"5470c74687f64320d8000078", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c74687f64320d8000071", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000078", "original_id"=>"5470c74687f64320d8000081", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3791ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d8000082", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c74687f64320d8000071", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000078", "original_id"=>"5470c74687f64320d8000081", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5870ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d8000071", "parent_id"=>"5470c74687f64320d8000073", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000073", "site_id"=>"5470c74687f64320d8000071", "_id"=>{"$ne"=>"5470c74687f64320d8000083"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74687f64320d8000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000083", "parent_ids"=>["5470c74687f64320d8000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c74687f64320d8000071", "parent_id"=>"5470c74687f64320d8000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC, "editable_elements"=>[{"_id"=>"5470c74687f64320d8000084", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}]}] flags=[] (0.2801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d8000071", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000083"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000083"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2942ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000083"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d8000083", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3858ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d8000085", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c74687f64320d8000071", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d8000083", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d8000071", "parent_id"=>"5470c74687f64320d8000073", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000073", "site_id"=>"5470c74687f64320d8000071", "_id"=>{"$ne"=>"5470c74687f64320d8000086"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000073", "site_id"=>"5470c74687f64320d8000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74687f64320d8000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6428ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000086", "parent_ids"=>["5470c74687f64320d8000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c74687f64320d8000071", "parent_id"=>"5470c74687f64320d8000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.3831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d8000071", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000086"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000086"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000086"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d8000071", "parent_id"=>"5470c74687f64320d8000073", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000073", "site_id"=>"5470c74687f64320d8000071", "_id"=>{"$ne"=>"5470c74687f64320d8000087"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000073", "site_id"=>"5470c74687f64320d8000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74687f64320d8000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6027ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000087", "parent_ids"=>["5470c74687f64320d8000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c74687f64320d8000071", "parent_id"=>"5470c74687f64320d8000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.3512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d8000071", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000087"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000087"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000087"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d8000071", "parent_id"=>"5470c74687f64320d8000073", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000073", "site_id"=>"5470c74687f64320d8000071", "_id"=>{"$ne"=>"5470c74687f64320d8000088"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000073", "site_id"=>"5470c74687f64320d8000071"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74687f64320d8000073"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2631ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d8000088", "parent_ids"=>["5470c74687f64320d8000073"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c74687f64320d8000071", "parent_id"=>"5470c74687f64320d8000073", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d8000071", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000088"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d8000088"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d8000088"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d8000088", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74687f64320d8000071", "locale"=>"en"}} (0.5698ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74687f64320d8000071", "locale"=>"en"}} (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d8000089", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c74687f64320d8000071", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d8000088", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d8000071", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c74687f64320d8000071"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4108ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c74687f64320d8000073"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:26:30 UTC}} flags=[] (0.1657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d8000071", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d8000073"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d8000073", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c74687f64320d8000074"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74687f64320d8000071", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.4764ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c74687f64320d800008a", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:26:26 UTC, "updated_at"=>2014-11-22 17:26:30 UTC, "memberships"=>[{"_id"=>"5470c74687f64320d800008b", "role"=>"admin", "account_id"=>"5470c74687f64320d8000070"}]}] flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d800008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d800008a", "_id"=>{"$ne"=>"5470c74687f64320d800008c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5670ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d800008c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c74687f64320d800008a", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.2692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800008a", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d800008c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800008c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4339ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d800008c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d800008c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3438ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d800008d", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74687f64320d800008a", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d800008c", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d800008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d800008a", "_id"=>{"$ne"=>"5470c74687f64320d800008e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d800008a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5152ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d800008e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c74687f64320d800008a", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800008a", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d800008e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800008e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2909ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d800008e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74687f64320d800008a", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d800008a", "_id"=>{"$ne"=>"5470c74687f64320d800008f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74687f64320d800008a"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74687f64320d800008f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c74687f64320d800008a", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74687f64320d800008a", "template_dependencies.en"=>{"$in"=>["5470c74687f64320d800008f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74687f64320d800008f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74687f64320d800008f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d800008f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d8000090", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c74687f64320d800008a", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74687f64320d800008f", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74687f64320d800008a", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3791ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74687f64320d8000091", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c74687f64320d800008a", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c74687f64320d8000092", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74687f64320d8000092", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d8000093"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000091"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000091", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000091"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3803ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74687f64320d8000093", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74687f64320d8000091", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74687f64320d8000091", "content_type_id"=>"5470c74687f64320d8000091", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c74687f64320d800008a", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:30 UTC, "created_at"=>2014-11-22 17:26:30 UTC}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000091", "original_id"=>"5470c74687f64320d8000093", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74687f64320d8000094", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c74687f64320d800008a", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74687f64320d8000091", "original_id"=>"5470c74687f64320d8000093", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1516ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d800007f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74687f64320d8000081"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74687f64320d8000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4981ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74687f64320d8000078"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1259ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74687f64320d8000078"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:30 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.0.searchable"=>false, "entries_custom_fields.1.searchable"=>false}} flags=[] (0.0970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74687f64320d8000078"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74687f64320d8000076"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1237ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74687f64320d8000071", "_id"=>"5470c74687f64320d8000076"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7031ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.8290ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4139ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.3879ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.3870ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3812ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (2.4529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4930ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3681ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c74e87f6437cad000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"dacd7eda10bbbc10366f52e11e01b07d65e12817", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ipG1TdsM68PKYt97NhUg", "api_key"=>"990fdfb1a4c36d2821d1be9015c1dae5f7ce5356", "updated_at"=>2014-11-22 17:26:38 UTC, "created_at"=>2014-11-22 17:26:38 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c74e87f6437cad000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:26:38 UTC, "updated_at"=>2014-11-22 17:26:38 UTC, "memberships"=>[{"_id"=>"5470c74e87f6437cad000003", "role"=>"admin", "account_id"=>"5470c74e87f6437cad000001"}]}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74e87f6437cad000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74e87f6437cad000002", "_id"=>{"$ne"=>"5470c74e87f6437cad000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74e87f6437cad000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c74e87f6437cad000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:38 UTC, "created_at"=>2014-11-22 17:26:38 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74e87f6437cad000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002", "template_dependencies.en"=>{"$in"=>["5470c74e87f6437cad000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4728ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74e87f6437cad000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74e87f6437cad000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5798ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74e87f6437cad000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74e87f6437cad000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74e87f6437cad000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74e87f6437cad000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74e87f6437cad000002", "_id"=>{"$ne"=>"5470c74e87f6437cad000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7267ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74e87f6437cad000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c74e87f6437cad000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:38 UTC, "created_at"=>2014-11-22 17:26:38 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002", "template_dependencies.en"=>{"$in"=>["5470c74e87f6437cad000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74e87f6437cad000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4041ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74e87f6437cad000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74e87f6437cad000002", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74e87f6437cad000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c74e87f6437cad000002", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c74e87f6437cad000008", "updated_at"=>2014-11-22 17:26:38 UTC, "created_at"=>2014-11-22 17:26:38 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74e87f6437cad000008", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.3152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74e87f6437cad000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74e87f6437cad000007"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74e87f6437cad000009", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c74e87f6437cad000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c74e87f6437cad00000a", "updated_at"=>2014-11-22 17:26:38 UTC, "created_at"=>2014-11-22 17:26:38 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74e87f6437cad00000a", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c74e87f6437cad00000b", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c74e87f6437cad000007", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c74e87f6437cad00000c", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.3209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74e87f6437cad000002", "_id"=>"5470c74e87f6437cad000007"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74e87f6437cad000009"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6201ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000007"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.2019ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c74e87f6437cad000007"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:39 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c74f87f6437cad00000d", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c74e87f6437cad000009", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74e87f6437cad000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74e87f6437cad000009", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74f87f6437cad00000e"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74e87f6437cad000007", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000007"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74f87f6437cad00000e", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74e87f6437cad000007", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74e87f6437cad000009", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74e87f6437cad000007", "content_type_id"=>"5470c74e87f6437cad000007", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c74e87f6437cad000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74e87f6437cad000007", "original_id"=>"5470c74f87f6437cad00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5877ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c74f87f6437cad00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000009"]}}} (0.4373ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c74f87f6437cad00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74f87f6437cad00000f", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c74e87f6437cad000002", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c74e87f6437cad000007", "original_id"=>"5470c74f87f6437cad00000e", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74f87f6437cad000010"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74e87f6437cad000009", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.3798ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000009"]}}} (0.3250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74f87f6437cad000010", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74e87f6437cad000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74e87f6437cad000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c74f87f6437cad00000e", "_type"=>"Locomotive::ContentEntry5470c74e87f6437cad000009", "content_type_id"=>"5470c74e87f6437cad000009", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c74e87f6437cad000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74e87f6437cad000009", "original_id"=>"5470c74f87f6437cad000010", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c74f87f6437cad00000e", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000009"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74f87f6437cad000011", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c74e87f6437cad000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74e87f6437cad000009", "original_id"=>"5470c74f87f6437cad000010", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74f87f6437cad000012"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000009"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74e87f6437cad000009", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000009"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.6380ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000009"]}}} (0.4311ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74e87f6437cad000009"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (0.5810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74f87f6437cad000012", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74e87f6437cad000009", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c74e87f6437cad000007"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74e87f6437cad000009", "content_type_id"=>"5470c74e87f6437cad000009", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c74e87f6437cad000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC}] flags=[] (0.3281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74e87f6437cad000009", "original_id"=>"5470c74f87f6437cad000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7088ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74f87f6437cad000013", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c74e87f6437cad000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74e87f6437cad000009", "original_id"=>"5470c74f87f6437cad000012", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6061ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74e87f6437cad000002", "parent_id"=>"5470c74e87f6437cad000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74e87f6437cad000004", "site_id"=>"5470c74e87f6437cad000002", "_id"=>{"$ne"=>"5470c74f87f6437cad000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74e87f6437cad000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74f87f6437cad000014", "parent_ids"=>["5470c74e87f6437cad000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c74e87f6437cad000002", "parent_id"=>"5470c74e87f6437cad000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC, "editable_elements"=>[{"_id"=>"5470c74f87f6437cad000015", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC}]}] flags=[] (0.3099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002", "template_dependencies.en"=>{"$in"=>["5470c74f87f6437cad000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74f87f6437cad000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74f87f6437cad000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74f87f6437cad000014", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3791ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74f87f6437cad000016", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c74e87f6437cad000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74f87f6437cad000014", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74e87f6437cad000002", "parent_id"=>"5470c74e87f6437cad000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74e87f6437cad000004", "site_id"=>"5470c74e87f6437cad000002", "_id"=>{"$ne"=>"5470c74f87f6437cad000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74e87f6437cad000004", "site_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74e87f6437cad000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8602ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74f87f6437cad000017", "parent_ids"=>["5470c74e87f6437cad000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c74e87f6437cad000002", "parent_id"=>"5470c74e87f6437cad000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC}] flags=[] (0.4418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002", "template_dependencies.en"=>{"$in"=>["5470c74f87f6437cad000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3603ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74f87f6437cad000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74f87f6437cad000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74e87f6437cad000002", "parent_id"=>"5470c74e87f6437cad000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74e87f6437cad000004", "site_id"=>"5470c74e87f6437cad000002", "_id"=>{"$ne"=>"5470c74f87f6437cad000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74e87f6437cad000004", "site_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74e87f6437cad000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74f87f6437cad000018", "parent_ids"=>["5470c74e87f6437cad000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c74e87f6437cad000002", "parent_id"=>"5470c74e87f6437cad000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC}] flags=[] (0.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002", "template_dependencies.en"=>{"$in"=>["5470c74f87f6437cad000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74f87f6437cad000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74f87f6437cad000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74e87f6437cad000002", "parent_id"=>"5470c74e87f6437cad000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74e87f6437cad000004", "site_id"=>"5470c74e87f6437cad000002", "_id"=>{"$ne"=>"5470c74f87f6437cad000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74e87f6437cad000004", "site_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c74e87f6437cad000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74f87f6437cad000019", "parent_ids"=>["5470c74e87f6437cad000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c74e87f6437cad000002", "parent_id"=>"5470c74e87f6437cad000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC}] flags=[] (0.2911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002", "template_dependencies.en"=>{"$in"=>["5470c74f87f6437cad000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74f87f6437cad000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7041ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74f87f6437cad000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74f87f6437cad000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5801ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74e87f6437cad000002", "locale"=>"en"}} (1.4310ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c74e87f6437cad000002", "locale"=>"en"}} (1.0619ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74f87f6437cad00001a", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c74e87f6437cad000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74f87f6437cad000019", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4289ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c74e87f6437cad000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:26:39 UTC}} flags=[] (0.4601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002", "template_dependencies.en"=>{"$in"=>["5470c74e87f6437cad000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74e87f6437cad000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4709ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c74e87f6437cad000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74e87f6437cad000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4468ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c74f87f6437cad00001b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:26:38 UTC, "updated_at"=>2014-11-22 17:26:39 UTC, "memberships"=>[{"_id"=>"5470c74f87f6437cad00001c", "role"=>"admin", "account_id"=>"5470c74e87f6437cad000001"}]}] flags=[] (0.2701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74f87f6437cad00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5047ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74f87f6437cad00001b", "_id"=>{"$ne"=>"5470c74f87f6437cad00001d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7308ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74f87f6437cad00001d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c74f87f6437cad00001b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC}] flags=[] (0.4117ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74f87f6437cad00001b", "template_dependencies.en"=>{"$in"=>["5470c74f87f6437cad00001d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74f87f6437cad00001d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4702ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74f87f6437cad00001d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74f87f6437cad00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74f87f6437cad00001e", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c74f87f6437cad00001b", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74f87f6437cad00001d", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74f87f6437cad00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74f87f6437cad00001b", "_id"=>{"$ne"=>"5470c74f87f6437cad00001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74f87f6437cad00001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9489ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74f87f6437cad00001f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c74f87f6437cad00001b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC}] flags=[] (0.3219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74f87f6437cad00001b", "template_dependencies.en"=>{"$in"=>["5470c74f87f6437cad00001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74f87f6437cad00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74f87f6437cad00001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1433ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c74f87f6437cad00001b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74f87f6437cad00001b", "_id"=>{"$ne"=>"5470c74f87f6437cad000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c74f87f6437cad00001b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c74f87f6437cad000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c74f87f6437cad00001b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74f87f6437cad00001b", "template_dependencies.en"=>{"$in"=>["5470c74f87f6437cad000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c74f87f6437cad000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7839ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c74f87f6437cad000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c74f87f6437cad000020", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7544ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74f87f6437cad000021", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c74f87f6437cad00001b", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c74f87f6437cad000020", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74f87f6437cad00001b", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.6329ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c74f87f6437cad000022", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c74f87f6437cad00001b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c74f87f6437cad000023", "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC, "entries_custom_fields"=>[{"_id"=>"5470c74f87f6437cad000023", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.3567ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c74f87f6437cad000024"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c74f87f6437cad000022"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c74f87f6437cad000022", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c74f87f6437cad000022"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.8259ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c74f87f6437cad000024", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c74f87f6437cad000022", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c74f87f6437cad000022", "content_type_id"=>"5470c74f87f6437cad000022", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c74f87f6437cad00001b", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:39 UTC, "created_at"=>2014-11-22 17:26:39 UTC}] flags=[] (0.3388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c74f87f6437cad000022", "original_id"=>"5470c74f87f6437cad000024", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4971ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c74f87f6437cad000025", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c74f87f6437cad00001b", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c74f87f6437cad000022", "original_id"=>"5470c74f87f6437cad000024", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.4869ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 18:26:40 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c74e87f6437cad000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5281ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (31.8ms) Completed 200 OK in 63.6ms (Views: 54.2ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-11-22 18:26:40 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (11ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-11-22 18:26:40 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (17ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-11-22 18:26:40 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 18:26:40 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c74e87f6437cad000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5620ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c74e87f6437cad000001"} update={"$set"=>{"remember_created_at"=>2014-11-22 17:26:40 UTC, "updated_at"=>2014-11-22 17:26:40 UTC}} flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c74e87f6437cad000001"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 17:26:40 UTC, "current_sign_in_at"=>2014-11-22 17:26:40 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 17:26:40 UTC}} flags=[] (0.1981ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 25.1ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:26:40 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8247ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c74e87f6437cad000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c74e87f6437cad000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.4269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.4310ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[5330841740052] (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.9441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (1.2090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c74e87f6437cad000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c74e87f6437cad000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.2660ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (42.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (2.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (7.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (15.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (71.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c74e87f6437cad000001", :role=>:admin}}}} (0.8831ms) Rendered locomotive/shared/_main_app_head.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (18.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c74e87f6437cad000001"}} (0.5729ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (4.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c74e87f6437cad000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9742ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (7.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (8.5ms) Rendered locomotive/shared/_main_app_header.html.haml (11.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (44.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (5.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (1.8ms) Completed 200 OK in 196.9ms (Views: 168.2ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-11-22 18:26:41 +0100 Served asset /locomotive.css - 200 OK (69ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-11-22 18:26:41 +0100 Served asset /locomotive.js - 200 OK (168ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-11-22 18:26:41 +0100 Served asset /locomotive/search_bar.js - 200 OK (7ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-11-22 18:26:41 +0100 Served asset /locomotive/search_bar.css - 200 OK (5ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-11-22 18:26:41 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-11-22 18:26:41 +0100 Served asset /locomotive/nocoffee.png - 200 OK (3ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-11-22 18:26:41 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (3ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2014-11-22 18:26:41 +0100 Processing by Locomotive::ContentTypesController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c74e87f6437cad000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c74e87f6437cad000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1771ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[5330425605713] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.5050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c74e87f6437cad000002"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c74e87f6437cad000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.5941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c74e87f6437cad000009"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8790ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (16.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74e87f6437cad000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7002ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/custom_fields/_select_templates.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/custom_fields/_form.html.haml (63.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c74e87f6437cad000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6330ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_types/_form.html.haml (85.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_form_actions.html.haml (2.3ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (112.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c74e87f6437cad000001", :role=>:admin}}}} (0.6769ms) Rendered locomotive/shared/_main_app_head.html.haml (1.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (12.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c74e87f6437cad000001"}} (0.4179ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c74e87f6437cad000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6938ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (1.0ms) Rendered locomotive/shared/_main_app_header.html.haml (1.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (8.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 157.4ms (Views: 142.4ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2014-11-22 18:26:42 +0100 Served asset /locomotive/form/input-sep.png - 200 OK (5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0128ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (3.6421ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.0189ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (3.4218ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.4222ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:content=>"text", :locale=>1}, :name=>"content_text_locale_1"}] flags=[] (0.1154ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=system.indexes documents=[{:unique=>true, :ns=>"locomotive_search_test.active_search_mongoid_indices", :key=>{:original_type=>1, :original_id=>1, :locale=>1}, :name=>"original_type_1_original_id_1_locale_1"}] flags=[] (0.0954ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.2820ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5470c75287f6437cad000027", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"6708bd71a3f59a2b2b7cbbc8139f36644ca23ee8", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"kxddsV8VFUtNxsgVs7xd", "api_key"=>"4d74a8b66f9385e7211bcff2e2b1e4db4d3d0002", "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.1101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5550ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c75287f6437cad000028", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-11-22 17:26:38 UTC, "updated_at"=>2014-11-22 17:26:42 UTC, "memberships"=>[{"_id"=>"5470c75287f6437cad000029", "role"=>"admin", "account_id"=>"5470c75287f6437cad000027"}]}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c75287f6437cad000028", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c75287f6437cad000028", "_id"=>{"$ne"=>"5470c75287f6437cad00002a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c75287f6437cad00002a", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c75287f6437cad000028", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028", "template_dependencies.en"=>{"$in"=>["5470c75287f6437cad00002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c75287f6437cad00002a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c75287f6437cad00002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5422ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c75287f6437cad00002b", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c75287f6437cad000028", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c75287f6437cad00002a", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1497ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c75287f6437cad000028", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c75287f6437cad000028", "_id"=>{"$ne"=>"5470c75287f6437cad00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c75287f6437cad00002c", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c75287f6437cad000028", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028", "template_dependencies.en"=>{"$in"=>["5470c75287f6437cad00002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3247ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2789ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c75287f6437cad00002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c75287f6437cad000028", "slug"=>"authors"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c75287f6437cad00002d", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Authors", "description"=>"The list of my projects", "site_id"=>"5470c75287f6437cad000028", "serialized_item_template"=>#, "slug"=>"authors", "order_by"=>"created_at", "label_field_name"=>"fullname", "label_field_id"=>"5470c75287f6437cad00002e", "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC, "entries_custom_fields"=>[{"_id"=>"5470c75287f6437cad00002e", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Fullname", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"fullname"}]}] flags=[] (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c75287f6437cad000028", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c75287f6437cad00002d"} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4032ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c75287f6437cad00002f", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c75287f6437cad000028", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c75287f6437cad000030", "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC, "entries_custom_fields"=>[{"_id"=>"5470c75287f6437cad000030", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}, {"_id"=>"5470c75287f6437cad000031", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Author", "type"=>"belongs_to", "class_name"=>"Locomotive::ContentEntry5470c75287f6437cad00002d", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"author"}, {"_id"=>"5470c75287f6437cad000032", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Stuff", "type"=>"text", "searchable"=>false, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"stuff"}]}] flags=[] (0.2799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c75287f6437cad000028", "_id"=>"5470c75287f6437cad00002d"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c75287f6437cad00002f"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6289ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002d"]}} update={"$set"=>{"_label_field_name"=>"fullname"}} flags=[:multi] (0.1872ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5470c75287f6437cad00002d"} update={"$set"=>{"updated_at"=>2014-11-22 17:26:42 UTC, "entries_custom_fields_version"=>1}, "$pushAll"=>{"entries_custom_fields"=>[{"_id"=>"5470c75287f6437cad000033", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Examples", "type"=>"has_many", "class_name"=>"Locomotive::ContentEntry5470c75287f6437cad00002f", "inverse_of"=>"author", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>false, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"examples", "order_by"=>nil}]}} flags=[] (0.2980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c75287f6437cad00002d"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c75287f6437cad00002f", "inverse_of"=>"author", "order_by"=>nil}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c75287f6437cad000034"}, "_slug.en"=>"john-doe", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002d"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4973ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c75287f6437cad00002d", "$or"=>[{"_slug.en"=>"john-doe"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002d"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4871ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c75287f6437cad000034", "_position"=>0, "_visible"=>true, "fullname"=>"John Doe", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c75287f6437cad00002d", "rules"=>[{"name"=>"fullname", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"examples", "type"=>"has_many", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c75287f6437cad00002f", "inverse_of"=>"author", "order_by"=>nil}], "version"=>1, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c75287f6437cad00002d", "content_type_id"=>"5470c75287f6437cad00002d", "_slug"=>{"en"=>"john-doe"}, "site_id"=>"5470c75287f6437cad000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"fullname", "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.2830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c75287f6437cad00002d", "original_id"=>"5470c75287f6437cad000034", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"author_id"=>"5470c75287f6437cad000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002f"]}}} (0.4880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c75287f6437cad000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002f"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c75287f6437cad000035", "stored"=>{"fullname"=>"John Doe", :search_type=>"Authors", :label=>"John Doe", :_slug=>"john-doe", :site_id=>"5470c75287f6437cad000028", :content_type_slug=>"authors"}, "original_type"=>"Locomotive::ContentEntry5470c75287f6437cad00002d", "original_id"=>"5470c75287f6437cad000034", "locale"=>"en", "language"=>"english", "content"=>["John Doe"]}] flags=[] (0.3159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c75287f6437cad000036"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002f"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c75287f6437cad00002f", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002f"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4582ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002f"]}}} (0.3269ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c75287f6437cad000036", "_position"=>0, "_visible"=>true, "position_in_author"=>1, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c75287f6437cad00002f", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c75287f6437cad00002d"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "author_id"=>"5470c75287f6437cad000034", "_type"=>"Locomotive::ContentEntry5470c75287f6437cad00002f", "content_type_id"=>"5470c75287f6437cad00002f", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5470c75287f6437cad000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c75287f6437cad00002f", "original_id"=>"5470c75287f6437cad000036", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"author_id"=>"5470c75287f6437cad000034", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002f"]}}, "$orderby"=>{"position_in_author"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6881ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c75287f6437cad000037", "stored"=>{"name"=>"Findable entry", "author"=>{"fullname"=>"John Doe", "examples"=>["Findable entry"]}, :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5470c75287f6437cad000028", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c75287f6437cad00002f", "original_id"=>"5470c75287f6437cad000036", "locale"=>"en", "language"=>"english", "content"=>["Findable entry", "John Doe"]}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c75287f6437cad000038"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002f"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c75287f6437cad00002f", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002f"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (0.4389ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002f"]}}} (0.7513ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad00002f"]}, "position_in_author"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"position_in_author", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$position_in_author"}, "min"=>{"$min"=>"$position_in_author"}, "sum"=>{"$sum"=>"$position_in_author"}, "avg"=>{"$avg"=>"$position_in_author"}}}]} (1.5130ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c75287f6437cad000038", "_position"=>1, "_visible"=>true, "position_in_author"=>2, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c75287f6437cad00002f", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"author", "type"=>"belongs_to", "required"=>false, "unique"=>false, "localized"=>false, "class_name"=>"Locomotive::ContentEntry5470c75287f6437cad00002d"}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c75287f6437cad00002f", "content_type_id"=>"5470c75287f6437cad00002f", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5470c75287f6437cad000028", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.4930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c75287f6437cad00002f", "original_id"=>"5470c75287f6437cad000038", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5057ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c75287f6437cad000039", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5470c75287f6437cad000028", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c75287f6437cad00002f", "original_id"=>"5470c75287f6437cad000038", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2444ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5980ms) WARNING: Can't mass-assign protected attributes: _type MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c75287f6437cad000028", "parent_id"=>"5470c75287f6437cad00002a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00002a", "site_id"=>"5470c75287f6437cad000028", "_id"=>{"$ne"=>"5470c75287f6437cad00003a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c75287f6437cad00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c75287f6437cad00003a", "parent_ids"=>["5470c75287f6437cad00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for, {% editable_text foo %}FOO{% endeditable_text %}"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5470c75287f6437cad000028", "parent_id"=>"5470c75287f6437cad00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC, "editable_elements"=>[{"_id"=>"5470c75287f6437cad00003b", "priority"=>0, "locales"=>["en"], "_type"=>"Locomotive::EditableText", "default_content"=>{"en"=>true}, "format"=>"html", "rows"=>10, "line_break"=>true, "block"=>nil, "slug"=>"foo", "hint"=>nil, "fixed"=>false, "disabled"=>{"en"=>false}, "from_parent"=>false, "content"=>{"en"=>"FOO"}, "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}]}] flags=[] (0.2561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028", "template_dependencies.en"=>{"$in"=>["5470c75287f6437cad00003a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3777ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00003a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c75287f6437cad00003a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c75287f6437cad00003a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c75287f6437cad00003c", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"FOO\nThis is what you were looking for, ", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5470c75287f6437cad000028", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c75287f6437cad00003a", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "FOO\nThis is what you were looking for, "]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c75287f6437cad000028", "parent_id"=>"5470c75287f6437cad00002a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00002a", "site_id"=>"5470c75287f6437cad000028", "_id"=>{"$ne"=>"5470c75287f6437cad00003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00002a", "site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5407ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c75287f6437cad00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c75287f6437cad00003d", "parent_ids"=>["5470c75287f6437cad00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>false, "raw_template"=>{"en"=>"Not published, so can't be found"}, "title"=>{"en"=>"Unpublished findable"}, "slug"=>{"en"=>"unpublished-findable"}, "site_id"=>"5470c75287f6437cad000028", "parent_id"=>"5470c75287f6437cad00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028", "template_dependencies.en"=>{"$in"=>["5470c75287f6437cad00003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c75287f6437cad00003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c75287f6437cad000028", "parent_id"=>"5470c75287f6437cad00002a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00002a", "site_id"=>"5470c75287f6437cad000028", "_id"=>{"$ne"=>"5470c75287f6437cad00003e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00002a", "site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c75287f6437cad00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5178ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c75287f6437cad00003e", "parent_ids"=>["5470c75287f6437cad00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>false, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"Even if it seems findable, it sound't be found because of the searchable flag"}, "title"=>{"en"=>"Seems findable"}, "slug"=>{"en"=>"seems-findable"}, "site_id"=>"5470c75287f6437cad000028", "parent_id"=>"5470c75287f6437cad00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.2518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028", "template_dependencies.en"=>{"$in"=>["5470c75287f6437cad00003e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00003e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3469ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c75287f6437cad00003e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c75287f6437cad000028", "parent_id"=>"5470c75287f6437cad00002a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00002a", "site_id"=>"5470c75287f6437cad000028", "_id"=>{"$ne"=>"5470c75287f6437cad00003f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.9217ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00002a", "site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5470c75287f6437cad00002a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c75287f6437cad00003f", "parent_ids"=>["5470c75287f6437cad00002a"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n \n {% search_for params.search, page: params.page, per_page: 2 %}\n * Total entries: {{ search.total_entries }}\n * Search results:\n \n {% endsearch_for %}\n \n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5470c75287f6437cad000028", "parent_id"=>"5470c75287f6437cad00002a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.2308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028", "template_dependencies.en"=>{"$in"=>["5470c75287f6437cad00003f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad00003f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c75287f6437cad00003f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c75287f6437cad00003f", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c75287f6437cad000028", "locale"=>"en"}} (0.7269ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={"text"=>"active_search_mongoid_indices", "search"=>nil, "language"=>"english", "filter"=>{"stored.site_id"=>"5470c75287f6437cad000028", "locale"=>"en"}} (1.5898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c75287f6437cad000040", "stored"=>{:title=>"search", :searchable_content=>" \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5470c75287f6437cad000028", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c75287f6437cad00003f", "locale"=>"en", "language"=>"english", "content"=>["search", " \n \n \n * Total entries: \n * Search results:\n \n \n \n \n \n \n"]}] flags=[] (0.2980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5100ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5470c75287f6437cad00002a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-11-22 17:26:42 UTC}} flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028", "template_dependencies.en"=>{"$in"=>["5470c75287f6437cad00002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c75287f6437cad00002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9363ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5470c75287f6437cad00002b"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5470c75287f6437cad000028", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5004ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5470c75287f6437cad000041", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-11-22 17:26:38 UTC, "updated_at"=>2014-11-22 17:26:42 UTC, "memberships"=>[{"_id"=>"5470c75287f6437cad000042", "role"=>"admin", "account_id"=>"5470c75287f6437cad000027"}]}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c75287f6437cad000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c75287f6437cad000041", "_id"=>{"$ne"=>"5470c75287f6437cad000043"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c75287f6437cad000043", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5470c75287f6437cad000041", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.4768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000041", "template_dependencies.en"=>{"$in"=>["5470c75287f6437cad000043"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad000043"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c75287f6437cad000043"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c75287f6437cad000043", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4117ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c75287f6437cad000044", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5470c75287f6437cad000041", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c75287f6437cad000043", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c75287f6437cad000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c75287f6437cad000041", "_id"=>{"$ne"=>"5470c75287f6437cad000045"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c75287f6437cad000041"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c75287f6437cad000045", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5470c75287f6437cad000041", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000041", "template_dependencies.en"=>{"$in"=>["5470c75287f6437cad000045"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad000045"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c75287f6437cad000045"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5470c75287f6437cad000041", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c75287f6437cad000041", "_id"=>{"$ne"=>"5470c75287f6437cad000046"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.6651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5470c75287f6437cad000041"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5470c75287f6437cad000046", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "searchable"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "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"=>"5470c75287f6437cad000041", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000041", "template_dependencies.en"=>{"$in"=>["5470c75287f6437cad000046"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3483ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5470c75287f6437cad000046"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3603ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5470c75287f6437cad000046"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5470c75287f6437cad000046", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c75287f6437cad000047", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :search_type=>"page", :label=>"This should never show up in the search, even if it would be findable", :site_id=>"5470c75287f6437cad000041", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5470c75287f6437cad000046", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c75287f6437cad000041", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0457ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5470c75287f6437cad000048", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5470c75287f6437cad000041", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5470c75287f6437cad000049", "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC, "entries_custom_fields"=>[{"_id"=>"5470c75287f6437cad000049", "text_formatting"=>"html", "position"=>0, "ui_enabled"=>true, "label"=>"Name", "type"=>"string", "searchable"=>true, "allow_currency_from_symbol"=>false, "required"=>true, "unique"=>false, "localized"=>false, "_type"=>"Locomotive::ContentTypeEntryField", "default_currency"=>"EUR", "name"=>"name"}]}] flags=[] (0.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5470c75287f6437cad00004a"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad000048"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5470c75287f6437cad000048", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5470c75287f6437cad000048"]}}, "$orderby"=>{"_position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields={"_position"=>1, "_type"=>1} (1.2412ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5470c75287f6437cad00004a", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5470c75287f6437cad000048", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5470c75287f6437cad000048", "content_type_id"=>"5470c75287f6437cad000048", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5470c75287f6437cad000041", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-11-22 17:26:42 UTC, "created_at"=>2014-11-22 17:26:42 UTC}] flags=[] (0.5612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5470c75287f6437cad000048", "original_id"=>"5470c75287f6437cad00004a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3833ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5470c75287f6437cad00004b", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5470c75287f6437cad000041", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5470c75287f6437cad000048", "original_id"=>"5470c75287f6437cad00004a", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.4721ms) Started GET "/locomotive" for 127.0.0.1 at 2014-11-22 18:26:42 +0100 Processing by Locomotive::SessionsController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c75287f6437cad000027"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1652ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (7.2ms) Completed 200 OK in 15.7ms (Views: 9.7ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-11-22 18:26:42 +0100 Processing by Locomotive::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "locomotive_account"=>{"remember_me"=>"true", "email"=>"admin@locomotiveapp.org", "password"=>"[FILTERED]"}, "commit"=>"Log in"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5470c75287f6437cad000027"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4203ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c75287f6437cad000027"} update={"$set"=>{"remember_created_at"=>2014-11-22 17:26:42 UTC, "updated_at"=>2014-11-22 17:26:42 UTC}} flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5470c75287f6437cad000027"} update={"$set"=>{"last_sign_in_at"=>2014-11-22 17:26:42 UTC, "current_sign_in_at"=>2014-11-22 17:26:42 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-11-22 17:26:42 UTC}} flags=[] (0.1431ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 11.0ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-11-22 18:26:42 +0100 Processing by Locomotive::PagesController#index as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2836ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c75287f6437cad000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4573ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c75287f6437cad000027"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5126ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.2751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.1399ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[5357918271015] (0.1230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (1.1258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (1.2419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c75287f6437cad00002d"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c75287f6437cad00002f"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.9112ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (27.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (1.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (3.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_page.html.haml (6.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (38.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c75287f6437cad000027", :role=>:admin}}}} (1.1921ms) Rendered locomotive/shared/_main_app_head.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (7.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c75287f6437cad000027"}} (0.4652ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c75287f6437cad000027"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4821ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.8ms) Rendered locomotive/shared/_main_app_header.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (7.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 84.4ms (Views: 56.9ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2014-11-22 18:26:43 +0100 Processing by Locomotive::PagesController#new as HTML [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"domains"=>{"$in"=>["test.example.com"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5470c75287f6437cad000027"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5470c75287f6437cad000027"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8037ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"position"=>1, "updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (1.4107ms) MOPED: 127.0.0.1:27017 KILL_CURSORS cursor_ids=[5356967358757] (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"site_id"=>1, "name"=>1, "slug"=>1, "label_field_name"=>1} (0.4151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c75287f6437cad00002d"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5470c75287f6437cad00002f"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7541ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/menu/_contents.html.haml (16.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/content_assets/_picker.html.haml (12.0ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/theme_assets/_picker.html.haml (8.7ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_editable_elements.html.haml (11.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5470c75287f6437cad000028"}, "$orderby"=>{"depth"=>1, "position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields={"serialized_template.en"=>0, "template_dependencies.en"=>0, "snippet_dependencies.en"=>0, "templatized_from_parent"=>0, "redirect_url.en"=>0, "redirect_type"=>0, "seo_title.en"=>0, "meta_keywords.en"=>0, "meta_description.en"=>0, "handle"=>0, "raw_template.en"=>0, "locales"=>0, "cache_strategy"=>0, "searchable"=>0} (2.0449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5470c75287f6437cad000028"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7792ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.2ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/_form.html.haml (146.6ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_form_actions.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (174.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5470c75287f6437cad000027", :role=>:admin}}}} (0.5050ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_head.html.haml (7.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5470c75287f6437cad000027"}} (0.5050ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/global_actions/show.html.haml (0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5470c75287f6437cad000027"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_site_picker.html.haml (1.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (0.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_header.html.haml (7.4ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 221.1ms (Views: 198.2ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2014-11-22 18:26:43 +0100 Served asset /locomotive/jquery/images/ui-icons_222222_256x240.png - 200 OK (5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.9131ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.7679ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5728ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5440ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.4861ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0560ms)